diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 7911f3c95..5d508750b 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2006-04-18 Jeff Johnston + + * libc/include/sys/signal.h (sigdelset, sigfillset, sigismember): New macros. + (sigaddset, sigemptyset): Add return code. + 2006-04-13 Ralf Corsepius * acinclude.m4: New _NEWLIB_VERSION. diff --git a/newlib/libc/include/sys/signal.h b/newlib/libc/include/sys/signal.h index 78f06951e..454fbc12e 100644 --- a/newlib/libc/include/sys/signal.h +++ b/newlib/libc/include/sys/signal.h @@ -125,8 +125,11 @@ struct sigaction /* These depend upon the type of sigset_t, which right now is always a long.. They're in the POSIX namespace, but are not ANSI. */ -#define sigaddset(what,sig) (*(what) |= (1<<(sig))) -#define sigemptyset(what) (*(what) = 0) +#define sigaddset(what,sig) (*(what) |= (1<<(sig)), 0) +#define sigdelset(what,sig) (*(what) &= ~(1<<(sig)), 0) +#define sigemptyset(what) (*(what) = 0, 0) +#define sigfillset(what) (*(what) = ~(0), 0) +#define sigismember(what,sig) (((*(what)) & (1<<(sig))) != 0) int _EXFUN(sigprocmask, (int how, const sigset_t *set, sigset_t *oset)); @@ -137,7 +140,10 @@ int _EXFUN(pthread_sigmask, (int how, const sigset_t *set, sigset_t *oset)); /* protos for functions found in winsup sources for CYGWIN */ #if defined(__CYGWIN__) || defined(__rtems__) #undef sigaddset +#undef sigdelset #undef sigemptyset +#undef sigfillset +#undef sigismember /* The first argument to kill should be pid_t. Right now always defines pid_t to be int. If that ever changes, then we will need to do something else, perhaps along the