2 #if defined __need_sig_atomic_t || defined __need_sigset_t
3 # include <signal/signal.h>
5 # include <signal/signal.h>
7 /* Now define the internal interfaces. */
8 extern __sighandler_t
__bsd_signal (int __sig
, __sighandler_t __handler
);
9 extern int __kill (__pid_t __pid
, int __sig
);
10 extern int __sigaction (int __sig
, __const
struct sigaction
*__restrict __act
,
11 struct sigaction
*__restrict __oact
);
12 extern int __sigblock (int __mask
);
13 extern int __sigsetmask (int __mask
);
14 extern int __sigprocmask (int __how
,
15 __const sigset_t
*__set
, sigset_t
*__oset
);
16 extern int __sigsuspend (__const sigset_t
*__set
);
17 extern int __sigwait (__const sigset_t
*__set
, int *__sig
);
18 extern int __sigwaitinfo (__const sigset_t
*__set
, siginfo_t
*__info
);
19 extern int __sigtimedwait (__const sigset_t
*__set
, siginfo_t
*__info
,
20 __const
struct timespec
*__timeout
);
21 extern int __sigqueue (__pid_t __pid
, int __sig
,
22 __const
union sigval __val
);
23 extern int __sigvec (int __sig
, __const
struct sigvec
*__vec
,
24 struct sigvec
*__ovec
);
25 extern int __sigreturn (struct sigcontext
*__scp
);
26 extern int __sigaltstack (__const
struct sigaltstack
*__ss
,
27 struct sigaltstack
*__oss
);
28 extern int __libc_sigaction (int sig
, const struct sigaction
*act
,
29 struct sigaction
*oact
);
31 extern int __sigpause (int sig_or_mask
, int is_sig
);
32 extern int __default_sigpause (int mask
);
33 extern int __xpg_sigpause (int sig
);
37 /* Allocate real-time signal with highest/lowest available priority. */
38 extern int __libc_allocate_rtsig (int __high
);