xref: /PHP-8.3/ext/pcntl/pcntl.stub.php (revision e0e347b4)
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 SIGINFO
228/**
229 * @var int
230 * @cvalue LONG_CONST(SIGINFO)
231 */
232const SIGINFO = UNKNOWN;
233#endif
234#ifdef SIGSYS
235/**
236 * @var int
237 * @cvalue LONG_CONST(SIGSYS)
238 */
239const SIGSYS = UNKNOWN;
240/**
241 * @var int
242 * @cvalue LONG_CONST(SIGSYS)
243 */
244const SIGBABY = UNKNOWN;
245#endif
246#ifdef SIGRTMIN
247/**
248 * @var int
249 * @cvalue LONG_CONST(SIGRTMIN)
250 */
251const SIGRTMIN = UNKNOWN;
252#endif
253#ifdef SIGRTMAX
254/**
255 * @var int
256 * @cvalue LONG_CONST(SIGRTMAX)
257 */
258const SIGRTMAX = UNKNOWN;
259#endif
260
261#if (defined(HAVE_GETPRIORITY) || defined(HAVE_SETPRIORITY))
262/**
263 * @var int
264 * @cvalue PRIO_PGRP
265 */
266const PRIO_PGRP = UNKNOWN;
267/**
268 * @var int
269 * @cvalue PRIO_USER
270 */
271const PRIO_USER = UNKNOWN;
272/**
273 * @var int
274 * @cvalue PRIO_PROCESS
275 */
276const PRIO_PROCESS = UNKNOWN;
277#if defined(PRIO_DARWIN_BG)
278/**
279 * @var int
280 * @cvalue PRIO_DARWIN_BG
281 */
282const PRIO_DARWIN_BG = UNKNOWN;
283/**
284 * @var int
285 * @cvalue PRIO_DARWIN_THREAD
286 */
287const PRIO_DARWIN_THREAD = UNKNOWN;
288#endif
289#endif
290
291/* "mode" argument for sigprocmask */
292
293#ifdef HAVE_SIGPROCMASK
294/**
295 * @var int
296 * @cvalue SIG_BLOCK
297 */
298const SIG_BLOCK = UNKNOWN;
299/**
300 * @var int
301 * @cvalue SIG_UNBLOCK
302 */
303const SIG_UNBLOCK = UNKNOWN;
304/**
305 * @var int
306 * @cvalue SIG_SETMASK
307 */
308const SIG_SETMASK = UNKNOWN;
309#endif
310
311#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT))
312/**
313 * @var int
314 * @cvalue SI_USER
315 */
316const SI_USER = UNKNOWN;
317#ifdef SI_NOINFO
318/**
319 * @var int
320 * @cvalue SI_NOINFO
321 */
322const SI_NOINFO = UNKNOWN;
323#endif
324#ifdef SI_KERNEL
325/**
326 * @var int
327 * @cvalue SI_KERNEL
328 */
329const SI_KERNEL = UNKNOWN;
330#endif
331/**
332 * @var int
333 * @cvalue SI_QUEUE
334 */
335const SI_QUEUE = UNKNOWN;
336/**
337 * @var int
338 * @cvalue SI_TIMER
339 */
340const SI_TIMER = UNKNOWN;
341/**
342 * @var int
343 * @cvalue SI_MESGQ
344 */
345const SI_MESGQ = UNKNOWN;
346/**
347 * @var int
348 * @cvalue SI_ASYNCIO
349 */
350const SI_ASYNCIO = UNKNOWN;
351#ifdef SI_SIGIO
352/**
353 * @var int
354 * @cvalue SI_SIGIO
355 */
356const SI_SIGIO = UNKNOWN;
357#endif
358#ifdef SI_TKILL
359/**
360 * @var int
361 * @cvalue SI_TKILL
362 */
363const SI_TKILL = UNKNOWN;
364#endif
365
366/* si_code for SIGCHILD */
367
368#ifdef CLD_EXITED
369/**
370 * @var int
371 * @cvalue CLD_EXITED
372 */
373const CLD_EXITED = UNKNOWN;
374#endif
375#ifdef CLD_KILLED
376/**
377 * @var int
378 * @cvalue CLD_KILLED
379 */
380const CLD_KILLED = UNKNOWN;
381#endif
382#ifdef CLD_DUMPED
383/**
384 * @var int
385 * @cvalue CLD_DUMPED
386 */
387const CLD_DUMPED = UNKNOWN;
388#endif
389#ifdef CLD_TRAPPED
390/**
391 * @var int
392 * @cvalue CLD_TRAPPED
393 */
394const CLD_TRAPPED = UNKNOWN;
395#endif
396#ifdef CLD_STOPPED
397/**
398 * @var int
399 * @cvalue CLD_STOPPED
400 */
401const CLD_STOPPED = UNKNOWN;
402#endif
403#ifdef CLD_CONTINUED
404/**
405 * @var int
406 * @cvalue CLD_CONTINUED
407 */
408const CLD_CONTINUED = UNKNOWN;
409#endif
410
411/* si_code for SIGTRAP */
412
413#ifdef TRAP_BRKPT
414/**
415 * @var int
416 * @cvalue TRAP_BRKPT
417 */
418const TRAP_BRKPT = UNKNOWN;
419#endif
420#ifdef TRAP_TRACE
421/**
422 * @var int
423 * @cvalue TRAP_TRACE
424 */
425const TRAP_TRACE = UNKNOWN;
426#endif
427
428/* si_code for SIGPOLL */
429
430#ifdef POLL_IN
431/**
432 * @var int
433 * @cvalue POLL_IN
434 */
435const POLL_IN = UNKNOWN;
436#endif
437#ifdef POLL_OUT
438/**
439 * @var int
440 * @cvalue POLL_OUT
441 */
442const POLL_OUT = UNKNOWN;
443#endif
444#ifdef POLL_MSG
445/**
446 * @var int
447 * @cvalue POLL_MSG
448 */
449const POLL_MSG = UNKNOWN;
450#endif
451#ifdef POLL_ERR
452/**
453 * @var int
454 * @cvalue POLL_ERR
455 */
456const POLL_ERR = UNKNOWN;
457#endif
458#ifdef POLL_PRI
459/**
460 * @var int
461 * @cvalue POLL_PRI
462 */
463const POLL_PRI = UNKNOWN;
464#endif
465#ifdef POLL_HUP
466/**
467 * @var int
468 * @cvalue POLL_HUP
469 */
470const POLL_HUP = UNKNOWN;
471#endif
472
473#ifdef ILL_ILLOPC
474/**
475 * @var int
476 * @cvalue ILL_ILLOPC
477 */
478const ILL_ILLOPC = UNKNOWN;
479#endif
480#ifdef ILL_ILLOPN
481/**
482 * @var int
483 * @cvalue ILL_ILLOPN
484 */
485const ILL_ILLOPN = UNKNOWN;
486#endif
487#ifdef ILL_ILLADR
488/**
489 * @var int
490 * @cvalue ILL_ILLADR
491 */
492const ILL_ILLADR = UNKNOWN;
493#endif
494#ifdef ILL_ILLTRP
495/**
496 * @var int
497 * @cvalue ILL_ILLTRP
498 */
499const ILL_ILLTRP = UNKNOWN;
500#endif
501#ifdef ILL_PRVOPC
502/**
503 * @var int
504 * @cvalue ILL_PRVOPC
505 */
506const ILL_PRVOPC = UNKNOWN;
507#endif
508#ifdef ILL_PRVREG
509/**
510 * @var int
511 * @cvalue ILL_PRVREG
512 */
513const ILL_PRVREG = UNKNOWN;
514#endif
515#ifdef ILL_COPROC
516/**
517 * @var int
518 * @cvalue ILL_COPROC
519 */
520const ILL_COPROC = UNKNOWN;
521#endif
522#ifdef ILL_BADSTK
523/**
524 * @var int
525 * @cvalue ILL_BADSTK
526 */
527const ILL_BADSTK = UNKNOWN;
528#endif
529#ifdef FPE_INTDIV
530/**
531 * @var int
532 * @cvalue FPE_INTDIV
533 */
534const FPE_INTDIV = UNKNOWN;
535#endif
536#ifdef FPE_INTOVF
537/**
538 * @var int
539 * @cvalue FPE_INTOVF
540 */
541const FPE_INTOVF = UNKNOWN;
542#endif
543#ifdef FPE_FLTDIV
544/**
545 * @var int
546 * @cvalue FPE_FLTDIV
547 */
548const FPE_FLTDIV = UNKNOWN;
549#endif
550#ifdef FPE_FLTOVF
551/**
552 * @var int
553 * @cvalue FPE_FLTOVF
554 */
555const FPE_FLTOVF = UNKNOWN;
556#endif
557#ifdef FPE_FLTUND
558/**
559 * @var int
560 * @cvalue FPE_FLTUND
561 */
562const FPE_FLTUND = UNKNOWN;
563#endif
564#ifdef FPE_FLTRES
565/**
566 * @var int
567 * @cvalue FPE_FLTRES
568 */
569const FPE_FLTRES = UNKNOWN;
570#endif
571#ifdef FPE_FLTINV
572/**
573 * @var int
574 * @cvalue FPE_FLTINV
575 */
576const FPE_FLTINV = UNKNOWN;
577#endif
578#ifdef FPE_FLTSUB
579/**
580 * @var int
581 * @cvalue FPE_FLTSUB
582 */
583const FPE_FLTSUB = UNKNOWN;
584#endif
585#ifdef SEGV_MAPERR
586/**
587 * @var int
588 * @cvalue SEGV_MAPERR
589 */
590const SEGV_MAPERR = UNKNOWN;
591#endif
592#ifdef SEGV_ACCERR
593/**
594 * @var int
595 * @cvalue SEGV_ACCERR
596 */
597const SEGV_ACCERR = UNKNOWN;
598#endif
599#ifdef BUS_ADRALN
600/**
601 * @var int
602 * @cvalue BUS_ADRALN
603 */
604const BUS_ADRALN = UNKNOWN;
605#endif
606#ifdef BUS_ADRERR
607/**
608 * @var int
609 * @cvalue BUS_ADRERR
610 */
611const BUS_ADRERR = UNKNOWN;
612#endif
613#ifdef BUS_OBJERR
614/**
615 * @var int
616 * @cvalue BUS_OBJERR
617 */
618const BUS_OBJERR = UNKNOWN;
619#endif
620#endif
621
622/* unshare(/clone) constants */
623
624#ifdef HAVE_UNSHARE
625/**
626 * @var int
627 * @cvalue CLONE_NEWNS
628 */
629const CLONE_NEWNS = UNKNOWN;
630#ifdef CLONE_NEWIPC
631/**
632 * @var int
633 * @cvalue CLONE_NEWIPC
634 */
635const CLONE_NEWIPC = UNKNOWN;
636#endif
637#ifdef CLONE_NEWUTS
638/**
639 * @var int
640 * @cvalue CLONE_NEWUTS
641 */
642const CLONE_NEWUTS = UNKNOWN;
643#endif
644#ifdef CLONE_NEWNET
645/**
646 * @var int
647 * @cvalue CLONE_NEWNET
648 */
649const CLONE_NEWNET = UNKNOWN;
650#endif
651#ifdef CLONE_NEWPID
652/**
653 * @var int
654 * @cvalue CLONE_NEWPID
655 */
656const CLONE_NEWPID = UNKNOWN;
657#endif
658#ifdef CLONE_NEWUSER
659/**
660 * @var int
661 * @cvalue CLONE_NEWUSER
662 */
663const CLONE_NEWUSER = UNKNOWN;
664#endif
665#ifdef CLONE_NEWCGROUP
666/**
667 * @var int
668 * @cvalue CLONE_NEWCGROUP
669 */
670const CLONE_NEWCGROUP = UNKNOWN;
671#endif
672#endif
673
674#ifdef HAVE_RFORK
675#ifdef RFPROC
676/**
677 * @var int
678 * @cvalue RFPROC
679 */
680const RFPROC = UNKNOWN;
681#endif
682#ifdef RFNOWAIT
683/**
684 * @var int
685 * @cvalue RFNOWAIT
686 */
687const RFNOWAIT = UNKNOWN;
688#endif
689#ifdef RFCFDG
690/**
691 * @var int
692 * @cvalue RFCFDG
693 */
694const RFCFDG = UNKNOWN;
695#endif
696#ifdef RFFDG
697/**
698 * @var int
699 * @cvalue RFFDG
700 */
701const RFFDG = UNKNOWN;
702#endif
703#ifdef RFLINUXTHPN
704/**
705 * @var int
706 * @cvalue RFLINUXTHPN
707 */
708const RFLINUXTHPN = UNKNOWN;
709#endif
710#ifdef RFTSIGZMB
711/**
712 * @var int
713 * @cvalue RFTSIGZMB
714 */
715const RFTSIGZMB = UNKNOWN;
716#endif
717#ifdef RFTHREAD
718/**
719 * @var int
720 * @cvalue RFTHREAD
721 */
722const RFTHREAD = UNKNOWN;
723#endif
724#endif
725
726#ifdef HAVE_FORKX
727/**
728 * @var int
729 * @cvalue FORK_NOSIGCHLD
730 */
731const FORK_NOSIGCHLD = UNKNOWN;
732/**
733 * @var int
734 * @cvalue FORK_WAITPID
735 */
736const FORK_WAITPID = UNKNOWN;
737#endif
738
739#ifdef EINTR
740/**
741 * @var int
742 * @cvalue EINTR
743 */
744const PCNTL_EINTR = UNKNOWN;
745#endif
746#ifdef ECHILD
747/**
748 * @var int
749 * @cvalue ECHILD
750 */
751const PCNTL_ECHILD = UNKNOWN;
752#endif
753#ifdef EINVAL
754/**
755 * @var int
756 * @cvalue EINVAL
757 */
758const PCNTL_EINVAL = UNKNOWN;
759#endif
760#ifdef EAGAIN
761/**
762 * @var int
763 * @cvalue EAGAIN
764 */
765const PCNTL_EAGAIN = UNKNOWN;
766#endif
767#ifdef ESRCH
768/**
769 * @var int
770 * @cvalue ESRCH
771 */
772const PCNTL_ESRCH = UNKNOWN;
773#endif
774#ifdef EACCES
775/**
776 * @var int
777 * @cvalue EACCES
778 */
779const PCNTL_EACCES = UNKNOWN;
780#endif
781#ifdef EPERM
782/**
783 * @var int
784 * @cvalue EPERM
785 */
786const PCNTL_EPERM = UNKNOWN;
787#endif
788#ifdef ENOMEM
789/**
790 * @var int
791 * @cvalue ENOMEM
792 */
793const PCNTL_ENOMEM = UNKNOWN;
794#endif
795#ifdef E2BIG
796/**
797 * @var int
798 * @cvalue E2BIG
799 */
800const PCNTL_E2BIG = UNKNOWN;
801#endif
802#ifdef EFAULT
803/**
804 * @var int
805 * @cvalue EFAULT
806 */
807const PCNTL_EFAULT = UNKNOWN;
808#endif
809#ifdef EIO
810/**
811 * @var int
812 * @cvalue EIO
813 */
814const PCNTL_EIO = UNKNOWN;
815#endif
816#ifdef EISDIR
817/**
818 * @var int
819 * @cvalue EISDIR
820 */
821const PCNTL_EISDIR = UNKNOWN;
822#endif
823#ifdef ELIBBAD
824/**
825 * @var int
826 * @cvalue ELIBBAD
827 */
828const PCNTL_ELIBBAD = UNKNOWN;
829#endif
830#ifdef ELOOP
831/**
832 * @var int
833 * @cvalue ELOOP
834 */
835const PCNTL_ELOOP = UNKNOWN;
836#endif
837#ifdef EMFILE
838/**
839 * @var int
840 * @cvalue EMFILE
841 */
842const PCNTL_EMFILE = UNKNOWN;
843#endif
844#ifdef ENAMETOOLONG
845/**
846 * @var int
847 * @cvalue ENAMETOOLONG
848 */
849const PCNTL_ENAMETOOLONG = UNKNOWN;
850#endif
851#ifdef ENFILE
852/**
853 * @var int
854 * @cvalue ENFILE
855 */
856const PCNTL_ENFILE = UNKNOWN;
857#endif
858#ifdef ENOENT
859/**
860 * @var int
861 * @cvalue ENOENT
862 */
863const PCNTL_ENOENT = UNKNOWN;
864#endif
865#ifdef ENOEXEC
866/**
867 * @var int
868 * @cvalue ENOEXEC
869 */
870const PCNTL_ENOEXEC = UNKNOWN;
871#endif
872#ifdef ENOTDIR
873/**
874 * @var int
875 * @cvalue ENOTDIR
876 */
877const PCNTL_ENOTDIR = UNKNOWN;
878#endif
879#ifdef ETXTBSY
880/**
881 * @var int
882 * @cvalue ETXTBSY
883 */
884const PCNTL_ETXTBSY = UNKNOWN;
885#endif
886#ifdef ENOSPC
887/**
888 * @var int
889 * @cvalue ENOSPC
890 */
891const PCNTL_ENOSPC = UNKNOWN;
892#endif
893#ifdef EUSERS
894/**
895 * @var int
896 * @cvalue EUSERS
897 */
898const PCNTL_EUSERS = UNKNOWN;
899#endif
900#ifdef ECAPMODE
901/**
902 * @var int
903 * @cvalue ECAPMODE
904 */
905const PCNTL_ECAPMODE = UNKNOWN;
906#endif
907
908function pcntl_fork(): int {}
909
910/**
911 * @param int $status
912 * @param array $resource_usage
913 */
914function pcntl_waitpid(int $process_id, &$status, int $flags = 0, &$resource_usage = []): int {}
915
916/**
917 * @param int $status
918 * @param array $resource_usage
919 */
920function pcntl_wait(&$status, int $flags = 0, &$resource_usage = []): int {}
921
922/** @param callable|int $handler */
923function pcntl_signal(int $signal, $handler, bool $restart_syscalls = true): bool {}
924
925/** @return callable|int */
926function pcntl_signal_get_handler(int $signal) {}
927
928function pcntl_signal_dispatch(): bool {}
929
930#ifdef HAVE_SIGPROCMASK
931/** @param array $old_signals */
932function pcntl_sigprocmask(int $mode, array $signals, &$old_signals = null): bool {}
933#endif
934
935#ifdef HAVE_STRUCT_SIGINFO_T
936#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT))
937/** @param array $info */
938function pcntl_sigwaitinfo(array $signals, &$info = []): int|false {}
939
940/** @param array $info */
941function pcntl_sigtimedwait(array $signals, &$info = [], int $seconds = 0, int $nanoseconds = 0): int|false {}
942#endif
943#endif
944
945function pcntl_wifexited(int $status): bool {}
946
947function pcntl_wifstopped(int $status): bool {}
948
949#ifdef HAVE_WCONTINUED
950function pcntl_wifcontinued(int $status): bool {}
951#endif
952
953function pcntl_wifsignaled(int $status): bool {}
954
955function pcntl_wexitstatus(int $status): int|false {}
956
957function pcntl_wtermsig(int $status): int|false {}
958
959function pcntl_wstopsig(int $status): int|false {}
960
961function pcntl_exec(string $path, array $args = [], array $env_vars = []): bool {}
962
963function pcntl_alarm(int $seconds): int {}
964
965function pcntl_get_last_error(): int {}
966
967/** @alias pcntl_get_last_error */
968function pcntl_errno(): int {}
969
970#ifdef HAVE_GETPRIORITY
971function pcntl_getpriority(?int $process_id = null, int $mode = PRIO_PROCESS): int|false {}
972#endif
973
974#ifdef HAVE_SETPRIORITY
975function pcntl_setpriority(int $priority, ?int $process_id = null, int $mode = PRIO_PROCESS): bool{}
976#endif
977
978function pcntl_strerror(int $error_code): string {}
979
980function pcntl_async_signals(?bool $enable = null): bool {}
981
982#ifdef HAVE_UNSHARE
983function pcntl_unshare(int $flags): bool {}
984#endif
985
986#ifdef HAVE_RFORK
987function pcntl_rfork(int $flags, int $signal = 0): int{}
988#endif
989
990#ifdef HAVE_FORKX
991function pcntl_forkx(int $flags): int{}
992#endif
993