1 macro-constant SIG_DFL {void(*)(int)}
2 macro-constant SIG_ERR {void(*)(int)}
3 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008
4 macro-constant SIG_HOLD {void(*)(int)}
6 macro-constant SIG_IGN {void(*)(int)}
9 #if !defined ISO && !defined ISO99 && !defined ISO11
12 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX
15 # define pid_t __pid_t
16 # define uid_t __uid_t
18 #if defined XOPEN2K8 || defined POSIX2008
26 element ucontext_t {ucontext_t*} uc_link
27 // Bug 21634: uc_sigmask has wrong type.
28 xfail[ia64-linux]-element ucontext_t sigset_t uc_sigmask
29 element ucontext_t stack_t uc_stack
30 // Bug 21635: uc_mcontext has wrong type.
31 xfail[powerpc32-linux]-element ucontext_t mcontext_t uc_mcontext
33 type {struct timespec}
34 element {struct timespec} __time_t tv_sec
35 // Bug 16437: tv_nsec has wrong type.
36 xfail[x86_64-x32-linux]-element {struct timespec} long tv_nsec
39 #if defined POSIX || defined UNIX98 || defined XOPEN2K || defined XOPEN2K8 || defined POSIX2008
40 element {union sigval} int sival_int
41 element {union sigval} {void*} sival_ptr
43 type {struct sigevent}
45 // Test the elements of the sigevent_t structure.
46 element {struct sigevent} int sigev_notify
47 element {struct sigevent} int sigev_signo
48 element {struct sigevent} {union sigval} sigev_value
49 element {struct sigevent} {void(*} sigev_notify_function )(union sigval)
50 element {struct sigevent} {pthread_attr_t*} sigev_notify_attributes
62 macro-int-constant SIGABRT {int} > 0
63 macro-int-constant SIGFPE {int} > 0
64 macro-int-constant SIGILL {int} > 0
65 macro-int-constant SIGINT {int} > 0
66 macro-int-constant SIGSEGV {int} > 0
67 macro-int-constant SIGTERM {int} > 0
69 function void (*signal (int, void(*)(int)))(int)
70 function int raise (int)
72 #if !defined ISO && !defined ISO99 && !defined ISO11
73 macro-int-constant SIGALRM {int} > 0
74 macro-int-constant SIGHUP {int} > 0
75 macro-int-constant SIGKILL {int} > 0
76 macro-int-constant SIGPIPE {int} > 0
77 macro-int-constant SIGQUIT {int} > 0
78 macro-int-constant SIGUSR1 {int} > 0
79 macro-int-constant SIGUSR2 {int} > 0
80 macro-int-constant SIGCHLD {int} > 0
81 macro-int-constant SIGCONT {int} > 0
82 macro-int-constant SIGSTOP {int} > 0
83 macro-int-constant SIGTSTP {int} > 0
84 macro-int-constant SIGTTIN {int} > 0
85 macro-int-constant SIGTTOU {int} > 0
87 macro-int-constant SIGBUS {int} > 0
89 # if !defined POSIX && !defined XPG4
90 macro-int-constant SIGPOLL {int} > 0
91 macro-int-constant SIGPROF {int} > 0
92 macro-int-constant SIGSYS {int} > 0
94 # if !defined POSIX && !defined XPG4 && !defined POSIX2008
95 macro-int-constant SIGTRAP {int} > 0
97 # if !defined POSIX && !defined XPG4
98 macro-int-constant SIGURG {int} > 0
99 macro-int-constant SIGVTALRM {int} > 0
100 macro-int-constant SIGXCPU {int} > 0
101 macro-int-constant SIGXFSZ {int} > 0
104 type {struct sigaction}
106 element {struct sigaction} {void(*} sa_handler )(int)
107 element {struct sigaction} sigset_t sa_mask
108 element {struct sigaction} int sa_flags
110 element {struct sigaction} {void(*} sa_sigaction )(int, siginfo_t*, void*)
113 constant SA_NOCLDSTOP
120 # if !defined XPG4 && !defined POSIX && !defined POSIX2008
123 # if !defined XPG4 && !defined POSIX
124 constant SA_RESETHAND
126 // Bug 23090: hurd: missing SA_NOCLDWAIT support.
127 xfail[i386-gnu|x86_64-gnu]-constant SA_NOCLDWAIT
130 # if !defined XPG4 && !defined POSIX && !defined POSIX2008
137 # if !defined XPG4 && !defined POSIX
140 element ucontext_t {ucontext_t*} uc_link
141 // Bug 21634: uc_sigmask has wrong type.
142 xfail[ia64-linux]-element ucontext_t sigset_t uc_sigmask
143 element ucontext_t stack_t uc_stack
144 // Bug 21635: uc_mcontext has wrong type.
145 xfail[powerpc32-linux]-element ucontext_t mcontext_t uc_mcontext
149 element stack_t {void*} ss_sp
150 element stack_t size_t ss_size
151 element stack_t int ss_flags
153 # if !defined XOPEN2K8 && !defined POSIX2008
154 type {struct sigstack}
156 element {struct sigstack} int ss_onstack
157 element {struct sigstack} {void*} ss_sp
164 element siginfo_t int si_signo
165 # if !defined POSIX && !defined POSIX2008
166 element siginfo_t int si_errno
168 element siginfo_t int si_code
170 element siginfo_t pid_t si_pid
171 element siginfo_t uid_t si_uid
172 element siginfo_t {void*} si_addr
173 element siginfo_t int si_status
174 // Bug 23821: si_band has type int on sparc64.
175 xfail[sparc64-linux]-element siginfo_t long si_band
178 element siginfo_t {union sigval} si_value
182 # if !defined POSIX && !defined XPG4
209 constant CLD_CONTINUED
217 # if !defined POSIX && !defined XPG4 && !defined POSIX2008
221 # if !defined XPG4 && !defined XPG42
229 # if !defined XPG4 && !defined XOPEN2K8 && !defined POSIX && !defined POSIX2008
230 function void (*bsd_signal (int, void(*)(int)))(int)
232 function int kill (pid_t, int)
233 # if !defined XPG4 && !defined POSIX && !defined POSIX2008
234 function int killpg (pid_t, int)
236 # if !defined XPG4 && !defined XPG42
237 function int pthread_kill (pthread_t, int)
238 function int pthread_sigmask (int, const sigset_t*, sigset_t*)
240 function int sigaction (int, const struct sigaction*, struct sigaction*)
241 function int sigaddset (sigset_t*, int)
242 # if !defined XPG4 && !defined POSIX && !defined POSIX2008
243 function int sigaltstack (const stack_t*, stack_t*)
245 function int sigdelset (sigset_t*, int)
246 function int sigemptyset (sigset_t*)
247 function int sigfillset (sigset_t*)
248 # if !defined XPG4 && !defined POSIX && !defined POSIX2008
249 function int sighold (int)
250 function int sigignore (int)
251 function int siginterrupt (int, int)
253 function int sigismember (const sigset_t*, int)
254 #if !defined XPG4 && !defined POSIX && !defined POSIX2008
255 function int sigpause (int)
257 function int sigpending (sigset_t*)
258 function int sigprocmask (int, const sigset_t*, sigset_t*)
259 # if !defined XPG4 && !defined XPG42
260 function int sigqueue (pid_t, int, const union sigval)
262 # if !defined XPG4 && !defined POSIX && !defined POSIX2008
263 function int sigrelse (int)
264 function void (*sigset (int, void(*)(int)))(int)
266 # if defined XPG42 || defined UNIX98
267 function int sigstack (struct sigstack*, struct sigstack*)
269 function int sigsuspend (const sigset_t*)
270 # if !defined XPG4 && !defined XPG42
271 function int sigtimedwait (const sigset_t*, siginfo_t*, const struct timespec*)
273 # if !defined XPG4 && !defined XPG42
274 function int sigwait (const sigset_t*, int*)
275 function int sigwaitinfo (const sigset_t*, siginfo_t*)
277 # if defined XOPEN2K8 || defined POSIX2008
278 function void psiginfo (const siginfo_t*, const char*)
279 function void psignal (int, const char*)
282 // The following expressions are not entirely correct but the current
283 // poorfnmatch implementation doesn't grok the right form.
290 # if !defined XPG4 && !defined XPG42
295 # if !defined POSIX && !defined XPG4 && !defined XPG42
298 # if !defined POSIX && !defined XPG4
306 # if !defined POSIX && !defined XPG4 && !defined POSIX2008
318 allow SIG[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*