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:
parent
4c6f65fc7c
commit
e163e3e138
|
@ -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>
|
2006-04-13 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* acinclude.m4: New _NEWLIB_VERSION.
|
* acinclude.m4: New _NEWLIB_VERSION.
|
||||||
|
|
|
@ -125,8 +125,11 @@ struct sigaction
|
||||||
/* These depend upon the type of sigset_t, which right now
|
/* These depend upon the type of sigset_t, which right now
|
||||||
is always a long.. They're in the POSIX namespace, but
|
is always a long.. They're in the POSIX namespace, but
|
||||||
are not ANSI. */
|
are not ANSI. */
|
||||||
#define sigaddset(what,sig) (*(what) |= (1<<(sig)))
|
#define sigaddset(what,sig) (*(what) |= (1<<(sig)), 0)
|
||||||
#define sigemptyset(what) (*(what) = 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));
|
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 */
|
/* protos for functions found in winsup sources for CYGWIN */
|
||||||
#if defined(__CYGWIN__) || defined(__rtems__)
|
#if defined(__CYGWIN__) || defined(__rtems__)
|
||||||
#undef sigaddset
|
#undef sigaddset
|
||||||
|
#undef sigdelset
|
||||||
#undef sigemptyset
|
#undef sigemptyset
|
||||||
|
#undef sigfillset
|
||||||
|
#undef sigismember
|
||||||
/* The first argument to kill should be pid_t. Right now
|
/* The first argument to kill should be pid_t. Right now
|
||||||
<sys/types.h> always defines pid_t to be int. If that ever
|
<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
|
changes, then we will need to do something else, perhaps along the
|
||||||
|
|
Loading…
Reference in New Issue