reduced diff in include/signal.h

Change-Id: I8df2199e6ac5a429f61079ca8c01fe58bd44ff36
This commit is contained in:
Lionel Sambuc 2013-12-03 13:56:34 +01:00
parent 3053b27247
commit 9fb2800ffc

View file

@ -79,17 +79,7 @@ int __libc_thr_sigsetmask(int, const sigset_t * __restrict,
#ifndef __LIBC12_SOURCE__ #ifndef __LIBC12_SOURCE__
int sigaction(int, const struct sigaction * __restrict, int sigaction(int, const struct sigaction * __restrict,
struct sigaction * __restrict) __RENAME(__sigaction14); struct sigaction * __restrict) __RENAME(__sigaction14);
#if defined(__minix) && defined(_SYSTEM) #if defined(__minix) && !defined(_SYSTEM)
/* In Minix system code, use alternate versions of the signal mask
* manipulation functions that do not check signal numbers vs. _NSIG.
* _NSIG can then represent the user-visible signal set.
*/
#define sigaddset(set, sig) __sigaddset((set), (sig))
#define sigdelset(set, sig) __sigdelset((set), (sig))
#define sigemptyset(set) __sigemptyset((set))
#define sigfillset(set) __sigfillset((set))
#define sigismember(set, sig) __sigismember((set), (sig))
#else
int sigaddset(sigset_t *, int) __RENAME(__sigaddset14); int sigaddset(sigset_t *, int) __RENAME(__sigaddset14);
int sigdelset(sigset_t *, int) __RENAME(__sigdelset14); int sigdelset(sigset_t *, int) __RENAME(__sigdelset14);
int sigemptyset(sigset_t *) __RENAME(__sigemptyset14); int sigemptyset(sigset_t *) __RENAME(__sigemptyset14);
@ -119,7 +109,17 @@ int *__errno(void);
#define ___errno (*__errno()) #define ___errno (*__errno())
#endif #endif
#if !(defined(__minix) && defined(_SYSTEM)) #if defined(__minix) && defined(_SYSTEM)
/* In Minix system code, use alternate versions of the signal mask
* manipulation functions that do not check signal numbers vs. _NSIG.
* _NSIG can then represent the user-visible signal set.
*/
#define sigaddset(set, sig) __sigaddset((set), (sig))
#define sigdelset(set, sig) __sigdelset((set), (sig))
#define sigemptyset(set) __sigemptyset((set))
#define sigfillset(set) __sigfillset((set))
#define sigismember(set, sig) __sigismember((set), (sig))
#else
__c99inline int __c99inline int
sigaddset(sigset_t *set, int signo) sigaddset(sigset_t *set, int signo)
{ {