]> sourceware.org Git - glibc.git/blame - include/signal.h
Fix memory overrun in getifaddrs_internal. Fixes bug 15698.
[glibc.git] / include / signal.h
CommitLineData
6796bc80 1#ifndef _SIGNAL_H
bdbf022d
UD
2#if defined __need_sig_atomic_t || defined __need_sigset_t
3# include <signal/signal.h>
4#else
5# include <signal/signal.h>
6
31341567 7# ifndef _ISOMAC
5841dad9
RM
8libc_hidden_proto (sigemptyset)
9libc_hidden_proto (sigfillset)
85dd1003
UD
10libc_hidden_proto (sigaddset)
11libc_hidden_proto (sigdelset)
5841dad9
RM
12libc_hidden_proto (sigismember)
13libc_hidden_proto (__sigpause)
13ece897 14libc_hidden_proto (raise)
a4baf360
UD
15libc_hidden_proto (__libc_current_sigrtmin)
16libc_hidden_proto (__libc_current_sigrtmax)
5be8418c 17libc_hidden_proto (_sys_siglist)
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);
a784e502 22extern int __sigaction (int __sig, const struct sigaction *__restrict __act,
d9bfd1a5 23 struct sigaction *__restrict __oact);
37ba7d66 24libc_hidden_proto (__sigaction)
aaa8d85c
UD
25extern int __sigblock (int __mask);
26extern int __sigsetmask (int __mask);
27extern int __sigprocmask (int __how,
a784e502
UD
28 const sigset_t *__set, sigset_t *__oset);
29extern int __sigsuspend (const sigset_t *__set);
37ba7d66 30libc_hidden_proto (__sigsuspend)
b894c2ea 31#ifndef NO_CANCELLATION
a784e502 32extern int __sigsuspend_nocancel (const sigset_t *__set) attribute_hidden;
b894c2ea 33#endif
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
UD
42 const union sigval __val);
43extern int __sigvec (int __sig, const struct sigvec *__vec,
aaa8d85c
UD
44 struct sigvec *__ovec);
45extern int __sigreturn (struct sigcontext *__scp);
a784e502 46extern int __sigaltstack (const struct sigaltstack *__ss,
aaa8d85c 47 struct sigaltstack *__oss);
353aebf5
UD
48extern int __libc_sigaction (int sig, const struct sigaction *act,
49 struct sigaction *oact);
e17ec211 50libc_hidden_proto (__libc_sigaction)
9395e889 51
8001fa60
AJ
52extern int __sigpause (int sig_or_mask, int is_sig);
53extern int __default_sigpause (int mask);
54extern int __xpg_sigpause (int sig);
55
a71c152c 56/* Simplified sigemptyset() implementation without the parameter checking. */
ab4bc713 57#undef __sigemptyset
32749f6c
RM
58#define __sigemptyset(ss) \
59 ({ __builtin_memset (ss, '\0', sizeof (sigset_t)); 0; })
8001fa60
AJ
60
61
9395e889 62/* Allocate real-time signal with highest/lowest available priority. */
aaa8d85c 63extern int __libc_allocate_rtsig (int __high);
31341567 64# endif
bdbf022d 65#endif
6796bc80 66#endif
This page took 0.374105 seconds and 5 git commands to generate.