| 1 | #ifndef _SIGNAL_H |
| 2 | # include <signal/signal.h> |
| 3 | |
| 4 | # ifndef _ISOMAC |
| 5 | libc_hidden_proto (sigemptyset) |
| 6 | libc_hidden_proto (sigfillset) |
| 7 | libc_hidden_proto (sigaddset) |
| 8 | libc_hidden_proto (sigdelset) |
| 9 | libc_hidden_proto (sigismember) |
| 10 | extern int __sigpause (int sig_or_mask, int is_sig); |
| 11 | libc_hidden_proto (__sigpause) |
| 12 | libc_hidden_proto (raise) |
| 13 | libc_hidden_proto (__libc_current_sigrtmin) |
| 14 | libc_hidden_proto (__libc_current_sigrtmax) |
| 15 | libc_hidden_proto (_sys_siglist) |
| 16 | |
| 17 | /* Now define the internal interfaces. */ |
| 18 | extern __sighandler_t __bsd_signal (int __sig, __sighandler_t __handler); |
| 19 | extern int __kill (__pid_t __pid, int __sig); |
| 20 | extern int __sigaction (int __sig, const struct sigaction *__restrict __act, |
| 21 | struct sigaction *__restrict __oact); |
| 22 | libc_hidden_proto (__sigaction) |
| 23 | extern int __sigblock (int __mask); |
| 24 | extern int __sigsetmask (int __mask); |
| 25 | extern int __sigprocmask (int __how, |
| 26 | const sigset_t *__set, sigset_t *__oset); |
| 27 | extern int __sigsuspend (const sigset_t *__set); |
| 28 | libc_hidden_proto (__sigsuspend) |
| 29 | #ifndef NO_CANCELLATION |
| 30 | extern int __sigsuspend_nocancel (const sigset_t *__set) attribute_hidden; |
| 31 | #endif |
| 32 | extern int __sigwait (const sigset_t *__set, int *__sig); |
| 33 | libc_hidden_proto (__sigwait) |
| 34 | extern int __sigwaitinfo (const sigset_t *__set, siginfo_t *__info); |
| 35 | libc_hidden_proto (__sigwaitinfo) |
| 36 | extern int __sigtimedwait (const sigset_t *__set, siginfo_t *__info, |
| 37 | const struct timespec *__timeout); |
| 38 | libc_hidden_proto (__sigtimedwait) |
| 39 | extern int __sigqueue (__pid_t __pid, int __sig, |
| 40 | const union sigval __val); |
| 41 | #ifdef __USE_MISC |
| 42 | extern int __sigreturn (struct sigcontext *__scp); |
| 43 | #endif |
| 44 | extern int __sigaltstack (const stack_t *__ss, |
| 45 | stack_t *__oss); |
| 46 | extern int __libc_sigaction (int sig, const struct sigaction *act, |
| 47 | struct sigaction *oact); |
| 48 | libc_hidden_proto (__libc_sigaction) |
| 49 | |
| 50 | extern int __default_sigpause (int mask); |
| 51 | extern int __xpg_sigpause (int sig); |
| 52 | |
| 53 | /* Allocate real-time signal with highest/lowest available priority. */ |
| 54 | extern int __libc_allocate_rtsig (int __high); |
| 55 | |
| 56 | # if IS_IN (rtld) |
| 57 | extern __typeof (__sigaction) __sigaction attribute_hidden; |
| 58 | extern __typeof (__libc_sigaction) __libc_sigaction attribute_hidden; |
| 59 | # endif |
| 60 | |
| 61 | # endif /* _ISOMAC */ |
| 62 | #endif /* signal.h */ |
| 63 | |