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