]> git.ipfire.org Git - thirdparty/glibc.git/blame - conform/data/signal.h-data
regex: fix storage-exhaustion error
[thirdparty/glibc.git] / conform / data / signal.h-data
CommitLineData
b1cc2472
JM
1macro-constant SIG_DFL {void(*)(int)}
2macro-constant SIG_ERR {void(*)(int)}
31341567 3#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008
b1cc2472 4macro-constant SIG_HOLD {void(*)(int)}
33780b6d 5#endif
b1cc2472 6macro-constant SIG_IGN {void(*)(int)}
8ce9ea0c
UD
7
8type sig_atomic_t
31341567 9#if !defined ISO && !defined ISO99 && !defined ISO11
8ce9ea0c 10type sigset_t
4efeffc1
UD
11#endif
12#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX
8ce9ea0c 13type pid_t
4efeffc1
UD
14#elif defined POSIX
15# define pid_t __pid_t
16# define uid_t __uid_t
31341567 17#endif
f095bb72
UD
18#if defined XOPEN2K8 || defined POSIX2008
19type size_t
20type pthread_t
21type uid_t
22
23type mcontext_t
24
25type ucontext_t
f095bb72 26element ucontext_t {ucontext_t*} uc_link
e0b5a3b6
JM
27// Bug 21634: uc_sigmask has wrong type.
28xfail[ia64-linux]-element ucontext_t sigset_t uc_sigmask
f095bb72 29element ucontext_t stack_t uc_stack
46ad8909
JM
30// Bug 21635: uc_mcontext has wrong type.
31xfail[powerpc32-linux]-element ucontext_t mcontext_t uc_mcontext
33780b6d
UD
32
33type {struct timespec}
34element {struct timespec} __time_t tv_sec
345118d7
JM
35// Bug 16437: tv_nsec has wrong type.
36xfail[x86_64-x32-linux]-element {struct timespec} long tv_nsec
f095bb72 37#endif
8ce9ea0c 38
9f57e65c 39#if defined POSIX || defined UNIX98 || defined XOPEN2K || defined XOPEN2K8 || defined POSIX2008
8ce9ea0c
UD
40element {union sigval} int sival_int
41element {union sigval} {void*} sival_ptr
42
43type {struct sigevent}
44
45// Test the elements of the sigevent_t structure.
46element {struct sigevent} int sigev_notify
47element {struct sigevent} int sigev_signo
48element {struct sigevent} {union sigval} sigev_value
5a9339d5 49element {struct sigevent} {void(*} sigev_notify_function )(union sigval)
8ce9ea0c
UD
50element {struct sigevent} {pthread_attr_t*} sigev_notify_attributes
51
52constant SIGEV_NONE
53constant SIGEV_SIGNAL
54constant SIGEV_THREAD
55
56type {union sigval}
57
58macro SIGRTMIN
59macro SIGRTMAX
31341567 60#endif
8ce9ea0c 61
b1cc2472
JM
62macro-int-constant SIGABRT {int} > 0
63macro-int-constant SIGFPE {int} > 0
64macro-int-constant SIGILL {int} > 0
65macro-int-constant SIGINT {int} > 0
66macro-int-constant SIGSEGV {int} > 0
67macro-int-constant SIGTERM {int} > 0
31341567
UD
68
69function void (*signal (int, void(*)(int)))(int)
70function int raise (int)
71
72#if !defined ISO && !defined ISO99 && !defined ISO11
b1cc2472
JM
73macro-int-constant SIGALRM {int} > 0
74macro-int-constant SIGHUP {int} > 0
b1cc2472
JM
75macro-int-constant SIGKILL {int} > 0
76macro-int-constant SIGPIPE {int} > 0
77macro-int-constant SIGQUIT {int} > 0
78macro-int-constant SIGUSR1 {int} > 0
79macro-int-constant SIGUSR2 {int} > 0
80macro-int-constant SIGCHLD {int} > 0
81macro-int-constant SIGCONT {int} > 0
82macro-int-constant SIGSTOP {int} > 0
83macro-int-constant SIGTSTP {int} > 0
84macro-int-constant SIGTTIN {int} > 0
85macro-int-constant SIGTTOU {int} > 0
0516e24d 86# ifndef XPG4
b1cc2472 87macro-int-constant SIGBUS {int} > 0
a00f522a 88# endif
0516e24d 89# if !defined POSIX && !defined XPG4
b1cc2472
JM
90macro-int-constant SIGPOLL {int} > 0
91macro-int-constant SIGPROF {int} > 0
92macro-int-constant SIGSYS {int} > 0
a00f522a 93# endif
0516e24d 94# if !defined POSIX && !defined XPG4 && !defined POSIX2008
b1cc2472 95macro-int-constant SIGTRAP {int} > 0
31341567 96# endif
0516e24d 97# if !defined POSIX && !defined XPG4
b1cc2472
JM
98macro-int-constant SIGURG {int} > 0
99macro-int-constant SIGVTALRM {int} > 0
100macro-int-constant SIGXCPU {int} > 0
101macro-int-constant SIGXFSZ {int} > 0
a00f522a 102# endif
8ce9ea0c
UD
103
104type {struct sigaction}
105
106element {struct sigaction} {void(*} sa_handler )(int)
107element {struct sigaction} sigset_t sa_mask
108element {struct sigaction} int sa_flags
6da85a0d 109# ifndef XPG4
8ce9ea0c 110element {struct sigaction} {void(*} sa_sigaction )(int, siginfo_t*, void*)
6da85a0d 111# endif
8ce9ea0c
UD
112
113constant SA_NOCLDSTOP
6da85a0d 114# ifndef XPG4
b75a9b26 115// Bug 23089: hurd: missing siginfo support.
cbc256b1 116xfail[i386-gnu]-constant SA_SIGINFO
6da85a0d 117# endif
8ce9ea0c
UD
118constant SIG_BLOCK
119constant SIG_UNBLOCK
120constant SIG_SETMASK
6da85a0d 121# if !defined XPG4 && !defined POSIX && !defined POSIX2008
8ce9ea0c 122constant SA_ONSTACK
31341567 123# endif
6da85a0d 124# if !defined XPG4 && !defined POSIX
8ce9ea0c
UD
125constant SA_RESETHAND
126constant SA_RESTART
b75a9b26 127// Bug 23090: hurd: missing SA_NOCLDWAIT support.
cbc256b1 128xfail[i386-gnu]-constant SA_NOCLDWAIT
8ce9ea0c 129constant SA_NODEFER
31341567 130# endif
6da85a0d 131# if !defined XPG4 && !defined POSIX && !defined POSIX2008
8ce9ea0c
UD
132constant SS_ONSTACK
133constant SS_DISABLE
134constant MINSIGSTKSZ
135constant SIGSTKSZ
31341567 136# endif
8ce9ea0c 137
6da85a0d 138# if !defined XPG4 && !defined POSIX
8ce9ea0c
UD
139type ucontext_t
140
141element ucontext_t {ucontext_t*} uc_link
e0b5a3b6
JM
142// Bug 21634: uc_sigmask has wrong type.
143xfail[ia64-linux]-element ucontext_t sigset_t uc_sigmask
8ce9ea0c 144element ucontext_t stack_t uc_stack
46ad8909
JM
145// Bug 21635: uc_mcontext has wrong type.
146xfail[powerpc32-linux]-element ucontext_t mcontext_t uc_mcontext
8ce9ea0c
UD
147
148type stack_t
149
150element stack_t {void*} ss_sp
151element stack_t size_t ss_size
152element stack_t int ss_flags
153
666c0c5e 154# if !defined XOPEN2K8 && !defined POSIX2008
8ce9ea0c
UD
155type {struct sigstack}
156
157element {struct sigstack} int ss_onstack
158element {struct sigstack} {void*} ss_sp
666c0c5e 159# endif
31341567 160# endif
8ce9ea0c 161
0516e24d 162# ifndef XPG4
8ce9ea0c
UD
163type siginfo_t
164
165element siginfo_t int si_signo
a00f522a 166# if !defined POSIX && !defined POSIX2008
8ce9ea0c 167element siginfo_t int si_errno
a00f522a 168# endif
8ce9ea0c 169element siginfo_t int si_code
a00f522a 170# ifndef POSIX
8ce9ea0c
UD
171element siginfo_t pid_t si_pid
172element siginfo_t uid_t si_uid
173element siginfo_t {void*} si_addr
174element siginfo_t int si_status
7c5e34d7
FW
175// Bug 23821: si_band has type int on sparc64.
176xfail[sparc64-linux]-element siginfo_t long si_band
a00f522a 177# endif
0516e24d 178# ifndef XPG42
8ce9ea0c 179element siginfo_t {union sigval} si_value
a00f522a
JM
180# endif
181# endif
8ce9ea0c 182
0516e24d 183# if !defined POSIX && !defined XPG4
8ce9ea0c
UD
184constant ILL_ILLOPC
185constant ILL_ILLOPN
186constant ILL_ILLADR
187constant ILL_ILLTRP
188constant ILL_PRVOPC
189constant ILL_PRVREG
190constant ILL_COPROC
191constant ILL_BADSTK
192constant FPE_INTDIV
193constant FPE_INTOVF
194constant FPE_FLTDIV
195constant FPE_FLTOVF
196constant FPE_FLTUND
197constant FPE_FLTRES
198constant FPE_FLTINV
199constant FPE_FLTSUB
200constant SEGV_MAPERR
201constant SEGV_ACCERR
202constant BUS_ADRALN
203constant BUS_ADRERR
204constant BUS_OBJERR
8ce9ea0c
UD
205constant CLD_EXITED
206constant CLD_KILLED
207constant CLD_DUMPED
208constant CLD_TRAPPED
209constant CLD_STOPPED
210constant CLD_CONTINUED
211constant POLL_IN
212constant POLL_OUT
213constant POLL_MSG
214constant POLL_ERR
215constant POLL_PRI
216constant POLL_HUP
a00f522a 217# endif
0516e24d 218# if !defined POSIX && !defined XPG4 && !defined POSIX2008
a00f522a
JM
219constant TRAP_BRKPT
220constant TRAP_TRACE
221# endif
6da85a0d 222# if !defined XPG4 && !defined XPG42
8ce9ea0c
UD
223constant SI_USER
224constant SI_QUEUE
225constant SI_TIMER
226constant SI_ASYNCIO
227constant SI_MESGQ
6da85a0d 228# endif
8ce9ea0c 229
6da85a0d 230# if !defined XPG4 && !defined XOPEN2K8 && !defined POSIX && !defined POSIX2008
8ce9ea0c 231function void (*bsd_signal (int, void(*)(int)))(int)
31341567 232# endif
8ce9ea0c 233function int kill (pid_t, int)
6da85a0d 234# if !defined XPG4 && !defined POSIX && !defined POSIX2008
8ce9ea0c 235function int killpg (pid_t, int)
31341567 236# endif
0516e24d 237# if !defined XPG4 && !defined XPG42
8ce9ea0c
UD
238function int pthread_kill (pthread_t, int)
239function int pthread_sigmask (int, const sigset_t*, sigset_t*)
5ba924e3 240# endif
8ce9ea0c
UD
241function int sigaction (int, const struct sigaction*, struct sigaction*)
242function int sigaddset (sigset_t*, int)
6da85a0d 243# if !defined XPG4 && !defined POSIX && !defined POSIX2008
8ce9ea0c 244function int sigaltstack (const stack_t*, stack_t*)
31341567 245# endif
8ce9ea0c
UD
246function int sigdelset (sigset_t*, int)
247function int sigemptyset (sigset_t*)
248function int sigfillset (sigset_t*)
6da85a0d 249# if !defined XPG4 && !defined POSIX && !defined POSIX2008
8ce9ea0c
UD
250function int sighold (int)
251function int sigignore (int)
252function int siginterrupt (int, int)
31341567 253# endif
8ce9ea0c 254function int sigismember (const sigset_t*, int)
6da85a0d 255#if !defined XPG4 && !defined POSIX && !defined POSIX2008
8ce9ea0c 256function int sigpause (int)
31341567 257# endif
8ce9ea0c
UD
258function int sigpending (sigset_t*)
259function int sigprocmask (int, const sigset_t*, sigset_t*)
0516e24d 260# if !defined XPG4 && !defined XPG42
8ce9ea0c 261function int sigqueue (pid_t, int, const union sigval)
5ba924e3 262# endif
6da85a0d 263# if !defined XPG4 && !defined POSIX && !defined POSIX2008
8ce9ea0c
UD
264function int sigrelse (int)
265function void (*sigset (int, void(*)(int)))(int)
31341567 266# endif
666c0c5e 267# if defined XPG42 || defined UNIX98
8ce9ea0c 268function int sigstack (struct sigstack*, struct sigstack*)
31341567 269# endif
8ce9ea0c 270function int sigsuspend (const sigset_t*)
0516e24d 271# if !defined XPG4 && !defined XPG42
8ce9ea0c 272function int sigtimedwait (const sigset_t*, siginfo_t*, const struct timespec*)
5ba924e3 273# endif
0516e24d 274# if !defined XPG4 && !defined XPG42
6da85a0d 275function int sigwait (const sigset_t*, int*)
8ce9ea0c 276function int sigwaitinfo (const sigset_t*, siginfo_t*)
5ba924e3 277# endif
31341567 278# if defined XOPEN2K8 || defined POSIX2008
f095bb72
UD
279function void psiginfo (const siginfo_t*, const char*)
280function void psignal (int, const char*)
31341567 281# endif
8ce9ea0c 282
fbe90cd5
UD
283// The following expressions are not entirely correct but the current
284// poorfnmatch implementation doesn't grok the right form.
8ce9ea0c 285allow sa_*
a00f522a 286allow SA_*
0516e24d 287# ifndef XPG4
8ce9ea0c
UD
288allow si_*
289allow SI_*
a00f522a 290# endif
0516e24d 291# if !defined XPG4 && !defined XPG42
8ce9ea0c
UD
292allow sigev_*
293allow SIGEV_*
294allow sival_*
a00f522a 295# endif
0516e24d 296# if !defined POSIX && !defined XPG4 && !defined XPG42
a00f522a
JM
297allow uc_*
298# endif
0516e24d 299# if !defined POSIX && !defined XPG4
0ed99ce4
UD
300allow BUS_*
301allow CLD_*
302allow FPE_*
303allow ILL_*
304allow POLL_*
305allow SEGV_*
a00f522a 306# endif
0516e24d 307# if !defined POSIX && !defined XPG4 && !defined POSIX2008
0ed99ce4
UD
308allow SS_*
309allow SV_*
310allow TRAP_*
a00f522a
JM
311allow ss_*
312allow sv_*
313# endif
0ed99ce4 314allow *_t
a53d3f82
UD
315
316allow-header time.h
31341567
UD
317#endif
318
319allow SIG[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*
320allow SIG_*