xref: /PHP-8.3/ext/pcntl/pcntl_arginfo.h (revision e0e347b4)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 3b03373d1bb68de779baaa62db14d98ca9018339 */
3 
4 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_fork, 0, 0, IS_LONG, 0)
5 ZEND_END_ARG_INFO()
6 
7 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_waitpid, 0, 2, IS_LONG, 0)
8 	ZEND_ARG_TYPE_INFO(0, process_id, IS_LONG, 0)
9 	ZEND_ARG_INFO(1, status)
10 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
11 	ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, resource_usage, "[]")
12 ZEND_END_ARG_INFO()
13 
14 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_wait, 0, 1, IS_LONG, 0)
15 	ZEND_ARG_INFO(1, status)
16 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
17 	ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, resource_usage, "[]")
18 ZEND_END_ARG_INFO()
19 
20 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_signal, 0, 2, _IS_BOOL, 0)
21 	ZEND_ARG_TYPE_INFO(0, signal, IS_LONG, 0)
22 	ZEND_ARG_INFO(0, handler)
23 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, restart_syscalls, _IS_BOOL, 0, "true")
24 ZEND_END_ARG_INFO()
25 
26 ZEND_BEGIN_ARG_INFO_EX(arginfo_pcntl_signal_get_handler, 0, 0, 1)
27 	ZEND_ARG_TYPE_INFO(0, signal, IS_LONG, 0)
28 ZEND_END_ARG_INFO()
29 
30 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_signal_dispatch, 0, 0, _IS_BOOL, 0)
31 ZEND_END_ARG_INFO()
32 
33 #if defined(HAVE_SIGPROCMASK)
34 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_sigprocmask, 0, 2, _IS_BOOL, 0)
35 	ZEND_ARG_TYPE_INFO(0, mode, IS_LONG, 0)
36 	ZEND_ARG_TYPE_INFO(0, signals, IS_ARRAY, 0)
37 	ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, old_signals, "null")
38 ZEND_END_ARG_INFO()
39 #endif
40 
41 #if defined(HAVE_STRUCT_SIGINFO_T) && (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT))
42 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pcntl_sigwaitinfo, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
43 	ZEND_ARG_TYPE_INFO(0, signals, IS_ARRAY, 0)
44 	ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, info, "[]")
45 ZEND_END_ARG_INFO()
46 #endif
47 
48 #if defined(HAVE_STRUCT_SIGINFO_T) && (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT))
49 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pcntl_sigtimedwait, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
50 	ZEND_ARG_TYPE_INFO(0, signals, IS_ARRAY, 0)
51 	ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, info, "[]")
52 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, seconds, IS_LONG, 0, "0")
53 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, nanoseconds, IS_LONG, 0, "0")
54 ZEND_END_ARG_INFO()
55 #endif
56 
57 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_wifexited, 0, 1, _IS_BOOL, 0)
58 	ZEND_ARG_TYPE_INFO(0, status, IS_LONG, 0)
59 ZEND_END_ARG_INFO()
60 
61 #define arginfo_pcntl_wifstopped arginfo_pcntl_wifexited
62 
63 #if defined(HAVE_WCONTINUED)
64 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_wifcontinued, 0, 1, _IS_BOOL, 0)
65 	ZEND_ARG_TYPE_INFO(0, status, IS_LONG, 0)
66 ZEND_END_ARG_INFO()
67 #endif
68 
69 #define arginfo_pcntl_wifsignaled arginfo_pcntl_wifexited
70 
71 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pcntl_wexitstatus, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
72 	ZEND_ARG_TYPE_INFO(0, status, IS_LONG, 0)
73 ZEND_END_ARG_INFO()
74 
75 #define arginfo_pcntl_wtermsig arginfo_pcntl_wexitstatus
76 
77 #define arginfo_pcntl_wstopsig arginfo_pcntl_wexitstatus
78 
79 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_exec, 0, 1, _IS_BOOL, 0)
80 	ZEND_ARG_TYPE_INFO(0, path, IS_STRING, 0)
81 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, args, IS_ARRAY, 0, "[]")
82 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, env_vars, IS_ARRAY, 0, "[]")
83 ZEND_END_ARG_INFO()
84 
85 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_alarm, 0, 1, IS_LONG, 0)
86 	ZEND_ARG_TYPE_INFO(0, seconds, IS_LONG, 0)
87 ZEND_END_ARG_INFO()
88 
89 #define arginfo_pcntl_get_last_error arginfo_pcntl_fork
90 
91 #define arginfo_pcntl_errno arginfo_pcntl_fork
92 
93 #if defined(HAVE_GETPRIORITY)
94 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pcntl_getpriority, 0, 0, MAY_BE_LONG|MAY_BE_FALSE)
95 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, process_id, IS_LONG, 1, "null")
96 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "PRIO_PROCESS")
97 ZEND_END_ARG_INFO()
98 #endif
99 
100 #if defined(HAVE_SETPRIORITY)
101 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_setpriority, 0, 1, _IS_BOOL, 0)
102 	ZEND_ARG_TYPE_INFO(0, priority, IS_LONG, 0)
103 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, process_id, IS_LONG, 1, "null")
104 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "PRIO_PROCESS")
105 ZEND_END_ARG_INFO()
106 #endif
107 
108 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_strerror, 0, 1, IS_STRING, 0)
109 	ZEND_ARG_TYPE_INFO(0, error_code, IS_LONG, 0)
110 ZEND_END_ARG_INFO()
111 
112 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_async_signals, 0, 0, _IS_BOOL, 0)
113 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, enable, _IS_BOOL, 1, "null")
114 ZEND_END_ARG_INFO()
115 
116 #if defined(HAVE_UNSHARE)
117 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_unshare, 0, 1, _IS_BOOL, 0)
118 	ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0)
119 ZEND_END_ARG_INFO()
120 #endif
121 
122 #if defined(HAVE_RFORK)
123 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_rfork, 0, 1, IS_LONG, 0)
124 	ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0)
125 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, signal, IS_LONG, 0, "0")
126 ZEND_END_ARG_INFO()
127 #endif
128 
129 #if defined(HAVE_FORKX)
130 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_forkx, 0, 1, IS_LONG, 0)
131 	ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0)
132 ZEND_END_ARG_INFO()
133 #endif
134 
135 
136 ZEND_FUNCTION(pcntl_fork);
137 ZEND_FUNCTION(pcntl_waitpid);
138 ZEND_FUNCTION(pcntl_wait);
139 ZEND_FUNCTION(pcntl_signal);
140 ZEND_FUNCTION(pcntl_signal_get_handler);
141 ZEND_FUNCTION(pcntl_signal_dispatch);
142 #if defined(HAVE_SIGPROCMASK)
143 ZEND_FUNCTION(pcntl_sigprocmask);
144 #endif
145 #if defined(HAVE_STRUCT_SIGINFO_T) && (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT))
146 ZEND_FUNCTION(pcntl_sigwaitinfo);
147 #endif
148 #if defined(HAVE_STRUCT_SIGINFO_T) && (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT))
149 ZEND_FUNCTION(pcntl_sigtimedwait);
150 #endif
151 ZEND_FUNCTION(pcntl_wifexited);
152 ZEND_FUNCTION(pcntl_wifstopped);
153 #if defined(HAVE_WCONTINUED)
154 ZEND_FUNCTION(pcntl_wifcontinued);
155 #endif
156 ZEND_FUNCTION(pcntl_wifsignaled);
157 ZEND_FUNCTION(pcntl_wexitstatus);
158 ZEND_FUNCTION(pcntl_wtermsig);
159 ZEND_FUNCTION(pcntl_wstopsig);
160 ZEND_FUNCTION(pcntl_exec);
161 ZEND_FUNCTION(pcntl_alarm);
162 ZEND_FUNCTION(pcntl_get_last_error);
163 #if defined(HAVE_GETPRIORITY)
164 ZEND_FUNCTION(pcntl_getpriority);
165 #endif
166 #if defined(HAVE_SETPRIORITY)
167 ZEND_FUNCTION(pcntl_setpriority);
168 #endif
169 ZEND_FUNCTION(pcntl_strerror);
170 ZEND_FUNCTION(pcntl_async_signals);
171 #if defined(HAVE_UNSHARE)
172 ZEND_FUNCTION(pcntl_unshare);
173 #endif
174 #if defined(HAVE_RFORK)
175 ZEND_FUNCTION(pcntl_rfork);
176 #endif
177 #if defined(HAVE_FORKX)
178 ZEND_FUNCTION(pcntl_forkx);
179 #endif
180 
181 
182 static const zend_function_entry ext_functions[] = {
183 	ZEND_FE(pcntl_fork, arginfo_pcntl_fork)
184 	ZEND_FE(pcntl_waitpid, arginfo_pcntl_waitpid)
185 	ZEND_FE(pcntl_wait, arginfo_pcntl_wait)
186 	ZEND_FE(pcntl_signal, arginfo_pcntl_signal)
187 	ZEND_FE(pcntl_signal_get_handler, arginfo_pcntl_signal_get_handler)
188 	ZEND_FE(pcntl_signal_dispatch, arginfo_pcntl_signal_dispatch)
189 #if defined(HAVE_SIGPROCMASK)
190 	ZEND_FE(pcntl_sigprocmask, arginfo_pcntl_sigprocmask)
191 #endif
192 #if defined(HAVE_STRUCT_SIGINFO_T) && (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT))
193 	ZEND_FE(pcntl_sigwaitinfo, arginfo_pcntl_sigwaitinfo)
194 #endif
195 #if defined(HAVE_STRUCT_SIGINFO_T) && (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT))
196 	ZEND_FE(pcntl_sigtimedwait, arginfo_pcntl_sigtimedwait)
197 #endif
198 	ZEND_FE(pcntl_wifexited, arginfo_pcntl_wifexited)
199 	ZEND_FE(pcntl_wifstopped, arginfo_pcntl_wifstopped)
200 #if defined(HAVE_WCONTINUED)
201 	ZEND_FE(pcntl_wifcontinued, arginfo_pcntl_wifcontinued)
202 #endif
203 	ZEND_FE(pcntl_wifsignaled, arginfo_pcntl_wifsignaled)
204 	ZEND_FE(pcntl_wexitstatus, arginfo_pcntl_wexitstatus)
205 	ZEND_FE(pcntl_wtermsig, arginfo_pcntl_wtermsig)
206 	ZEND_FE(pcntl_wstopsig, arginfo_pcntl_wstopsig)
207 	ZEND_FE(pcntl_exec, arginfo_pcntl_exec)
208 	ZEND_FE(pcntl_alarm, arginfo_pcntl_alarm)
209 	ZEND_FE(pcntl_get_last_error, arginfo_pcntl_get_last_error)
210 	ZEND_FALIAS(pcntl_errno, pcntl_get_last_error, arginfo_pcntl_errno)
211 #if defined(HAVE_GETPRIORITY)
212 	ZEND_FE(pcntl_getpriority, arginfo_pcntl_getpriority)
213 #endif
214 #if defined(HAVE_SETPRIORITY)
215 	ZEND_FE(pcntl_setpriority, arginfo_pcntl_setpriority)
216 #endif
217 	ZEND_FE(pcntl_strerror, arginfo_pcntl_strerror)
218 	ZEND_FE(pcntl_async_signals, arginfo_pcntl_async_signals)
219 #if defined(HAVE_UNSHARE)
220 	ZEND_FE(pcntl_unshare, arginfo_pcntl_unshare)
221 #endif
222 #if defined(HAVE_RFORK)
223 	ZEND_FE(pcntl_rfork, arginfo_pcntl_rfork)
224 #endif
225 #if defined(HAVE_FORKX)
226 	ZEND_FE(pcntl_forkx, arginfo_pcntl_forkx)
227 #endif
228 	ZEND_FE_END
229 };
230 
register_pcntl_symbols(int module_number)231 static void register_pcntl_symbols(int module_number)
232 {
233 #if defined(WNOHANG)
234 	REGISTER_LONG_CONSTANT("WNOHANG", LONG_CONST(WNOHANG), CONST_PERSISTENT);
235 #endif
236 #if defined(WUNTRACED)
237 	REGISTER_LONG_CONSTANT("WUNTRACED", LONG_CONST(WUNTRACED), CONST_PERSISTENT);
238 #endif
239 #if defined(HAVE_WCONTINUED)
240 	REGISTER_LONG_CONSTANT("WCONTINUED", LONG_CONST(WCONTINUED), CONST_PERSISTENT);
241 #endif
242 	REGISTER_LONG_CONSTANT("SIG_IGN", LONG_CONST(SIG_IGN), CONST_PERSISTENT);
243 	REGISTER_LONG_CONSTANT("SIG_DFL", LONG_CONST(SIG_DFL), CONST_PERSISTENT);
244 	REGISTER_LONG_CONSTANT("SIG_ERR", LONG_CONST(SIG_ERR), CONST_PERSISTENT);
245 	REGISTER_LONG_CONSTANT("SIGHUP", LONG_CONST(SIGHUP), CONST_PERSISTENT);
246 	REGISTER_LONG_CONSTANT("SIGINT", LONG_CONST(SIGINT), CONST_PERSISTENT);
247 	REGISTER_LONG_CONSTANT("SIGQUIT", LONG_CONST(SIGQUIT), CONST_PERSISTENT);
248 	REGISTER_LONG_CONSTANT("SIGILL", LONG_CONST(SIGILL), CONST_PERSISTENT);
249 	REGISTER_LONG_CONSTANT("SIGTRAP", LONG_CONST(SIGTRAP), CONST_PERSISTENT);
250 	REGISTER_LONG_CONSTANT("SIGABRT", LONG_CONST(SIGABRT), CONST_PERSISTENT);
251 #if defined(SIGIOT)
252 	REGISTER_LONG_CONSTANT("SIGIOT", LONG_CONST(SIGIOT), CONST_PERSISTENT);
253 #endif
254 	REGISTER_LONG_CONSTANT("SIGBUS", LONG_CONST(SIGBUS), CONST_PERSISTENT);
255 	REGISTER_LONG_CONSTANT("SIGFPE", LONG_CONST(SIGFPE), CONST_PERSISTENT);
256 	REGISTER_LONG_CONSTANT("SIGKILL", LONG_CONST(SIGKILL), CONST_PERSISTENT);
257 	REGISTER_LONG_CONSTANT("SIGUSR1", LONG_CONST(SIGUSR1), CONST_PERSISTENT);
258 	REGISTER_LONG_CONSTANT("SIGSEGV", LONG_CONST(SIGSEGV), CONST_PERSISTENT);
259 	REGISTER_LONG_CONSTANT("SIGUSR2", LONG_CONST(SIGUSR2), CONST_PERSISTENT);
260 	REGISTER_LONG_CONSTANT("SIGPIPE", LONG_CONST(SIGPIPE), CONST_PERSISTENT);
261 	REGISTER_LONG_CONSTANT("SIGALRM", LONG_CONST(SIGALRM), CONST_PERSISTENT);
262 	REGISTER_LONG_CONSTANT("SIGTERM", LONG_CONST(SIGTERM), CONST_PERSISTENT);
263 #if defined(SIGSTKFLT)
264 	REGISTER_LONG_CONSTANT("SIGSTKFLT", LONG_CONST(SIGSTKFLT), CONST_PERSISTENT);
265 #endif
266 #if defined(SIGCLD)
267 	REGISTER_LONG_CONSTANT("SIGCLD", LONG_CONST(SIGCLD), CONST_PERSISTENT);
268 #endif
269 #if defined(SIGCHLD)
270 	REGISTER_LONG_CONSTANT("SIGCHLD", LONG_CONST(SIGCHLD), CONST_PERSISTENT);
271 #endif
272 	REGISTER_LONG_CONSTANT("SIGCONT", LONG_CONST(SIGCONT), CONST_PERSISTENT);
273 	REGISTER_LONG_CONSTANT("SIGSTOP", LONG_CONST(SIGSTOP), CONST_PERSISTENT);
274 	REGISTER_LONG_CONSTANT("SIGTSTP", LONG_CONST(SIGTSTP), CONST_PERSISTENT);
275 	REGISTER_LONG_CONSTANT("SIGTTIN", LONG_CONST(SIGTTIN), CONST_PERSISTENT);
276 	REGISTER_LONG_CONSTANT("SIGTTOU", LONG_CONST(SIGTTOU), CONST_PERSISTENT);
277 	REGISTER_LONG_CONSTANT("SIGURG", LONG_CONST(SIGURG), CONST_PERSISTENT);
278 	REGISTER_LONG_CONSTANT("SIGXCPU", LONG_CONST(SIGXCPU), CONST_PERSISTENT);
279 	REGISTER_LONG_CONSTANT("SIGXFSZ", LONG_CONST(SIGXFSZ), CONST_PERSISTENT);
280 	REGISTER_LONG_CONSTANT("SIGVTALRM", LONG_CONST(SIGVTALRM), CONST_PERSISTENT);
281 	REGISTER_LONG_CONSTANT("SIGPROF", LONG_CONST(SIGPROF), CONST_PERSISTENT);
282 	REGISTER_LONG_CONSTANT("SIGWINCH", LONG_CONST(SIGWINCH), CONST_PERSISTENT);
283 #if defined(SIGPOLL)
284 	REGISTER_LONG_CONSTANT("SIGPOLL", LONG_CONST(SIGPOLL), CONST_PERSISTENT);
285 #endif
286 #if defined(SIGIO)
287 	REGISTER_LONG_CONSTANT("SIGIO", LONG_CONST(SIGIO), CONST_PERSISTENT);
288 #endif
289 #if defined(SIGPWR)
290 	REGISTER_LONG_CONSTANT("SIGPWR", LONG_CONST(SIGPWR), CONST_PERSISTENT);
291 #endif
292 #if defined(SIGINFO)
293 	REGISTER_LONG_CONSTANT("SIGINFO", LONG_CONST(SIGINFO), CONST_PERSISTENT);
294 #endif
295 #if defined(SIGSYS)
296 	REGISTER_LONG_CONSTANT("SIGSYS", LONG_CONST(SIGSYS), CONST_PERSISTENT);
297 #endif
298 #if defined(SIGSYS)
299 	REGISTER_LONG_CONSTANT("SIGBABY", LONG_CONST(SIGSYS), CONST_PERSISTENT);
300 #endif
301 #if defined(SIGRTMIN)
302 	REGISTER_LONG_CONSTANT("SIGRTMIN", LONG_CONST(SIGRTMIN), CONST_PERSISTENT);
303 #endif
304 #if defined(SIGRTMAX)
305 	REGISTER_LONG_CONSTANT("SIGRTMAX", LONG_CONST(SIGRTMAX), CONST_PERSISTENT);
306 #endif
307 #if (defined(HAVE_GETPRIORITY) || defined(HAVE_SETPRIORITY))
308 	REGISTER_LONG_CONSTANT("PRIO_PGRP", PRIO_PGRP, CONST_PERSISTENT);
309 #endif
310 #if (defined(HAVE_GETPRIORITY) || defined(HAVE_SETPRIORITY))
311 	REGISTER_LONG_CONSTANT("PRIO_USER", PRIO_USER, CONST_PERSISTENT);
312 #endif
313 #if (defined(HAVE_GETPRIORITY) || defined(HAVE_SETPRIORITY))
314 	REGISTER_LONG_CONSTANT("PRIO_PROCESS", PRIO_PROCESS, CONST_PERSISTENT);
315 #endif
316 #if (defined(HAVE_GETPRIORITY) || defined(HAVE_SETPRIORITY)) && defined(PRIO_DARWIN_BG)
317 	REGISTER_LONG_CONSTANT("PRIO_DARWIN_BG", PRIO_DARWIN_BG, CONST_PERSISTENT);
318 #endif
319 #if (defined(HAVE_GETPRIORITY) || defined(HAVE_SETPRIORITY)) && defined(PRIO_DARWIN_BG)
320 	REGISTER_LONG_CONSTANT("PRIO_DARWIN_THREAD", PRIO_DARWIN_THREAD, CONST_PERSISTENT);
321 #endif
322 #if defined(HAVE_SIGPROCMASK)
323 	REGISTER_LONG_CONSTANT("SIG_BLOCK", SIG_BLOCK, CONST_PERSISTENT);
324 #endif
325 #if defined(HAVE_SIGPROCMASK)
326 	REGISTER_LONG_CONSTANT("SIG_UNBLOCK", SIG_UNBLOCK, CONST_PERSISTENT);
327 #endif
328 #if defined(HAVE_SIGPROCMASK)
329 	REGISTER_LONG_CONSTANT("SIG_SETMASK", SIG_SETMASK, CONST_PERSISTENT);
330 #endif
331 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT))
332 	REGISTER_LONG_CONSTANT("SI_USER", SI_USER, CONST_PERSISTENT);
333 #endif
334 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(SI_NOINFO)
335 	REGISTER_LONG_CONSTANT("SI_NOINFO", SI_NOINFO, CONST_PERSISTENT);
336 #endif
337 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(SI_KERNEL)
338 	REGISTER_LONG_CONSTANT("SI_KERNEL", SI_KERNEL, CONST_PERSISTENT);
339 #endif
340 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT))
341 	REGISTER_LONG_CONSTANT("SI_QUEUE", SI_QUEUE, CONST_PERSISTENT);
342 #endif
343 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT))
344 	REGISTER_LONG_CONSTANT("SI_TIMER", SI_TIMER, CONST_PERSISTENT);
345 #endif
346 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT))
347 	REGISTER_LONG_CONSTANT("SI_MESGQ", SI_MESGQ, CONST_PERSISTENT);
348 #endif
349 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT))
350 	REGISTER_LONG_CONSTANT("SI_ASYNCIO", SI_ASYNCIO, CONST_PERSISTENT);
351 #endif
352 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(SI_SIGIO)
353 	REGISTER_LONG_CONSTANT("SI_SIGIO", SI_SIGIO, CONST_PERSISTENT);
354 #endif
355 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(SI_TKILL)
356 	REGISTER_LONG_CONSTANT("SI_TKILL", SI_TKILL, CONST_PERSISTENT);
357 #endif
358 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(CLD_EXITED)
359 	REGISTER_LONG_CONSTANT("CLD_EXITED", CLD_EXITED, CONST_PERSISTENT);
360 #endif
361 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(CLD_KILLED)
362 	REGISTER_LONG_CONSTANT("CLD_KILLED", CLD_KILLED, CONST_PERSISTENT);
363 #endif
364 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(CLD_DUMPED)
365 	REGISTER_LONG_CONSTANT("CLD_DUMPED", CLD_DUMPED, CONST_PERSISTENT);
366 #endif
367 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(CLD_TRAPPED)
368 	REGISTER_LONG_CONSTANT("CLD_TRAPPED", CLD_TRAPPED, CONST_PERSISTENT);
369 #endif
370 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(CLD_STOPPED)
371 	REGISTER_LONG_CONSTANT("CLD_STOPPED", CLD_STOPPED, CONST_PERSISTENT);
372 #endif
373 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(CLD_CONTINUED)
374 	REGISTER_LONG_CONSTANT("CLD_CONTINUED", CLD_CONTINUED, CONST_PERSISTENT);
375 #endif
376 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(TRAP_BRKPT)
377 	REGISTER_LONG_CONSTANT("TRAP_BRKPT", TRAP_BRKPT, CONST_PERSISTENT);
378 #endif
379 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(TRAP_TRACE)
380 	REGISTER_LONG_CONSTANT("TRAP_TRACE", TRAP_TRACE, CONST_PERSISTENT);
381 #endif
382 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(POLL_IN)
383 	REGISTER_LONG_CONSTANT("POLL_IN", POLL_IN, CONST_PERSISTENT);
384 #endif
385 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(POLL_OUT)
386 	REGISTER_LONG_CONSTANT("POLL_OUT", POLL_OUT, CONST_PERSISTENT);
387 #endif
388 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(POLL_MSG)
389 	REGISTER_LONG_CONSTANT("POLL_MSG", POLL_MSG, CONST_PERSISTENT);
390 #endif
391 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(POLL_ERR)
392 	REGISTER_LONG_CONSTANT("POLL_ERR", POLL_ERR, CONST_PERSISTENT);
393 #endif
394 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(POLL_PRI)
395 	REGISTER_LONG_CONSTANT("POLL_PRI", POLL_PRI, CONST_PERSISTENT);
396 #endif
397 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(POLL_HUP)
398 	REGISTER_LONG_CONSTANT("POLL_HUP", POLL_HUP, CONST_PERSISTENT);
399 #endif
400 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(ILL_ILLOPC)
401 	REGISTER_LONG_CONSTANT("ILL_ILLOPC", ILL_ILLOPC, CONST_PERSISTENT);
402 #endif
403 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(ILL_ILLOPN)
404 	REGISTER_LONG_CONSTANT("ILL_ILLOPN", ILL_ILLOPN, CONST_PERSISTENT);
405 #endif
406 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(ILL_ILLADR)
407 	REGISTER_LONG_CONSTANT("ILL_ILLADR", ILL_ILLADR, CONST_PERSISTENT);
408 #endif
409 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(ILL_ILLTRP)
410 	REGISTER_LONG_CONSTANT("ILL_ILLTRP", ILL_ILLTRP, CONST_PERSISTENT);
411 #endif
412 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(ILL_PRVOPC)
413 	REGISTER_LONG_CONSTANT("ILL_PRVOPC", ILL_PRVOPC, CONST_PERSISTENT);
414 #endif
415 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(ILL_PRVREG)
416 	REGISTER_LONG_CONSTANT("ILL_PRVREG", ILL_PRVREG, CONST_PERSISTENT);
417 #endif
418 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(ILL_COPROC)
419 	REGISTER_LONG_CONSTANT("ILL_COPROC", ILL_COPROC, CONST_PERSISTENT);
420 #endif
421 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(ILL_BADSTK)
422 	REGISTER_LONG_CONSTANT("ILL_BADSTK", ILL_BADSTK, CONST_PERSISTENT);
423 #endif
424 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(FPE_INTDIV)
425 	REGISTER_LONG_CONSTANT("FPE_INTDIV", FPE_INTDIV, CONST_PERSISTENT);
426 #endif
427 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(FPE_INTOVF)
428 	REGISTER_LONG_CONSTANT("FPE_INTOVF", FPE_INTOVF, CONST_PERSISTENT);
429 #endif
430 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(FPE_FLTDIV)
431 	REGISTER_LONG_CONSTANT("FPE_FLTDIV", FPE_FLTDIV, CONST_PERSISTENT);
432 #endif
433 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(FPE_FLTOVF)
434 	REGISTER_LONG_CONSTANT("FPE_FLTOVF", FPE_FLTOVF, CONST_PERSISTENT);
435 #endif
436 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(FPE_FLTUND)
437 	REGISTER_LONG_CONSTANT("FPE_FLTUND", FPE_FLTUND, CONST_PERSISTENT);
438 #endif
439 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(FPE_FLTRES)
440 	REGISTER_LONG_CONSTANT("FPE_FLTRES", FPE_FLTRES, CONST_PERSISTENT);
441 #endif
442 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(FPE_FLTINV)
443 	REGISTER_LONG_CONSTANT("FPE_FLTINV", FPE_FLTINV, CONST_PERSISTENT);
444 #endif
445 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(FPE_FLTSUB)
446 	REGISTER_LONG_CONSTANT("FPE_FLTSUB", FPE_FLTSUB, CONST_PERSISTENT);
447 #endif
448 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(SEGV_MAPERR)
449 	REGISTER_LONG_CONSTANT("SEGV_MAPERR", SEGV_MAPERR, CONST_PERSISTENT);
450 #endif
451 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(SEGV_ACCERR)
452 	REGISTER_LONG_CONSTANT("SEGV_ACCERR", SEGV_ACCERR, CONST_PERSISTENT);
453 #endif
454 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(BUS_ADRALN)
455 	REGISTER_LONG_CONSTANT("BUS_ADRALN", BUS_ADRALN, CONST_PERSISTENT);
456 #endif
457 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(BUS_ADRERR)
458 	REGISTER_LONG_CONSTANT("BUS_ADRERR", BUS_ADRERR, CONST_PERSISTENT);
459 #endif
460 #if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(BUS_OBJERR)
461 	REGISTER_LONG_CONSTANT("BUS_OBJERR", BUS_OBJERR, CONST_PERSISTENT);
462 #endif
463 #if defined(HAVE_UNSHARE)
464 	REGISTER_LONG_CONSTANT("CLONE_NEWNS", CLONE_NEWNS, CONST_PERSISTENT);
465 #endif
466 #if defined(HAVE_UNSHARE) && defined(CLONE_NEWIPC)
467 	REGISTER_LONG_CONSTANT("CLONE_NEWIPC", CLONE_NEWIPC, CONST_PERSISTENT);
468 #endif
469 #if defined(HAVE_UNSHARE) && defined(CLONE_NEWUTS)
470 	REGISTER_LONG_CONSTANT("CLONE_NEWUTS", CLONE_NEWUTS, CONST_PERSISTENT);
471 #endif
472 #if defined(HAVE_UNSHARE) && defined(CLONE_NEWNET)
473 	REGISTER_LONG_CONSTANT("CLONE_NEWNET", CLONE_NEWNET, CONST_PERSISTENT);
474 #endif
475 #if defined(HAVE_UNSHARE) && defined(CLONE_NEWPID)
476 	REGISTER_LONG_CONSTANT("CLONE_NEWPID", CLONE_NEWPID, CONST_PERSISTENT);
477 #endif
478 #if defined(HAVE_UNSHARE) && defined(CLONE_NEWUSER)
479 	REGISTER_LONG_CONSTANT("CLONE_NEWUSER", CLONE_NEWUSER, CONST_PERSISTENT);
480 #endif
481 #if defined(HAVE_UNSHARE) && defined(CLONE_NEWCGROUP)
482 	REGISTER_LONG_CONSTANT("CLONE_NEWCGROUP", CLONE_NEWCGROUP, CONST_PERSISTENT);
483 #endif
484 #if defined(HAVE_RFORK) && defined(RFPROC)
485 	REGISTER_LONG_CONSTANT("RFPROC", RFPROC, CONST_PERSISTENT);
486 #endif
487 #if defined(HAVE_RFORK) && defined(RFNOWAIT)
488 	REGISTER_LONG_CONSTANT("RFNOWAIT", RFNOWAIT, CONST_PERSISTENT);
489 #endif
490 #if defined(HAVE_RFORK) && defined(RFCFDG)
491 	REGISTER_LONG_CONSTANT("RFCFDG", RFCFDG, CONST_PERSISTENT);
492 #endif
493 #if defined(HAVE_RFORK) && defined(RFFDG)
494 	REGISTER_LONG_CONSTANT("RFFDG", RFFDG, CONST_PERSISTENT);
495 #endif
496 #if defined(HAVE_RFORK) && defined(RFLINUXTHPN)
497 	REGISTER_LONG_CONSTANT("RFLINUXTHPN", RFLINUXTHPN, CONST_PERSISTENT);
498 #endif
499 #if defined(HAVE_RFORK) && defined(RFTSIGZMB)
500 	REGISTER_LONG_CONSTANT("RFTSIGZMB", RFTSIGZMB, CONST_PERSISTENT);
501 #endif
502 #if defined(HAVE_RFORK) && defined(RFTHREAD)
503 	REGISTER_LONG_CONSTANT("RFTHREAD", RFTHREAD, CONST_PERSISTENT);
504 #endif
505 #if defined(HAVE_FORKX)
506 	REGISTER_LONG_CONSTANT("FORK_NOSIGCHLD", FORK_NOSIGCHLD, CONST_PERSISTENT);
507 #endif
508 #if defined(HAVE_FORKX)
509 	REGISTER_LONG_CONSTANT("FORK_WAITPID", FORK_WAITPID, CONST_PERSISTENT);
510 #endif
511 #if defined(EINTR)
512 	REGISTER_LONG_CONSTANT("PCNTL_EINTR", EINTR, CONST_PERSISTENT);
513 #endif
514 #if defined(ECHILD)
515 	REGISTER_LONG_CONSTANT("PCNTL_ECHILD", ECHILD, CONST_PERSISTENT);
516 #endif
517 #if defined(EINVAL)
518 	REGISTER_LONG_CONSTANT("PCNTL_EINVAL", EINVAL, CONST_PERSISTENT);
519 #endif
520 #if defined(EAGAIN)
521 	REGISTER_LONG_CONSTANT("PCNTL_EAGAIN", EAGAIN, CONST_PERSISTENT);
522 #endif
523 #if defined(ESRCH)
524 	REGISTER_LONG_CONSTANT("PCNTL_ESRCH", ESRCH, CONST_PERSISTENT);
525 #endif
526 #if defined(EACCES)
527 	REGISTER_LONG_CONSTANT("PCNTL_EACCES", EACCES, CONST_PERSISTENT);
528 #endif
529 #if defined(EPERM)
530 	REGISTER_LONG_CONSTANT("PCNTL_EPERM", EPERM, CONST_PERSISTENT);
531 #endif
532 #if defined(ENOMEM)
533 	REGISTER_LONG_CONSTANT("PCNTL_ENOMEM", ENOMEM, CONST_PERSISTENT);
534 #endif
535 #if defined(E2BIG)
536 	REGISTER_LONG_CONSTANT("PCNTL_E2BIG", E2BIG, CONST_PERSISTENT);
537 #endif
538 #if defined(EFAULT)
539 	REGISTER_LONG_CONSTANT("PCNTL_EFAULT", EFAULT, CONST_PERSISTENT);
540 #endif
541 #if defined(EIO)
542 	REGISTER_LONG_CONSTANT("PCNTL_EIO", EIO, CONST_PERSISTENT);
543 #endif
544 #if defined(EISDIR)
545 	REGISTER_LONG_CONSTANT("PCNTL_EISDIR", EISDIR, CONST_PERSISTENT);
546 #endif
547 #if defined(ELIBBAD)
548 	REGISTER_LONG_CONSTANT("PCNTL_ELIBBAD", ELIBBAD, CONST_PERSISTENT);
549 #endif
550 #if defined(ELOOP)
551 	REGISTER_LONG_CONSTANT("PCNTL_ELOOP", ELOOP, CONST_PERSISTENT);
552 #endif
553 #if defined(EMFILE)
554 	REGISTER_LONG_CONSTANT("PCNTL_EMFILE", EMFILE, CONST_PERSISTENT);
555 #endif
556 #if defined(ENAMETOOLONG)
557 	REGISTER_LONG_CONSTANT("PCNTL_ENAMETOOLONG", ENAMETOOLONG, CONST_PERSISTENT);
558 #endif
559 #if defined(ENFILE)
560 	REGISTER_LONG_CONSTANT("PCNTL_ENFILE", ENFILE, CONST_PERSISTENT);
561 #endif
562 #if defined(ENOENT)
563 	REGISTER_LONG_CONSTANT("PCNTL_ENOENT", ENOENT, CONST_PERSISTENT);
564 #endif
565 #if defined(ENOEXEC)
566 	REGISTER_LONG_CONSTANT("PCNTL_ENOEXEC", ENOEXEC, CONST_PERSISTENT);
567 #endif
568 #if defined(ENOTDIR)
569 	REGISTER_LONG_CONSTANT("PCNTL_ENOTDIR", ENOTDIR, CONST_PERSISTENT);
570 #endif
571 #if defined(ETXTBSY)
572 	REGISTER_LONG_CONSTANT("PCNTL_ETXTBSY", ETXTBSY, CONST_PERSISTENT);
573 #endif
574 #if defined(ENOSPC)
575 	REGISTER_LONG_CONSTANT("PCNTL_ENOSPC", ENOSPC, CONST_PERSISTENT);
576 #endif
577 #if defined(EUSERS)
578 	REGISTER_LONG_CONSTANT("PCNTL_EUSERS", EUSERS, CONST_PERSISTENT);
579 #endif
580 #if defined(ECAPMODE)
581 	REGISTER_LONG_CONSTANT("PCNTL_ECAPMODE", ECAPMODE, CONST_PERSISTENT);
582 #endif
583 }
584