2003-04-22 Roland McGrath <roland@redhat.com>
[glibc.git] / include / signal.h
blobb03b1a3ec4eb2b5b582a1c9a83b7164cf3c52989
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)
11 libc_hidden_proto (raise)
12 libc_hidden_proto (__libc_current_sigrtmin)
13 libc_hidden_proto (__libc_current_sigrtmax)
15 /* Now define the internal interfaces. */
16 extern __sighandler_t __bsd_signal (int __sig, __sighandler_t __handler);
17 extern int __kill (__pid_t __pid, int __sig);
18 extern int __sigaction (int __sig, __const struct sigaction *__restrict __act,
19 struct sigaction *__restrict __oact);
20 libc_hidden_proto (__sigaction)
21 extern int __sigblock (int __mask);
22 extern int __sigsetmask (int __mask);
23 extern int __sigprocmask (int __how,
24 __const sigset_t *__set, sigset_t *__oset);
25 extern int __sigsuspend (__const sigset_t *__set);
26 libc_hidden_proto (__sigsuspend)
27 extern int __sigwait (__const sigset_t *__set, int *__sig);
28 libc_hidden_proto (__sigwait)
29 extern int __sigwaitinfo (__const sigset_t *__set, siginfo_t *__info);
30 libc_hidden_proto (__sigwaitinfo)
31 extern int __sigtimedwait (__const sigset_t *__set, siginfo_t *__info,
32 __const struct timespec *__timeout);
33 libc_hidden_proto (__sigtimedwait)
34 extern int __sigqueue (__pid_t __pid, int __sig,
35 __const union sigval __val);
36 extern int __sigvec (int __sig, __const struct sigvec *__vec,
37 struct sigvec *__ovec);
38 extern int __sigreturn (struct sigcontext *__scp);
39 extern int __sigaltstack (__const struct sigaltstack *__ss,
40 struct sigaltstack *__oss);
41 extern int __libc_sigaction (int sig, const struct sigaction *act,
42 struct sigaction *oact);
43 libc_hidden_proto (__libc_sigaction)
45 extern int __sigpause (int sig_or_mask, int is_sig);
46 extern int __default_sigpause (int mask);
47 extern int __xpg_sigpause (int sig);
51 /* Allocate real-time signal with highest/lowest available priority. */
52 extern int __libc_allocate_rtsig (int __high);
53 #endif
54 #endif