diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2006-04-19 00:06:09 +0400 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2006-04-19 00:06:09 +0400 |
commit | e163e3e138476cbb06f5873b975c29d3863f50f6 (patch) | |
tree | 8413ce4cd543b2135dfd61df927662814bedd7d4 /newlib | |
parent | 4c6f65fc7cb35214eb75198d5a131b0927158688 (diff) |
2006-04-18 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/signal.h (sigdelset, sigfillset, sigismember): New macros.
(sigaddset, sigemptyset): Add return code.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/include/sys/signal.h | 10 |
2 files changed, 13 insertions, 2 deletions
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 <jjohnstn@redhat.com> + + * libc/include/sys/signal.h (sigdelset, sigfillset, sigismember): New macros. + (sigaddset, sigemptyset): Add return code. + 2006-04-13 Ralf Corsepius <ralf.corsepius@rtems.org> * 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 <sys/types.h> always defines pid_t to be int. If that ever changes, then we will need to do something else, perhaps along the |