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