xref: /PHP-8.2/ext/pcntl/pcntl.stub.php (revision 962baf77)
1<?php
2
3/** @generate-class-entries */
4
5/* Wait Constants */
6
7#ifdef WNOHANG
8/**
9 * @var int
10 * @cvalue LONG_CONST(WNOHANG)
11 */
12const WNOHANG = UNKNOWN;
13#endif
14#ifdef WUNTRACED
15/**
16 * @var int
17 * @cvalue LONG_CONST(WUNTRACED)
18 */
19const WUNTRACED = UNKNOWN;
20#endif
21#ifdef HAVE_WCONTINUED
22/**
23 * @var int
24 * @cvalue LONG_CONST(WCONTINUED)
25 */
26const WCONTINUED = UNKNOWN;
27#endif
28
29/* Signal Constants */
30
31/**
32 * @var int
33 * @cvalue LONG_CONST(SIG_IGN)
34 */
35const SIG_IGN = UNKNOWN;
36/**
37 * @var int
38 * @cvalue LONG_CONST(SIG_DFL)
39 */
40const SIG_DFL = UNKNOWN;
41/**
42 * @var int
43 * @cvalue LONG_CONST(SIG_ERR)
44 */
45const SIG_ERR = UNKNOWN;
46/**
47 * @var int
48 * @cvalue LONG_CONST(SIGHUP)
49 */
50const SIGHUP = UNKNOWN;
51/**
52 * @var int
53 * @cvalue LONG_CONST(SIGINT)
54 */
55const SIGINT = UNKNOWN;
56/**
57 * @var int
58 * @cvalue LONG_CONST(SIGQUIT)
59 */
60const SIGQUIT = UNKNOWN;
61/**
62 * @var int
63 * @cvalue LONG_CONST(SIGILL)
64 */
65const SIGILL = UNKNOWN;
66/**
67 * @var int
68 * @cvalue LONG_CONST(SIGTRAP)
69 */
70const SIGTRAP = UNKNOWN;
71/**
72 * @var int
73 * @cvalue LONG_CONST(SIGABRT)
74 */
75const SIGABRT = UNKNOWN;
76#ifdef SIGIOT
77/**
78 * @var int
79 * @cvalue LONG_CONST(SIGIOT)
80 */
81const SIGIOT = UNKNOWN;
82#endif
83
84/**
85 * @var int
86 * @cvalue LONG_CONST(SIGBUS)
87 */
88const SIGBUS = UNKNOWN;
89/**
90 * @var int
91 * @cvalue LONG_CONST(SIGFPE)
92 */
93const SIGFPE = UNKNOWN;
94/**
95 * @var int
96 * @cvalue LONG_CONST(SIGKILL)
97 */
98const SIGKILL = UNKNOWN;
99/**
100 * @var int
101 * @cvalue LONG_CONST(SIGUSR1)
102 */
103const SIGUSR1 = UNKNOWN;
104/**
105 * @var int
106 * @cvalue LONG_CONST(SIGSEGV)
107 */
108const SIGSEGV = UNKNOWN;
109/**
110 * @var int
111 * @cvalue LONG_CONST(SIGUSR2)
112 */
113const SIGUSR2 = UNKNOWN;
114/**
115 * @var int
116 * @cvalue LONG_CONST(SIGPIPE)
117 */
118const SIGPIPE = UNKNOWN;
119/**
120 * @var int
121 * @cvalue LONG_CONST(SIGALRM)
122 */
123const SIGALRM = UNKNOWN;
124/**
125 * @var int
126 * @cvalue LONG_CONST(SIGTERM)
127 */
128const SIGTERM = UNKNOWN;
129#ifdef SIGSTKFLT
130/**
131 * @var int
132 * @cvalue LONG_CONST(SIGSTKFLT)
133 */
134const SIGSTKFLT = UNKNOWN;
135#endif
136#ifdef SIGCLD
137/**
138 * @var int
139 * @cvalue LONG_CONST(SIGCLD)
140 */
141const SIGCLD = UNKNOWN;
142#endif
143#ifdef SIGCHLD
144/**
145 * @var int
146 * @cvalue LONG_CONST(SIGCHLD)
147 */
148const SIGCHLD = UNKNOWN;
149#endif
150
151/**
152 * @var int
153 * @cvalue LONG_CONST(SIGCONT)
154 */
155const SIGCONT = UNKNOWN;
156/**
157 * @var int
158 * @cvalue LONG_CONST(SIGSTOP)
159 */
160const SIGSTOP = UNKNOWN;
161/**
162 * @var int
163 * @cvalue LONG_CONST(SIGTSTP)
164 */
165const SIGTSTP = UNKNOWN;
166/**
167 * @var int
168 * @cvalue LONG_CONST(SIGTTIN)
169 */
170const SIGTTIN = UNKNOWN;
171/**
172 * @var int
173 * @cvalue LONG_CONST(SIGTTOU)
174 */
175const SIGTTOU = UNKNOWN;
176/**
177 * @var int
178 * @cvalue LONG_CONST(SIGURG)
179 */
180const SIGURG = UNKNOWN;
181/**
182 * @var int
183 * @cvalue LONG_CONST(SIGXCPU)
184 */
185const SIGXCPU = UNKNOWN;
186/**
187 * @var int
188 * @cvalue LONG_CONST(SIGXFSZ)
189 */
190const SIGXFSZ = UNKNOWN;
191/**
192 * @var int
193 * @cvalue LONG_CONST(SIGVTALRM)
194 */
195const SIGVTALRM = UNKNOWN;
196/**
197 * @var int
198 * @cvalue LONG_CONST(SIGPROF)
199 */
200const SIGPROF = UNKNOWN;
201/**
202 * @var int
203 * @cvalue LONG_CONST(SIGWINCH)
204 */
205const SIGWINCH = UNKNOWN;
206#ifdef SIGPOLL
207/**
208 * @var int
209 * @cvalue LONG_CONST(SIGPOLL)
210 */
211const SIGPOLL = UNKNOWN;
212#endif
213#ifdef SIGIO
214/**
215 * @var int
216 * @cvalue LONG_CONST(SIGIO)
217 */
218const SIGIO = UNKNOWN;
219#endif
220#ifdef SIGPWR
221/**
222 * @var int
223 * @cvalue LONG_CONST(SIGPWR)
224 */
225const SIGPWR = UNKNOWN;
226#endif
227#ifdef SIGSYS
228/**
229 * @var int
230 * @cvalue LONG_CONST(SIGSYS)
231 */
232const SIGSYS = UNKNOWN;
233/**
234 * @var int
235 * @cvalue LONG_CONST(SIGSYS)
236 */
237const SIGBABY = UNKNOWN;
238#endif
239#ifdef SIGRTMIN
240/**
241 * @var int
242 * @cvalue LONG_CONST(SIGRTMIN)
243 */
244const SIGRTMIN = UNKNOWN;
245#endif
246#ifdef SIGRTMAX
247/**
248 * @var int
249 * @cvalue LONG_CONST(SIGRTMAX)
250 */
251const SIGRTMAX = UNKNOWN;
252#endif
253
254#if (defined(HAVE_GETPRIORITY) || defined(HAVE_SETPRIORITY))
255/**
256 * @var int
257 * @cvalue PRIO_PGRP
258 */
259const PRIO_PGRP = UNKNOWN;
260/**
261 * @var int
262 * @cvalue PRIO_USER
263 */
264const PRIO_USER = UNKNOWN;
265/**
266 * @var int
267 * @cvalue PRIO_PROCESS
268 */
269const PRIO_PROCESS = UNKNOWN;
270#if defined(PRIO_DARWIN_BG)
271/**
272 * @var int
273 * @cvalue PRIO_DARWIN_BG
274 */
275const PRIO_DARWIN_BG = UNKNOWN;
276/**
277 * @var int
278 * @cvalue PRIO_DARWIN_THREAD
279 */
280const PRIO_DARWIN_THREAD = UNKNOWN;
281#endif
282#endif
283
284/* "mode" argument for sigprocmask */
285
286#ifdef HAVE_SIGPROCMASK
287/**
288 * @var int
289 * @cvalue SIG_BLOCK
290 */
291const SIG_BLOCK = UNKNOWN;
292/**
293 * @var int
294 * @cvalue SIG_UNBLOCK
295 */
296const SIG_UNBLOCK = UNKNOWN;
297/**
298 * @var int
299 * @cvalue SIG_SETMASK
300 */
301const SIG_SETMASK = UNKNOWN;
302#endif
303
304#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT))
305/**
306 * @var int
307 * @cvalue SI_USER
308 */
309const SI_USER = UNKNOWN;
310#ifdef SI_NOINFO
311/**
312 * @var int
313 * @cvalue SI_NOINFO
314 */
315const SI_NOINFO = UNKNOWN;
316#endif
317#ifdef SI_KERNEL
318/**
319 * @var int
320 * @cvalue SI_KERNEL
321 */
322const SI_KERNEL = UNKNOWN;
323#endif
324/**
325 * @var int
326 * @cvalue SI_QUEUE
327 */
328const SI_QUEUE = UNKNOWN;
329/**
330 * @var int
331 * @cvalue SI_TIMER
332 */
333const SI_TIMER = UNKNOWN;
334/**
335 * @var int
336 * @cvalue SI_MESGQ
337 */
338const SI_MESGQ = UNKNOWN;
339/**
340 * @var int
341 * @cvalue SI_ASYNCIO
342 */
343const SI_ASYNCIO = UNKNOWN;
344#ifdef SI_SIGIO
345/**
346 * @var int
347 * @cvalue SI_SIGIO
348 */
349const SI_SIGIO = UNKNOWN;
350#endif
351#ifdef SI_TKILL
352/**
353 * @var int
354 * @cvalue SI_TKILL
355 */
356const SI_TKILL = UNKNOWN;
357#endif
358
359/* si_code for SIGCHILD */
360
361#ifdef CLD_EXITED
362/**
363 * @var int
364 * @cvalue CLD_EXITED
365 */
366const CLD_EXITED = UNKNOWN;
367#endif
368#ifdef CLD_KILLED
369/**
370 * @var int
371 * @cvalue CLD_KILLED
372 */
373const CLD_KILLED = UNKNOWN;
374#endif
375#ifdef CLD_DUMPED
376/**
377 * @var int
378 * @cvalue CLD_DUMPED
379 */
380const CLD_DUMPED = UNKNOWN;
381#endif
382#ifdef CLD_TRAPPED
383/**
384 * @var int
385 * @cvalue CLD_TRAPPED
386 */
387const CLD_TRAPPED = UNKNOWN;
388#endif
389#ifdef CLD_STOPPED
390/**
391 * @var int
392 * @cvalue CLD_STOPPED
393 */
394const CLD_STOPPED = UNKNOWN;
395#endif
396#ifdef CLD_CONTINUED
397/**
398 * @var int
399 * @cvalue CLD_CONTINUED
400 */
401const CLD_CONTINUED = UNKNOWN;
402#endif
403
404/* si_code for SIGTRAP */
405
406#ifdef TRAP_BRKPT
407/**
408 * @var int
409 * @cvalue TRAP_BRKPT
410 */
411const TRAP_BRKPT = UNKNOWN;
412#endif
413#ifdef TRAP_TRACE
414/**
415 * @var int
416 * @cvalue TRAP_TRACE
417 */
418const TRAP_TRACE = UNKNOWN;
419#endif
420
421/* si_code for SIGPOLL */
422
423#ifdef POLL_IN
424/**
425 * @var int
426 * @cvalue POLL_IN
427 */
428const POLL_IN = UNKNOWN;
429#endif
430#ifdef POLL_OUT
431/**
432 * @var int
433 * @cvalue POLL_OUT
434 */
435const POLL_OUT = UNKNOWN;
436#endif
437#ifdef POLL_MSG
438/**
439 * @var int
440 * @cvalue POLL_MSG
441 */
442const POLL_MSG = UNKNOWN;
443#endif
444#ifdef POLL_ERR
445/**
446 * @var int
447 * @cvalue POLL_ERR
448 */
449const POLL_ERR = UNKNOWN;
450#endif
451#ifdef POLL_PRI
452/**
453 * @var int
454 * @cvalue POLL_PRI
455 */
456const POLL_PRI = UNKNOWN;
457#endif
458#ifdef POLL_HUP
459/**
460 * @var int
461 * @cvalue POLL_HUP
462 */
463const POLL_HUP = UNKNOWN;
464#endif
465
466#ifdef ILL_ILLOPC
467/**
468 * @var int
469 * @cvalue ILL_ILLOPC
470 */
471const ILL_ILLOPC = UNKNOWN;
472#endif
473#ifdef ILL_ILLOPN
474/**
475 * @var int
476 * @cvalue ILL_ILLOPN
477 */
478const ILL_ILLOPN = UNKNOWN;
479#endif
480#ifdef ILL_ILLADR
481/**
482 * @var int
483 * @cvalue ILL_ILLADR
484 */
485const ILL_ILLADR = UNKNOWN;
486#endif
487#ifdef ILL_ILLTRP
488/**
489 * @var int
490 * @cvalue ILL_ILLTRP
491 */
492const ILL_ILLTRP = UNKNOWN;
493#endif
494#ifdef ILL_PRVOPC
495/**
496 * @var int
497 * @cvalue ILL_PRVOPC
498 */
499const ILL_PRVOPC = UNKNOWN;
500#endif
501#ifdef ILL_PRVREG
502/**
503 * @var int
504 * @cvalue ILL_PRVREG
505 */
506const ILL_PRVREG = UNKNOWN;
507#endif
508#ifdef ILL_COPROC
509/**
510 * @var int
511 * @cvalue ILL_COPROC
512 */
513const ILL_COPROC = UNKNOWN;
514#endif
515#ifdef ILL_BADSTK
516/**
517 * @var int
518 * @cvalue ILL_BADSTK
519 */
520const ILL_BADSTK = UNKNOWN;
521#endif
522#ifdef FPE_INTDIV
523/**
524 * @var int
525 * @cvalue FPE_INTDIV
526 */
527const FPE_INTDIV = UNKNOWN;
528#endif
529#ifdef FPE_INTOVF
530/**
531 * @var int
532 * @cvalue FPE_INTOVF
533 */
534const FPE_INTOVF = UNKNOWN;
535#endif
536#ifdef FPE_FLTDIV
537/**
538 * @var int
539 * @cvalue FPE_FLTDIV
540 */
541const FPE_FLTDIV = UNKNOWN;
542#endif
543#ifdef FPE_FLTOVF
544/**
545 * @var int
546 * @cvalue FPE_FLTOVF
547 */
548const FPE_FLTOVF = UNKNOWN;
549#endif
550#ifdef FPE_FLTUND
551/**
552 * @var int
553 * @cvalue FPE_FLTUND
554 */
555const FPE_FLTUND = UNKNOWN;
556#endif
557#ifdef FPE_FLTRES
558/**
559 * @var int
560 * @cvalue FPE_FLTRES
561 */
562const FPE_FLTRES = UNKNOWN;
563#endif
564#ifdef FPE_FLTINV
565/**
566 * @var int
567 * @cvalue FPE_FLTINV
568 */
569const FPE_FLTINV = UNKNOWN;
570#endif
571#ifdef FPE_FLTSUB
572/**
573 * @var int
574 * @cvalue FPE_FLTSUB
575 */
576const FPE_FLTSUB = UNKNOWN;
577#endif
578#ifdef SEGV_MAPERR
579/**
580 * @var int
581 * @cvalue SEGV_MAPERR
582 */
583const SEGV_MAPERR = UNKNOWN;
584#endif
585#ifdef SEGV_ACCERR
586/**
587 * @var int
588 * @cvalue SEGV_ACCERR
589 */
590const SEGV_ACCERR = UNKNOWN;
591#endif
592#ifdef BUS_ADRALN
593/**
594 * @var int
595 * @cvalue BUS_ADRALN
596 */
597const BUS_ADRALN = UNKNOWN;
598#endif
599#ifdef BUS_ADRERR
600/**
601 * @var int
602 * @cvalue BUS_ADRERR
603 */
604const BUS_ADRERR = UNKNOWN;
605#endif
606#ifdef BUS_OBJERR
607/**
608 * @var int
609 * @cvalue BUS_OBJERR
610 */
611const BUS_OBJERR = UNKNOWN;
612#endif
613#endif
614
615/* unshare(/clone) constants */
616
617#ifdef HAVE_UNSHARE
618/**
619 * @var int
620 * @cvalue CLONE_NEWNS
621 */
622const CLONE_NEWNS = UNKNOWN;
623#ifdef CLONE_NEWIPC
624/**
625 * @var int
626 * @cvalue CLONE_NEWIPC
627 */
628const CLONE_NEWIPC = UNKNOWN;
629#endif
630#ifdef CLONE_NEWUTS
631/**
632 * @var int
633 * @cvalue CLONE_NEWUTS
634 */
635const CLONE_NEWUTS = UNKNOWN;
636#endif
637#ifdef CLONE_NEWNET
638/**
639 * @var int
640 * @cvalue CLONE_NEWNET
641 */
642const CLONE_NEWNET = UNKNOWN;
643#endif
644#ifdef CLONE_NEWPID
645/**
646 * @var int
647 * @cvalue CLONE_NEWPID
648 */
649const CLONE_NEWPID = UNKNOWN;
650#endif
651#ifdef CLONE_NEWUSER
652/**
653 * @var int
654 * @cvalue CLONE_NEWUSER
655 */
656const CLONE_NEWUSER = UNKNOWN;
657#endif
658#ifdef CLONE_NEWCGROUP
659/**
660 * @var int
661 * @cvalue CLONE_NEWCGROUP
662 */
663const CLONE_NEWCGROUP = UNKNOWN;
664#endif
665#endif
666
667#ifdef HAVE_RFORK
668#ifdef RFPROC
669/**
670 * @var int
671 * @cvalue RFPROC
672 */
673const RFPROC = UNKNOWN;
674#endif
675#ifdef RFNOWAIT
676/**
677 * @var int
678 * @cvalue RFNOWAIT
679 */
680const RFNOWAIT = UNKNOWN;
681#endif
682#ifdef RFCFDG
683/**
684 * @var int
685 * @cvalue RFCFDG
686 */
687const RFCFDG = UNKNOWN;
688#endif
689#ifdef RFFDG
690/**
691 * @var int
692 * @cvalue RFFDG
693 */
694const RFFDG = UNKNOWN;
695#endif
696#ifdef RFLINUXTHPN
697/**
698 * @var int
699 * @cvalue RFLINUXTHPN
700 */
701const RFLINUXTHPN = UNKNOWN;
702#endif
703#ifdef RFTSIGZMB
704/**
705 * @var int
706 * @cvalue RFTSIGZMB
707 */
708const RFTSIGZMB = UNKNOWN;
709#endif
710#ifdef RFTHREAD
711/**
712 * @var int
713 * @cvalue RFTHREAD
714 */
715const RFTHREAD = UNKNOWN;
716#endif
717#endif
718
719#ifdef HAVE_FORKX
720/**
721 * @var int
722 * @cvalue FORK_NOSIGCHLD
723 */
724const FORK_NOSIGCHLD = UNKNOWN;
725/**
726 * @var int
727 * @cvalue FORK_WAITPID
728 */
729const FORK_WAITPID = UNKNOWN;
730#endif
731
732#ifdef EINTR
733/**
734 * @var int
735 * @cvalue EINTR
736 */
737const PCNTL_EINTR = UNKNOWN;
738#endif
739#ifdef ECHILD
740/**
741 * @var int
742 * @cvalue ECHILD
743 */
744const PCNTL_ECHILD = UNKNOWN;
745#endif
746#ifdef EINVAL
747/**
748 * @var int
749 * @cvalue EINVAL
750 */
751const PCNTL_EINVAL = UNKNOWN;
752#endif
753#ifdef EAGAIN
754/**
755 * @var int
756 * @cvalue EAGAIN
757 */
758const PCNTL_EAGAIN = UNKNOWN;
759#endif
760#ifdef ESRCH
761/**
762 * @var int
763 * @cvalue ESRCH
764 */
765const PCNTL_ESRCH = UNKNOWN;
766#endif
767#ifdef EACCES
768/**
769 * @var int
770 * @cvalue EACCES
771 */
772const PCNTL_EACCES = UNKNOWN;
773#endif
774#ifdef EPERM
775/**
776 * @var int
777 * @cvalue EPERM
778 */
779const PCNTL_EPERM = UNKNOWN;
780#endif
781#ifdef ENOMEM
782/**
783 * @var int
784 * @cvalue ENOMEM
785 */
786const PCNTL_ENOMEM = UNKNOWN;
787#endif
788#ifdef E2BIG
789/**
790 * @var int
791 * @cvalue E2BIG
792 */
793const PCNTL_E2BIG = UNKNOWN;
794#endif
795#ifdef EFAULT
796/**
797 * @var int
798 * @cvalue EFAULT
799 */
800const PCNTL_EFAULT = UNKNOWN;
801#endif
802#ifdef EIO
803/**
804 * @var int
805 * @cvalue EIO
806 */
807const PCNTL_EIO = UNKNOWN;
808#endif
809#ifdef EISDIR
810/**
811 * @var int
812 * @cvalue EISDIR
813 */
814const PCNTL_EISDIR = UNKNOWN;
815#endif
816#ifdef ELIBBAD
817/**
818 * @var int
819 * @cvalue ELIBBAD
820 */
821const PCNTL_ELIBBAD = UNKNOWN;
822#endif
823#ifdef ELOOP
824/**
825 * @var int
826 * @cvalue ELOOP
827 */
828const PCNTL_ELOOP = UNKNOWN;
829#endif
830#ifdef EMFILE
831/**
832 * @var int
833 * @cvalue EMFILE
834 */
835const PCNTL_EMFILE = UNKNOWN;
836#endif
837#ifdef ENAMETOOLONG
838/**
839 * @var int
840 * @cvalue ENAMETOOLONG
841 */
842const PCNTL_ENAMETOOLONG = UNKNOWN;
843#endif
844#ifdef ENFILE
845/**
846 * @var int
847 * @cvalue ENFILE
848 */
849const PCNTL_ENFILE = UNKNOWN;
850#endif
851#ifdef ENOENT
852/**
853 * @var int
854 * @cvalue ENOENT
855 */
856const PCNTL_ENOENT = UNKNOWN;
857#endif
858#ifdef ENOEXEC
859/**
860 * @var int
861 * @cvalue ENOEXEC
862 */
863const PCNTL_ENOEXEC = UNKNOWN;
864#endif
865#ifdef ENOTDIR
866/**
867 * @var int
868 * @cvalue ENOTDIR
869 */
870const PCNTL_ENOTDIR = UNKNOWN;
871#endif
872#ifdef ETXTBSY
873/**
874 * @var int
875 * @cvalue ETXTBSY
876 */
877const PCNTL_ETXTBSY = UNKNOWN;
878#endif
879#ifdef ENOSPC
880/**
881 * @var int
882 * @cvalue ENOSPC
883 */
884const PCNTL_ENOSPC = UNKNOWN;
885#endif
886#ifdef EUSERS
887/**
888 * @var int
889 * @cvalue EUSERS
890 */
891const PCNTL_EUSERS = UNKNOWN;
892#endif
893#ifdef ECAPMODE
894/**
895 * @var int
896 * @cvalue ECAPMODE
897 */
898const PCNTL_ECAPMODE = UNKNOWN;
899#endif
900
901function pcntl_fork(): int {}
902
903/**
904 * @param int $status
905 * @param array $resource_usage
906 */
907function pcntl_waitpid(int $process_id, &$status, int $flags = 0, &$resource_usage = []): int {}
908
909/**
910 * @param int $status
911 * @param array $resource_usage
912 */
913function pcntl_wait(&$status, int $flags = 0, &$resource_usage = []): int {}
914
915/** @param callable|int $handler */
916function pcntl_signal(int $signal, $handler, bool $restart_syscalls = true): bool {}
917
918/** @return callable|int */
919function pcntl_signal_get_handler(int $signal) {}
920
921function pcntl_signal_dispatch(): bool {}
922
923#ifdef HAVE_SIGPROCMASK
924/** @param array $old_signals */
925function pcntl_sigprocmask(int $mode, array $signals, &$old_signals = null): bool {}
926#endif
927
928#ifdef HAVE_STRUCT_SIGINFO_T
929#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT))
930/** @param array $info */
931function pcntl_sigwaitinfo(array $signals, &$info = []): int|false {}
932
933/** @param array $info */
934function pcntl_sigtimedwait(array $signals, &$info = [], int $seconds = 0, int $nanoseconds = 0): int|false {}
935#endif
936#endif
937
938function pcntl_wifexited(int $status): bool {}
939
940function pcntl_wifstopped(int $status): bool {}
941
942#ifdef HAVE_WCONTINUED
943function pcntl_wifcontinued(int $status): bool {}
944#endif
945
946function pcntl_wifsignaled(int $status): bool {}
947
948function pcntl_wexitstatus(int $status): int|false {}
949
950function pcntl_wtermsig(int $status): int|false {}
951
952function pcntl_wstopsig(int $status): int|false {}
953
954function pcntl_exec(string $path, array $args = [], array $env_vars = []): bool {}
955
956function pcntl_alarm(int $seconds): int {}
957
958function pcntl_get_last_error(): int {}
959
960/** @alias pcntl_get_last_error */
961function pcntl_errno(): int {}
962
963#ifdef HAVE_GETPRIORITY
964function pcntl_getpriority(?int $process_id = null, int $mode = PRIO_PROCESS): int|false {}
965#endif
966
967#ifdef HAVE_SETPRIORITY
968function pcntl_setpriority(int $priority, ?int $process_id = null, int $mode = PRIO_PROCESS): bool{}
969#endif
970
971function pcntl_strerror(int $error_code): string {}
972
973function pcntl_async_signals(?bool $enable = null): bool {}
974
975#ifdef HAVE_UNSHARE
976function pcntl_unshare(int $flags): bool {}
977#endif
978
979#ifdef HAVE_RFORK
980function pcntl_rfork(int $flags, int $signal = 0): int{}
981#endif
982
983#ifdef HAVE_FORKX
984function pcntl_forkx(int $flags): int{}
985#endif
986