From e8362c8b51ffa205cf0ada159445c482e85e1a81 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 14 Feb 2011 18:45:58 -0500 Subject: [PATCH] major bugfix for sigset_t (it was mistakenly 1024 bytes instead of bits) note that object files using sigset_t (or struct sigaction) need to be recompiled to work correctly after this fix. --- include/bits/alltypes.h.sh | 2 +- include/setjmp.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/bits/alltypes.h.sh b/include/bits/alltypes.h.sh index c909d7b0..d68579f3 100755 --- a/include/bits/alltypes.h.sh +++ b/include/bits/alltypes.h.sh @@ -96,7 +96,7 @@ TYPEDEF int timer_t; TYPEDEF int clockid_t; TYPEDEF unsigned long clock_t; -TYPEDEF struct { unsigned long __bits[1024/sizeof(long)]; } sigset_t; +TYPEDEF struct { unsigned long __bits[128/sizeof(long)]; } sigset_t; TYPEDEF struct __siginfo siginfo_t; TYPEDEF unsigned int socklen_t; diff --git a/include/setjmp.h b/include/setjmp.h index a5bb1e20..b024c44e 100644 --- a/include/setjmp.h +++ b/include/setjmp.h @@ -10,7 +10,7 @@ extern "C" { #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) -typedef unsigned long sigjmp_buf[(1024+sizeof(jmp_buf))/sizeof(long)]; +typedef unsigned long sigjmp_buf[(128+sizeof(jmp_buf))/sizeof(long)]; #ifdef _GNU_SOURCE #define jmp_buf sigjmp_buf #endif -- 2.25.1