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 __sigblock (int __mask
);
11 extern int __sigsetmask (int __mask
);
12 extern int __sigprocmask (int __how
,
13 __const sigset_t
*__set
, sigset_t
*__oset
);
14 extern int __sigsuspend (__const sigset_t
*__set
);
15 extern int __sigwait (__const sigset_t
*__set
, int *__sig
);
16 extern int __sigwaitinfo (__const sigset_t
*__set
, siginfo_t
*__info
);
17 extern int __sigtimedwait (__const sigset_t
*__set
, siginfo_t
*__info
,
18 __const
struct timespec
*__timeout
);
19 extern int __sigqueue (__pid_t __pid
, int __sig
,
20 __const
union sigval __val
);
21 extern int __sigvec (int __sig
, __const
struct sigvec
*__vec
,
22 struct sigvec
*__ovec
);
23 extern int __sigreturn (struct sigcontext
*__scp
);
24 extern int __sigaltstack (__const
struct sigaltstack
*__ss
,
25 struct sigaltstack
*__oss
);
26 extern int __libc_sigaction (int sig
, const struct sigaction
*act
,
27 struct sigaction
*oact
);
29 /* Allocate real-time signal with highest/lowest available priority. */
30 extern int __libc_allocate_rtsig (int __high
);