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