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