]> git.ipfire.org Git - thirdparty/glibc.git/blob - include/signal.h
2002-08-03 Roland McGrath <roland@redhat.com>
[thirdparty/glibc.git] / include / signal.h
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>
6
7 libc_hidden_proto (raise)
8 libc_hidden_proto (sigemptyset)
9 libc_hidden_proto (sigfillset)
10 libc_hidden_proto (sigismember)
11 libc_hidden_proto (__sigpause)
12 libc_hidden_proto (__libc_current_sigrtmin)
13 libc_hidden_proto (__libc_current_sigrtmax)
14
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 extern int __sigwaitinfo (__const sigset_t *__set, siginfo_t *__info);
29 extern int __sigtimedwait (__const sigset_t *__set, siginfo_t *__info,
30 __const struct timespec *__timeout);
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
41 extern int __sigpause (int sig_or_mask, int is_sig);
42 extern int __default_sigpause (int mask);
43 extern int __xpg_sigpause (int sig);
44
45
46
47 /* Allocate real-time signal with highest/lowest available priority. */
48 extern int __libc_allocate_rtsig (int __high);
49 #endif
50 #endif