]> git.ipfire.org Git - thirdparty/glibc.git/blame - include/signal.h
signal: Move sys_siglist to a compat symbol
[thirdparty/glibc.git] / include / signal.h
CommitLineData
6796bc80 1#ifndef _SIGNAL_H
bdbf022d
UD
2# include <signal/signal.h>
3
31341567 4# ifndef _ISOMAC
5841dad9
RM
5libc_hidden_proto (sigemptyset)
6libc_hidden_proto (sigfillset)
85dd1003
UD
7libc_hidden_proto (sigaddset)
8libc_hidden_proto (sigdelset)
5841dad9 9libc_hidden_proto (sigismember)
a4733812 10extern int __sigpause (int sig_or_mask, int is_sig);
5841dad9 11libc_hidden_proto (__sigpause)
13ece897 12libc_hidden_proto (raise)
a4baf360
UD
13libc_hidden_proto (__libc_current_sigrtmin)
14libc_hidden_proto (__libc_current_sigrtmax)
b1ccfc06
AZ
15extern const char * const __sys_siglist[_NSIG];
16libc_hidden_proto (__sys_siglist)
17
5841dad9 18
bdbf022d 19/* Now define the internal interfaces. */
aaa8d85c
UD
20extern __sighandler_t __bsd_signal (int __sig, __sighandler_t __handler);
21extern int __kill (__pid_t __pid, int __sig);
6a088436 22libc_hidden_proto (__kill)
a784e502 23extern int __sigaction (int __sig, const struct sigaction *__restrict __act,
d9bfd1a5 24 struct sigaction *__restrict __oact);
37ba7d66 25libc_hidden_proto (__sigaction)
aaa8d85c 26extern int __sigblock (int __mask);
6a088436 27libc_hidden_proto (__sigblock)
aaa8d85c
UD
28extern int __sigsetmask (int __mask);
29extern int __sigprocmask (int __how,
a784e502 30 const sigset_t *__set, sigset_t *__oset);
6a088436 31libc_hidden_proto (__sigprocmask)
a784e502 32extern int __sigsuspend (const sigset_t *__set);
37ba7d66 33libc_hidden_proto (__sigsuspend)
a784e502 34extern int __sigwait (const sigset_t *__set, int *__sig);
6166815d 35libc_hidden_proto (__sigwait)
a784e502 36extern int __sigwaitinfo (const sigset_t *__set, siginfo_t *__info);
6166815d 37libc_hidden_proto (__sigwaitinfo)
a784e502
UD
38extern int __sigtimedwait (const sigset_t *__set, siginfo_t *__info,
39 const struct timespec *__timeout);
6166815d 40libc_hidden_proto (__sigtimedwait)
aaa8d85c 41extern int __sigqueue (__pid_t __pid, int __sig,
a784e502 42 const union sigval __val);
54dc5461 43#ifdef __USE_MISC
aaa8d85c 44extern int __sigreturn (struct sigcontext *__scp);
54dc5461 45#endif
75531318
JM
46extern int __sigaltstack (const stack_t *__ss,
47 stack_t *__oss);
6a088436 48libc_hidden_proto (__sigaltstack)
353aebf5
UD
49extern int __libc_sigaction (int sig, const struct sigaction *act,
50 struct sigaction *oact);
e17ec211 51libc_hidden_proto (__libc_sigaction)
9395e889 52
8001fa60
AJ
53extern int __default_sigpause (int mask);
54extern int __xpg_sigpause (int sig);
55
9395e889 56/* Allocate real-time signal with highest/lowest available priority. */
aaa8d85c 57extern int __libc_allocate_rtsig (int __high);
bdcd03ea 58
3d1870fa 59# if IS_IN (rtld) && !defined NO_RTLD_HIDDEN
bdcd03ea
L
60extern __typeof (__sigaction) __sigaction attribute_hidden;
61extern __typeof (__libc_sigaction) __libc_sigaction attribute_hidden;
62# endif
a992f506
ZW
63
64# endif /* _ISOMAC */
65#endif /* signal.h */