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