php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
pcntl_arginfo.h
Go to the documentation of this file.
1/* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: 897062ad1dfe06326e561429509360174820379e */
3
4ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_fork, 0, 0, IS_LONG, 0)
6
7ZEND_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)
11 ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, resource_usage, "[]")
13
14#if defined (HAVE_WAITID) && defined (HAVE_POSIX_IDTYPES) && defined (HAVE_DECL_WEXITED) && HAVE_DECL_WEXITED == 1
15ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_waitid, 0, 0, _IS_BOOL, 0)
21#endif
22
23ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_wait, 0, 1, IS_LONG, 0)
26 ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, resource_usage, "[]")
28
29ZEND_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)
32 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, restart_syscalls, _IS_BOOL, 0, "true")
34
35ZEND_BEGIN_ARG_INFO_EX(arginfo_pcntl_signal_get_handler, 0, 0, 1)
36 ZEND_ARG_TYPE_INFO(0, signal, IS_LONG, 0)
38
39ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_signal_dispatch, 0, 0, _IS_BOOL, 0)
41
42#if defined(HAVE_SIGPROCMASK)
43ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_sigprocmask, 0, 2, _IS_BOOL, 0)
45 ZEND_ARG_TYPE_INFO(0, signals, IS_ARRAY, 0)
46 ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, old_signals, "null")
48#endif
49
50#if defined(HAVE_STRUCT_SIGINFO_T) && (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT))
52 ZEND_ARG_TYPE_INFO(0, signals, IS_ARRAY, 0)
55
57 ZEND_ARG_TYPE_INFO(0, signals, IS_ARRAY, 0)
60 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, nanoseconds, IS_LONG, 0, "0")
62#endif
63
64ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_wifexited, 0, 1, _IS_BOOL, 0)
67
68#define arginfo_pcntl_wifstopped arginfo_pcntl_wifexited
69
70#if defined(HAVE_WCONTINUED)
71ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_wifcontinued, 0, 1, _IS_BOOL, 0)
74#endif
75
76#define arginfo_pcntl_wifsignaled arginfo_pcntl_wifexited
77
81
82#define arginfo_pcntl_wtermsig arginfo_pcntl_wexitstatus
83
84#define arginfo_pcntl_wstopsig arginfo_pcntl_wexitstatus
85
86ZEND_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)
91
92ZEND_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)
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)
102 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, process_id, IS_LONG, 1, "null")
105#endif
106
107#if defined(HAVE_SETPRIORITY)
108ZEND_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")
113#endif
114
115ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_strerror, 0, 1, IS_STRING, 0)
118
119ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_async_signals, 0, 0, _IS_BOOL, 0)
122
123#if defined(HAVE_UNSHARE)
124ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_unshare, 0, 1, _IS_BOOL, 0)
127#endif
128
129#if defined(HAVE_RFORK)
130ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_rfork, 0, 1, IS_LONG, 0)
134#endif
135
136#if defined(HAVE_FORKX)
137ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_forkx, 0, 1, IS_LONG, 0)
140#endif
141
142#if defined(HAVE_PIDFD_OPEN)
143ZEND_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")
147#endif
148
149#if defined(HAVE_SCHED_SETAFFINITY)
150ZEND_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")
153
154ZEND_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")
158#endif
159
160#if defined(HAVE_SCHED_GETCPU)
161ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_getcpu, 0, 0, IS_LONG, 0)
163#endif
164
165#if defined(HAVE_PTHREAD_SET_QOS_CLASS_SELF_NP)
166ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_pcntl_getqos_class, 0, 0, Pcntl\\QosClass, 0)
168
169ZEND_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")
172#endif
173
176#if defined (HAVE_WAITID) && defined (HAVE_POSIX_IDTYPES) && defined (HAVE_DECL_WEXITED) && HAVE_DECL_WEXITED == 1
178#endif
182ZEND_FUNCTION(pcntl_signal_dispatch);
183#if defined(HAVE_SIGPROCMASK)
185#endif
186#if defined(HAVE_STRUCT_SIGINFO_T) && (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT))
189#endif
192#if defined(HAVE_WCONTINUED)
194#endif
202#if defined(HAVE_GETPRIORITY)
204#endif
205#if defined(HAVE_SETPRIORITY)
207#endif
210#if defined(HAVE_UNSHARE)
212#endif
213#if defined(HAVE_RFORK)
215#endif
216#if defined(HAVE_FORKX)
218#endif
219#if defined(HAVE_PIDFD_OPEN)
221#endif
222#if defined(HAVE_SCHED_SETAFFINITY)
225#endif
226#if defined(HAVE_SCHED_GETCPU)
228#endif
229#if defined(HAVE_PTHREAD_SET_QOS_CLASS_SELF_NP)
232#endif
233
234static 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)
253#if defined(HAVE_WCONTINUED)
254 ZEND_FE(pcntl_wifcontinued, arginfo_pcntl_wifcontinued)
255#endif
257 ZEND_FE(pcntl_wexitstatus, arginfo_pcntl_wexitstatus)
260 ZEND_FE(pcntl_exec, arginfo_pcntl_exec)
261 ZEND_FE(pcntl_alarm, arginfo_pcntl_alarm)
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
296};
297
298static void register_pcntl_symbols(int module_number)
299{
300#if defined(WNOHANG)
302#endif
303#if defined(WUNTRACED)
305#endif
306#if defined(HAVE_WCONTINUED)
308#endif
309#if defined (HAVE_DECL_WEXITED) && HAVE_DECL_WEXITED == 1
311#endif
312#if defined (HAVE_DECL_WSTOPPED) && HAVE_DECL_WSTOPPED == 1
314#endif
315#if defined (HAVE_DECL_WNOWAIT) && HAVE_DECL_WNOWAIT== 1
317#endif
318#if defined(HAVE_WAITID) && defined(HAVE_POSIX_IDTYPES)
320#endif
321#if defined(HAVE_WAITID) && defined(HAVE_POSIX_IDTYPES)
323#endif
324#if defined(HAVE_WAITID) && defined(HAVE_POSIX_IDTYPES)
326#endif
327#if defined(HAVE_WAITID) && defined(HAVE_LINUX_IDTYPES)
329#endif
330#if defined(HAVE_WAITID) && defined(HAVE_NETBSD_IDTYPES)
332#endif
333#if defined(HAVE_WAITID) && defined(HAVE_NETBSD_IDTYPES)
335#endif
336#if defined(HAVE_WAITID) && defined(HAVE_NETBSD_IDTYPES)
338#endif
339#if defined(HAVE_WAITID) && defined(HAVE_FREEBSD_IDTYPES)
341#endif
351#if defined(SIGIOT)
353#endif
363#if defined(SIGSTKFLT)
365#endif
366#if defined(SIGCLD)
368#endif
369#if defined(SIGCHLD)
371#endif
383#if defined(SIGPOLL)
385#endif
386#if defined(SIGIO)
388#endif
389#if defined(SIGPWR)
391#endif
392#if defined(SIGINFO)
394#endif
395#if defined(SIGSYS)
397#endif
398#if defined(SIGSYS)
400#endif
401#if defined(SIGCKPT)
403#endif
404#if defined(SIGCKPTEXIT)
406#endif
407#if defined(SIGRTMIN)
409#endif
410#if defined(SIGRTMAX)
412#endif
413#if (defined(HAVE_GETPRIORITY) || defined(HAVE_SETPRIORITY))
415#endif
416#if (defined(HAVE_GETPRIORITY) || defined(HAVE_SETPRIORITY))
418#endif
419#if (defined(HAVE_GETPRIORITY) || defined(HAVE_SETPRIORITY))
421#endif
422#if (defined(HAVE_GETPRIORITY) || defined(HAVE_SETPRIORITY)) && defined(PRIO_DARWIN_BG)
424#endif
425#if (defined(HAVE_GETPRIORITY) || defined(HAVE_SETPRIORITY)) && defined(PRIO_DARWIN_BG)
427#endif
428#if defined(HAVE_SIGPROCMASK)
430#endif
431#if defined(HAVE_SIGPROCMASK)
433#endif
434#if defined(HAVE_SIGPROCMASK)
436#endif
437#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT))
439#endif
440#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(SI_NOINFO)
442#endif
443#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(SI_KERNEL)
445#endif
446#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT))
448#endif
449#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT))
451#endif
452#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT))
454#endif
455#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT))
457#endif
458#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(SI_SIGIO)
460#endif
461#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(SI_TKILL)
463#endif
464#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(CLD_EXITED)
466#endif
467#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(CLD_KILLED)
469#endif
470#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(CLD_DUMPED)
472#endif
473#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(CLD_TRAPPED)
475#endif
476#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(CLD_STOPPED)
478#endif
479#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(CLD_CONTINUED)
481#endif
482#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(TRAP_BRKPT)
484#endif
485#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(TRAP_TRACE)
487#endif
488#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(POLL_IN)
490#endif
491#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(POLL_OUT)
493#endif
494#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(POLL_MSG)
496#endif
497#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(POLL_ERR)
499#endif
500#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(POLL_PRI)
502#endif
503#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(POLL_HUP)
505#endif
506#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(ILL_ILLOPC)
508#endif
509#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(ILL_ILLOPN)
511#endif
512#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(ILL_ILLADR)
514#endif
515#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(ILL_ILLTRP)
517#endif
518#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(ILL_PRVOPC)
520#endif
521#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(ILL_PRVREG)
523#endif
524#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(ILL_COPROC)
526#endif
527#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(ILL_BADSTK)
529#endif
530#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(FPE_INTDIV)
532#endif
533#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(FPE_INTOVF)
535#endif
536#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(FPE_FLTDIV)
538#endif
539#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(FPE_FLTOVF)
541#endif
542#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(FPE_FLTUND)
544#endif
545#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(FPE_FLTRES)
547#endif
548#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(FPE_FLTINV)
550#endif
551#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(FPE_FLTSUB)
553#endif
554#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(SEGV_MAPERR)
556#endif
557#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(SEGV_ACCERR)
559#endif
560#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(BUS_ADRALN)
562#endif
563#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(BUS_ADRERR)
565#endif
566#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)) && defined(BUS_OBJERR)
568#endif
569#if defined(HAVE_UNSHARE)
571#endif
572#if defined(HAVE_UNSHARE) && defined(CLONE_NEWIPC)
574#endif
575#if defined(HAVE_UNSHARE) && defined(CLONE_NEWUTS)
577#endif
578#if defined(HAVE_UNSHARE) && defined(CLONE_NEWNET)
580#endif
581#if defined(HAVE_UNSHARE) && defined(CLONE_NEWPID)
583#endif
584#if defined(HAVE_UNSHARE) && defined(CLONE_NEWUSER)
586#endif
587#if defined(HAVE_UNSHARE) && defined(CLONE_NEWCGROUP)
589#endif
590#if defined(HAVE_RFORK) && defined(RFPROC)
592#endif
593#if defined(HAVE_RFORK) && defined(RFNOWAIT)
595#endif
596#if defined(HAVE_RFORK) && defined(RFCFDG)
598#endif
599#if defined(HAVE_RFORK) && defined(RFFDG)
601#endif
602#if defined(HAVE_RFORK) && defined(RFLINUXTHPN)
604#endif
605#if defined(HAVE_RFORK) && defined(RFTSIGZMB)
607#endif
608#if defined(HAVE_RFORK) && defined(RFTHREAD)
610#endif
611#if defined(HAVE_FORKX)
613#endif
614#if defined(HAVE_FORKX)
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)
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)
658#endif
659#if defined(EMFILE)
660 REGISTER_LONG_CONSTANT("PCNTL_EMFILE", EMFILE, CONST_PERSISTENT);
661#endif
662#if defined(ENAMETOOLONG)
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)
685#endif
686#if defined(ECAPMODE)
687 REGISTER_LONG_CONSTANT("PCNTL_ECAPMODE", ECAPMODE, CONST_PERSISTENT);
688#endif
689}
690
691static 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}
DNS_STATUS status
Definition dns_win32.c:49
char * mode
#define NULL
Definition gdcache.h:45
#define LONG_CONST(c)
Definition pcntl.c:140
const SIGPOLL
const SIGKILL
pcntl_signal(int $signal, $handler, bool $restart_syscalls=true)
const PRIO_PGRP
const SEGV_ACCERR
const SIGPWR
const SIGINT
const SIG_BLOCK
pcntl_wait(&$status, int $flags=0, &$resource_usage=[])
const FPE_FLTUND
const BUS_OBJERR
const P_GID
const PRIO_DARWIN_THREAD
const SIG_ERR
const FPE_FLTSUB
const TRAP_TRACE
const SIGXCPU
const SI_USER
pcntl_wifstopped(int $status)
const SIGINFO
const P_UID
const WSTOPPED
pcntl_signal_get_handler(int $signal)
const SIGRTMAX
const POLL_PRI
pcntl_waitpid(int $process_id, &$status, int $flags=0, &$resource_usage=[])
const PRIO_USER
pcntl_setcpuaffinity(?int $process_id=null, array $cpu_ids=[])
const WEXITED
const SIGTERM
const SIGTRAP
pcntl_exec(string $path, array $args=[], array $env_vars=[])
const SIG_UNBLOCK
const SIG_IGN
const CLONE_NEWIPC
pcntl_wifcontinued(int $status)
const SIGQUIT
const SIGABRT
const P_PGID
const SIGCONT
const SIGIOT
const FPE_FLTRES
pcntl_getpriority(?int $process_id=null, int $mode=PRIO_PROCESS)
const BUS_ADRERR
const RFFDG
pcntl_get_last_error()
pcntl_alarm(int $seconds)
const SIGUSR1
const SI_QUEUE
pcntl_wstopsig(int $status)
const FORK_NOSIGCHLD
const WNOHANG
const ILL_PRVOPC
pcntl_getcpu()
pcntl_wexitstatus(int $status)
const ILL_COPROC
const SIGSEGV
const SI_SIGIO
const SIGCHLD
const SIGILL
const PRIO_DARWIN_BG
const P_PID
const SIG_DFL
const SIGCKPTEXIT
const RFLINUXTHPN
const CLONE_NEWCGROUP
const SEGV_MAPERR
const FPE_INTDIV
const SIGPIPE
const SIGHUP
const CLONE_NEWPID
pcntl_strerror(int $error_code)
const CLONE_NEWNET
const SIGSYS
const ILL_BADSTK
const RFTSIGZMB
const SIGTTOU
pcntl_getqos_class()
pcntl_sigprocmask(int $mode, array $signals, &$old_signals=null)
pcntl_setpriority(int $priority, ?int $process_id=null, int $mode=PRIO_PROCESS)
const SIGFPE
pcntl_sigtimedwait(array $signals, &$info=[], int $seconds=0, int $nanoseconds=0)
const POLL_IN
const FORK_WAITPID
const SIGTSTP
const WNOWAIT
const RFPROC
const CLD_TRAPPED
pcntl_wifsignaled(int $status)
const CLONE_NEWNS
const SIGSTOP
const SIGRTMIN
const ILL_ILLOPC
const SIG_SETMASK
const CLD_DUMPED
pcntl_sigwaitinfo(array $signals, &$info=[])
const FPE_FLTOVF
const SIGURG
const SIGCKPT
const SI_MESGQ
const CLD_KILLED
const P_PIDFD
const WUNTRACED
const FPE_FLTINV
pcntl_getcpuaffinity(?int $process_id=null)
const CLD_EXITED
pcntl_forkx(int $flags)
const SIGTTIN
const SIGBUS
const SI_NOINFO
const TRAP_BRKPT
const SI_TIMER
const POLL_OUT
const FPE_FLTDIV
pcntl_rfork(int $flags, int $signal=0)
const BUS_ADRALN
pcntl_waitid(int $idtype=P_ALL, ?int $id=null, &$info=[], int $flags=WEXITED)
const P_SID
const SIGWINCH
const CLONE_NEWUSER
const SI_KERNEL
const SIGUSR2
const CLD_STOPPED
const ILL_ILLTRP
const SIGIO
const SI_TKILL
const SIGCLD
pcntl_wtermsig(int $status)
const RFCFDG
const ILL_ILLOPN
const SIGXFSZ
pcntl_setqos_class(Pcntl\QosClass $qos_class=Pcntl\QosClass::Default)
const P_ALL
const RFTHREAD
const FPE_INTOVF
pcntl_setns(?int $process_id=null, int $nstype=CLONE_NEWNET)
pcntl_unshare(int $flags)
const PRIO_PROCESS
const POLL_MSG
const ILL_ILLADR
pcntl_wifexited(int $status)
const POLL_ERR
const POLL_HUP
const SI_ASYNCIO
const CLD_CONTINUED
const WCONTINUED
const ILL_PRVREG
pcntl_fork()
const SIGSTKFLT
const RFNOWAIT
const CLONE_NEWUTS
const P_JAILID
pcntl_async_signals(?bool $enable=null)
#define arginfo_pcntl_wifstopped
#define arginfo_pcntl_wifsignaled
#define arginfo_pcntl_wtermsig
#define arginfo_pcntl_get_last_error
#define arginfo_pcntl_errno
#define arginfo_pcntl_wstopsig
php_json_error_code error_code
Definition php_json.h:92
#define SIGVTALRM
Definition signal.h:9
#define SIGALRM
Definition signal.h:8
#define ELOOP
#define ENAMETOOLONG
#define EUSERS
#define EAGAIN
#define ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(name, return_reference, required_num_args, type)
Definition zend_API.h:185
#define ZEND_FE_END
Definition zend_API.h:124
#define ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(pass_by_ref, name, class_name, allow_null, default_value)
Definition zend_API.h:156
struct _zend_function_entry zend_function_entry
#define ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(name, return_reference, required_num_args, type, allow_null)
Definition zend_API.h:205
#define ZEND_RAW_FENTRY(zend_name, name, arg_info, flags, frameless_function_infos, doc_comment)
Definition zend_API.h:80
#define ZEND_ARG_INFO(pass_by_ref, name)
Definition zend_API.h:130
#define ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(name, return_reference, required_num_args, class_name, allow_null)
Definition zend_API.h:172
#define ZEND_END_ARG_INFO()
Definition zend_API.h:219
#define ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(pass_by_ref, name, type_hint, allow_null, default_value)
Definition zend_API.h:140
#define ZEND_ARG_TYPE_INFO(pass_by_ref, name, type_hint, allow_null)
Definition zend_API.h:138
#define ZEND_BEGIN_ARG_INFO_EX(name, _unused, return_reference, required_num_args)
Definition zend_API.h:214
#define ZEND_FE(name, arg_info)
Definition zend_API.h:86
#define ZEND_FUNCTION(name)
Definition zend_API.h:75
#define ZEND_ARG_INFO_WITH_DEFAULT_VALUE(pass_by_ref, name, default_value)
Definition zend_API.h:132
zval * args
#define CONST_PERSISTENT
#define REGISTER_LONG_CONSTANT(name, lval, flags)
ZEND_API zend_class_entry * zend_register_internal_enum(const char *name, uint8_t type, const zend_function_entry *functions)
Definition zend_enum.c:503
ZEND_API void zend_enum_add_case_cstr(zend_class_entry *ce, const char *name, zval *value)
Definition zend_enum.c:606
#define SIGPROF
struct _zend_class_entry zend_class_entry
#define MAY_BE_FALSE
#define MAY_BE_LONG
#define MAY_BE_ARRAY
#define IS_UNDEF
Definition zend_types.h:600
#define IS_STRING
Definition zend_types.h:606
#define IS_ARRAY
Definition zend_types.h:607
#define IS_VOID
Definition zend_types.h:617
#define IS_LONG
Definition zend_types.h:604
#define _IS_BOOL
Definition zend_types.h:629
fbc internal_function handler(call, ret)