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] attribute_hidden;
18extern const char * const __sys_sigabbrev[_NSIG] attribute_hidden;
19
20/* Now define the internal interfaces. */
21extern __sighandler_t __bsd_signal (int __sig, __sighandler_t __handler);
22extern int __kill (__pid_t __pid, int __sig);
23libc_hidden_proto (__kill)
24extern int __sigaction (int __sig, const struct sigaction *__restrict __act,
25 struct sigaction *__restrict __oact);
26libc_hidden_proto (__sigaction)
27extern int __sigblock (int __mask);
28libc_hidden_proto (__sigblock)
29extern int __sigsetmask (int __mask);
30extern int __sigprocmask (int __how,
31 const sigset_t *__set, sigset_t *__oset);
32libc_hidden_proto (__sigprocmask)
33extern int __sigsuspend (const sigset_t *__set);
34libc_hidden_proto (__sigsuspend)
35extern int __sigwait (const sigset_t *__set, int *__sig);
36libc_hidden_proto (__sigwait)
37extern int __sigwaitinfo (const sigset_t *__set, siginfo_t *__info);
38libc_hidden_proto (__sigwaitinfo)
39#if __TIMESIZE == 64
40# define __sigtimedwait64 __sigtimedwait
41#else
42# include <struct___timespec64.h>
43extern int __sigtimedwait64 (const sigset_t *__set, siginfo_t *__info,
44 const struct __timespec64 *__timeout);
45libc_hidden_proto (__sigtimedwait64)
46#endif
47extern int __sigtimedwait (const sigset_t *__set, siginfo_t *__info,
48 const struct timespec *__timeout);
49libc_hidden_proto (__sigtimedwait)
50extern int __sigqueue (__pid_t __pid, int __sig,
51 const union sigval __val);
52#ifdef __USE_MISC
53extern int __sigreturn (struct sigcontext *__scp);
54#endif
55extern int __sigaltstack (const stack_t *__ss,
56 stack_t *__oss);
57libc_hidden_proto (__sigaltstack)
58extern int __libc_sigaction (int sig, const struct sigaction *act,
59 struct sigaction *oact);
60libc_hidden_proto (__libc_sigaction)
61
62extern int __default_sigpause (int mask);
63extern int __xpg_sigpause (int sig);
64
65/* Allocate real-time signal with highest/lowest available priority. */
66extern int __libc_allocate_rtsig (int __high);
67
68# if IS_IN (rtld)
69extern __typeof (__sigaction) __sigaction attribute_hidden;
70extern __typeof (__libc_sigaction) __libc_sigaction attribute_hidden;
71# endif
72
73# endif /* _ISOMAC */
74#endif /* signal.h */
75