2006-04-18 Jeff Johnston <jjohnstn@redhat.com>

* libc/include/sys/signal.h (sigdelset, sigfillset, sigismember): New macros.
        (sigaddset, sigemptyset): Add return code.
This commit is contained in:
Jeff Johnston 2006-04-18 20:06:09 +00:00
parent 4c6f65fc7c
commit e163e3e138
2 changed files with 13 additions and 2 deletions

View File

@ -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.

View File

@ -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