| OLD | NEW |
| 1 /* sys/signal.h */ | 1 /* sys/signal.h */ |
| 2 | 2 |
| 3 #ifndef _SYS_SIGNAL_H | 3 #ifndef _SYS_SIGNAL_H |
| 4 #define _SYS_SIGNAL_H | 4 #define _SYS_SIGNAL_H |
| 5 #ifdef __cplusplus | 5 #ifdef __cplusplus |
| 6 extern "C" { | 6 extern "C" { |
| 7 #endif | 7 #endif |
| 8 | 8 |
| 9 #include "_ansi.h" | 9 #include "_ansi.h" |
| 10 #include <sys/features.h> | 10 #include <sys/features.h> |
| 11 #include <sys/types.h> | 11 #include <sys/types.h> |
| 12 | 12 |
| 13 /* #ifndef __STRICT_ANSI__*/ | 13 /* #ifndef __STRICT_ANSI__*/ |
| 14 | 14 |
| 15 /* Cygwin defines it's own sigset_t in include/cygwin/signal.h */ | 15 /* Cygwin defines it's own sigset_t in include/cygwin/signal.h */ |
| 16 #ifndef __CYGWIN__ | 16 #ifndef __CYGWIN__ |
| 17 typedef unsigned long sigset_t; | 17 typedef unsigned long sigset_t; |
| 18 #endif | 18 #endif |
| 19 | 19 |
| 20 #if defined(__rtems__) | 20 #if defined(__rtems__) || defined (__native_client__) |
| 21 | 21 |
| 22 #if defined(_POSIX_REALTIME_SIGNALS) | 22 #if defined(_POSIX_REALTIME_SIGNALS) |
| 23 | 23 |
| 24 /* sigev_notify values | 24 /* sigev_notify values |
| 25 NOTE: P1003.1c/D10, p. 34 adds SIGEV_THREAD. */ | 25 NOTE: P1003.1c/D10, p. 34 adds SIGEV_THREAD. */ |
| 26 | 26 |
| 27 #define SIGEV_NONE 1 /* No asynchronous notification shall be delivered */ | 27 #define SIGEV_NONE 1 /* No asynchronous notification shall be delivered */ |
| 28 /* when the event of interest occurs. */ | 28 /* when the event of interest occurs. */ |
| 29 #define SIGEV_SIGNAL 2 /* A queued signal, with an application defined */ | 29 #define SIGEV_SIGNAL 2 /* A queued signal, with an application defined */ |
| 30 /* value, shall be delivered when the event of */ | 30 /* value, shall be delivered when the event of */ |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 #define SA_NOCLDSTOP 1 /* only value supported now for sa_flags */ | 110 #define SA_NOCLDSTOP 1 /* only value supported now for sa_flags */ |
| 111 | 111 |
| 112 typedef void (*_sig_func_ptr)(int); | 112 typedef void (*_sig_func_ptr)(int); |
| 113 | 113 |
| 114 struct sigaction | 114 struct sigaction |
| 115 { | 115 { |
| 116 _sig_func_ptr sa_handler; | 116 _sig_func_ptr sa_handler; |
| 117 sigset_t sa_mask; | 117 sigset_t sa_mask; |
| 118 int sa_flags; | 118 int sa_flags; |
| 119 }; | 119 }; |
| 120 #endif /* defined(__rtems__) */ | 120 #endif /* defined(__rtems__) || defined(__native_client__) */ |
| 121 | 121 |
| 122 #define SIG_SETMASK 0 /* set mask with sigprocmask() */ | 122 #define SIG_SETMASK 0 /* set mask with sigprocmask() */ |
| 123 #define SIG_BLOCK 1 /* set of signals to block */ | 123 #define SIG_BLOCK 1 /* set of signals to block */ |
| 124 #define SIG_UNBLOCK 2 /* set of signals to, well, unblock */ | 124 #define SIG_UNBLOCK 2 /* set of signals to, well, unblock */ |
| 125 | 125 |
| 126 /* These depend upon the type of sigset_t, which right now | 126 /* These depend upon the type of sigset_t, which right now |
| 127 is always a long.. They're in the POSIX namespace, but | 127 is always a long.. They're in the POSIX namespace, but |
| 128 are not ANSI. */ | 128 are not ANSI. */ |
| 129 #define sigaddset(what,sig) (*(what) |= (1<<(sig)), 0) | 129 #define sigaddset(what,sig) (*(what) |= (1<<(sig)), 0) |
| 130 #define sigdelset(what,sig) (*(what) &= ~(1<<(sig)), 0) | 130 #define sigdelset(what,sig) (*(what) &= ~(1<<(sig)), 0) |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 #ifdef __cplusplus | 308 #ifdef __cplusplus |
| 309 } | 309 } |
| 310 #endif | 310 #endif |
| 311 | 311 |
| 312 #ifndef _SIGNAL_H_ | 312 #ifndef _SIGNAL_H_ |
| 313 /* Some applications take advantage of the fact that <sys/signal.h> | 313 /* Some applications take advantage of the fact that <sys/signal.h> |
| 314 * and <signal.h> are equivalent in glibc. Allow for that here. */ | 314 * and <signal.h> are equivalent in glibc. Allow for that here. */ |
| 315 #include <signal.h> | 315 #include <signal.h> |
| 316 #endif | 316 #endif |
| 317 #endif /* _SYS_SIGNAL_H */ | 317 #endif /* _SYS_SIGNAL_H */ |
| OLD | NEW |