php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
pcntl.stub.php
Go to the documentation of this file.
1<?php
2
4
5/* Wait Constants */
6
7namespace
8{
9#ifdef WNOHANG
14const WNOHANG = UNKNOWN;
15#endif
16#ifdef WUNTRACED
21const WUNTRACED = UNKNOWN;
22#endif
23#ifdef HAVE_WCONTINUED
28const WCONTINUED = UNKNOWN;
29#endif
30#if defined (HAVE_DECL_WEXITED) && HAVE_DECL_WEXITED == 1
35const WEXITED = UNKNOWN;
36#endif
37#if defined (HAVE_DECL_WSTOPPED) && HAVE_DECL_WSTOPPED == 1
42const WSTOPPED = UNKNOWN;
43#endif
44#if defined (HAVE_DECL_WNOWAIT) && HAVE_DECL_WNOWAIT== 1
49const WNOWAIT = UNKNOWN;
50#endif
51
52#ifdef HAVE_WAITID
53/* First argument to waitid */
54#ifdef HAVE_POSIX_IDTYPES
59const P_ALL = UNKNOWN;
64const P_PID = UNKNOWN;
69const P_PGID = UNKNOWN;
70#endif
71/* Linux specific idtype */
72#ifdef HAVE_LINUX_IDTYPES
77const P_PIDFD = UNKNOWN;
78#endif
79/* NetBSD specific idtypes */
80#ifdef HAVE_NETBSD_IDTYPES
85const P_UID = UNKNOWN;
90const P_GID = UNKNOWN;
95const P_SID = UNKNOWN;
96#endif
97/* FreeBSD specific idtype */
98#ifdef HAVE_FREEBSD_IDTYPES
103const P_JAILID = UNKNOWN;
104#endif
105#endif
106
107/* Signal Constants */
108
113const SIG_IGN = UNKNOWN;
118const SIG_DFL = UNKNOWN;
123const SIG_ERR = UNKNOWN;
128const SIGHUP = UNKNOWN;
133const SIGINT = UNKNOWN;
138const SIGQUIT = UNKNOWN;
143const SIGILL = UNKNOWN;
148const SIGTRAP = UNKNOWN;
153const SIGABRT = UNKNOWN;
154#ifdef SIGIOT
159const SIGIOT = UNKNOWN;
160#endif
161
166const SIGBUS = UNKNOWN;
171const SIGFPE = UNKNOWN;
176const SIGKILL = UNKNOWN;
181const SIGUSR1 = UNKNOWN;
186const SIGSEGV = UNKNOWN;
191const SIGUSR2 = UNKNOWN;
196const SIGPIPE = UNKNOWN;
201const SIGALRM = UNKNOWN;
206const SIGTERM = UNKNOWN;
207#ifdef SIGSTKFLT
212const SIGSTKFLT = UNKNOWN;
213#endif
214#ifdef SIGCLD
219const SIGCLD = UNKNOWN;
220#endif
221#ifdef SIGCHLD
226const SIGCHLD = UNKNOWN;
227#endif
228
233const SIGCONT = UNKNOWN;
238const SIGSTOP = UNKNOWN;
243const SIGTSTP = UNKNOWN;
248const SIGTTIN = UNKNOWN;
253const SIGTTOU = UNKNOWN;
258const SIGURG = UNKNOWN;
263const SIGXCPU = UNKNOWN;
268const SIGXFSZ = UNKNOWN;
273const SIGVTALRM = UNKNOWN;
278const SIGPROF = UNKNOWN;
283const SIGWINCH = UNKNOWN;
284#ifdef SIGPOLL
289const SIGPOLL = UNKNOWN;
290#endif
291#ifdef SIGIO
296const SIGIO = UNKNOWN;
297#endif
298#ifdef SIGPWR
303const SIGPWR = UNKNOWN;
304#endif
305#ifdef SIGINFO
310const SIGINFO = UNKNOWN;
311#endif
312#ifdef SIGSYS
317const SIGSYS = UNKNOWN;
322const SIGBABY = UNKNOWN;
323#endif
324#ifdef SIGCKPT
329const SIGCKPT = UNKNOWN;
330#endif
331#ifdef SIGCKPTEXIT
336const SIGCKPTEXIT = UNKNOWN;
337#endif
338#ifdef SIGRTMIN
343const SIGRTMIN = UNKNOWN;
344#endif
345#ifdef SIGRTMAX
350const SIGRTMAX = UNKNOWN;
351#endif
352
353#if (defined(HAVE_GETPRIORITY) || defined(HAVE_SETPRIORITY))
358const PRIO_PGRP = UNKNOWN;
363const PRIO_USER = UNKNOWN;
368const PRIO_PROCESS = UNKNOWN;
369#if defined(PRIO_DARWIN_BG)
374const PRIO_DARWIN_BG = UNKNOWN;
379const PRIO_DARWIN_THREAD = UNKNOWN;
380#endif
381#endif
382
383/* "mode" argument for sigprocmask */
384
385#ifdef HAVE_SIGPROCMASK
390const SIG_BLOCK = UNKNOWN;
395const SIG_UNBLOCK = UNKNOWN;
400const SIG_SETMASK = UNKNOWN;
401#endif
402
403#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT))
408const SI_USER = UNKNOWN;
409#ifdef SI_NOINFO
414const SI_NOINFO = UNKNOWN;
415#endif
416#ifdef SI_KERNEL
421const SI_KERNEL = UNKNOWN;
422#endif
427const SI_QUEUE = UNKNOWN;
432const SI_TIMER = UNKNOWN;
437const SI_MESGQ = UNKNOWN;
442const SI_ASYNCIO = UNKNOWN;
443#ifdef SI_SIGIO
448const SI_SIGIO = UNKNOWN;
449#endif
450#ifdef SI_TKILL
455const SI_TKILL = UNKNOWN;
456#endif
457
458/* si_code for SIGCHILD */
459
460#ifdef CLD_EXITED
465const CLD_EXITED = UNKNOWN;
466#endif
467#ifdef CLD_KILLED
472const CLD_KILLED = UNKNOWN;
473#endif
474#ifdef CLD_DUMPED
479const CLD_DUMPED = UNKNOWN;
480#endif
481#ifdef CLD_TRAPPED
486const CLD_TRAPPED = UNKNOWN;
487#endif
488#ifdef CLD_STOPPED
493const CLD_STOPPED = UNKNOWN;
494#endif
495#ifdef CLD_CONTINUED
500const CLD_CONTINUED = UNKNOWN;
501#endif
502
503/* si_code for SIGTRAP */
504
505#ifdef TRAP_BRKPT
510const TRAP_BRKPT = UNKNOWN;
511#endif
512#ifdef TRAP_TRACE
517const TRAP_TRACE = UNKNOWN;
518#endif
519
520/* si_code for SIGPOLL */
521
522#ifdef POLL_IN
527const POLL_IN = UNKNOWN;
528#endif
529#ifdef POLL_OUT
534const POLL_OUT = UNKNOWN;
535#endif
536#ifdef POLL_MSG
541const POLL_MSG = UNKNOWN;
542#endif
543#ifdef POLL_ERR
548const POLL_ERR = UNKNOWN;
549#endif
550#ifdef POLL_PRI
555const POLL_PRI = UNKNOWN;
556#endif
557#ifdef POLL_HUP
562const POLL_HUP = UNKNOWN;
563#endif
564
565#ifdef ILL_ILLOPC
570const ILL_ILLOPC = UNKNOWN;
571#endif
572#ifdef ILL_ILLOPN
577const ILL_ILLOPN = UNKNOWN;
578#endif
579#ifdef ILL_ILLADR
584const ILL_ILLADR = UNKNOWN;
585#endif
586#ifdef ILL_ILLTRP
591const ILL_ILLTRP = UNKNOWN;
592#endif
593#ifdef ILL_PRVOPC
598const ILL_PRVOPC = UNKNOWN;
599#endif
600#ifdef ILL_PRVREG
605const ILL_PRVREG = UNKNOWN;
606#endif
607#ifdef ILL_COPROC
612const ILL_COPROC = UNKNOWN;
613#endif
614#ifdef ILL_BADSTK
619const ILL_BADSTK = UNKNOWN;
620#endif
621#ifdef FPE_INTDIV
626const FPE_INTDIV = UNKNOWN;
627#endif
628#ifdef FPE_INTOVF
633const FPE_INTOVF = UNKNOWN;
634#endif
635#ifdef FPE_FLTDIV
640const FPE_FLTDIV = UNKNOWN;
641#endif
642#ifdef FPE_FLTOVF
647const FPE_FLTOVF = UNKNOWN;
648#endif
649#ifdef FPE_FLTUND
654const FPE_FLTUND = UNKNOWN;
655#endif
656#ifdef FPE_FLTRES
661const FPE_FLTRES = UNKNOWN;
662#endif
663#ifdef FPE_FLTINV
668const FPE_FLTINV = UNKNOWN;
669#endif
670#ifdef FPE_FLTSUB
675const FPE_FLTSUB = UNKNOWN;
676#endif
677#ifdef SEGV_MAPERR
682const SEGV_MAPERR = UNKNOWN;
683#endif
684#ifdef SEGV_ACCERR
689const SEGV_ACCERR = UNKNOWN;
690#endif
691#ifdef BUS_ADRALN
696const BUS_ADRALN = UNKNOWN;
697#endif
698#ifdef BUS_ADRERR
703const BUS_ADRERR = UNKNOWN;
704#endif
705#ifdef BUS_OBJERR
710const BUS_OBJERR = UNKNOWN;
711#endif
712#endif
713
714/* unshare(/clone) constants */
715
716#ifdef HAVE_UNSHARE
721const CLONE_NEWNS = UNKNOWN;
722#ifdef CLONE_NEWIPC
727const CLONE_NEWIPC = UNKNOWN;
728#endif
729#ifdef CLONE_NEWUTS
734const CLONE_NEWUTS = UNKNOWN;
735#endif
736#ifdef CLONE_NEWNET
741const CLONE_NEWNET = UNKNOWN;
742#endif
743#ifdef CLONE_NEWPID
748const CLONE_NEWPID = UNKNOWN;
749#endif
750#ifdef CLONE_NEWUSER
755const CLONE_NEWUSER = UNKNOWN;
756#endif
757#ifdef CLONE_NEWCGROUP
762const CLONE_NEWCGROUP = UNKNOWN;
763#endif
764#endif
765
766#ifdef HAVE_RFORK
767#ifdef RFPROC
772const RFPROC = UNKNOWN;
773#endif
774#ifdef RFNOWAIT
779const RFNOWAIT = UNKNOWN;
780#endif
781#ifdef RFCFDG
786const RFCFDG = UNKNOWN;
787#endif
788#ifdef RFFDG
793const RFFDG = UNKNOWN;
794#endif
795#ifdef RFLINUXTHPN
800const RFLINUXTHPN = UNKNOWN;
801#endif
802#ifdef RFTSIGZMB
807const RFTSIGZMB = UNKNOWN;
808#endif
809#ifdef RFTHREAD
814const RFTHREAD = UNKNOWN;
815#endif
816#endif
817
818#ifdef HAVE_FORKX
823const FORK_NOSIGCHLD = UNKNOWN;
828const FORK_WAITPID = UNKNOWN;
829#endif
830
831#ifdef EINTR
836const PCNTL_EINTR = UNKNOWN;
837#endif
838#ifdef ECHILD
843const PCNTL_ECHILD = UNKNOWN;
844#endif
845#ifdef EINVAL
850const PCNTL_EINVAL = UNKNOWN;
851#endif
852#ifdef EAGAIN
857const PCNTL_EAGAIN = UNKNOWN;
858#endif
859#ifdef ESRCH
864const PCNTL_ESRCH = UNKNOWN;
865#endif
866#ifdef EACCES
871const PCNTL_EACCES = UNKNOWN;
872#endif
873#ifdef EPERM
878const PCNTL_EPERM = UNKNOWN;
879#endif
880#ifdef ENOMEM
885const PCNTL_ENOMEM = UNKNOWN;
886#endif
887#ifdef E2BIG
892const PCNTL_E2BIG = UNKNOWN;
893#endif
894#ifdef EFAULT
899const PCNTL_EFAULT = UNKNOWN;
900#endif
901#ifdef EIO
906const PCNTL_EIO = UNKNOWN;
907#endif
908#ifdef EISDIR
913const PCNTL_EISDIR = UNKNOWN;
914#endif
915#ifdef ELIBBAD
920const PCNTL_ELIBBAD = UNKNOWN;
921#endif
922#ifdef ELOOP
927const PCNTL_ELOOP = UNKNOWN;
928#endif
929#ifdef EMFILE
934const PCNTL_EMFILE = UNKNOWN;
935#endif
936#ifdef ENAMETOOLONG
941const PCNTL_ENAMETOOLONG = UNKNOWN;
942#endif
943#ifdef ENFILE
948const PCNTL_ENFILE = UNKNOWN;
949#endif
950#ifdef ENOENT
955const PCNTL_ENOENT = UNKNOWN;
956#endif
957#ifdef ENOEXEC
962const PCNTL_ENOEXEC = UNKNOWN;
963#endif
964#ifdef ENOTDIR
969const PCNTL_ENOTDIR = UNKNOWN;
970#endif
971#ifdef ETXTBSY
976const PCNTL_ETXTBSY = UNKNOWN;
977#endif
978#ifdef ENOSPC
983const PCNTL_ENOSPC = UNKNOWN;
984#endif
985#ifdef EUSERS
990const PCNTL_EUSERS = UNKNOWN;
991#endif
992#ifdef ECAPMODE
997const PCNTL_ECAPMODE = UNKNOWN;
998#endif
1000 function pcntl_fork(): int {}
1001
1006 function pcntl_waitpid(int $process_id, &$status, int $flags = 0, &$resource_usage = []): int {}
1007
1008#if defined (HAVE_WAITID) && defined (HAVE_POSIX_IDTYPES) && defined (HAVE_DECL_WEXITED) && HAVE_DECL_WEXITED == 1
1010 function pcntl_waitid(int $idtype = P_ALL, ?int $id = null, &$info = [], int $flags = WEXITED): bool {}
1011#endif
1012
1017 function pcntl_wait(&$status, int $flags = 0, &$resource_usage = []): int {}
1018
1020 function pcntl_signal(int $signal, $handler, bool $restart_syscalls = true): bool {}
1021
1023 function pcntl_signal_get_handler(int $signal) {}
1025 function pcntl_signal_dispatch(): bool {}
1026
1027#ifdef HAVE_SIGPROCMASK
1029 function pcntl_sigprocmask(int $mode, array $signals, &$old_signals = null): bool {}
1030#endif
1031
1032#ifdef HAVE_STRUCT_SIGINFO_T
1033#if (defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT))
1035 function pcntl_sigwaitinfo(array $signals, &$info = []): int|false {}
1036
1038 function pcntl_sigtimedwait(array $signals, &$info = [], int $seconds = 0, int $nanoseconds = 0): int|false {}
1039#endif
1040#endif
1042 function pcntl_wifexited(int $status): bool {}
1044 function pcntl_wifstopped(int $status): bool {}
1045
1046#ifdef HAVE_WCONTINUED
1047function pcntl_wifcontinued(int $status): bool {}
1048#endif
1050 function pcntl_wifsignaled(int $status): bool {}
1052 function pcntl_wexitstatus(int $status): int|false {}
1054 function pcntl_wtermsig(int $status): int|false {}
1056 function pcntl_wstopsig(int $status): int|false {}
1058 function pcntl_exec(string $path, array $args = [], array $env_vars = []): bool {}
1060 function pcntl_alarm(int $seconds): int {}
1063
1065 function pcntl_errno(): int {}
1066
1067#ifdef HAVE_GETPRIORITY
1068 function pcntl_getpriority(?int $process_id = null, int $mode = PRIO_PROCESS): int|false {}
1069#endif
1070
1071#ifdef HAVE_SETPRIORITY
1072 function pcntl_setpriority(int $priority, ?int $process_id = null, int $mode = PRIO_PROCESS): bool{}
1073#endif
1075 function pcntl_strerror(int $error_code): string {}
1077 function pcntl_async_signals(?bool $enable = null): bool {}
1078
1079#ifdef HAVE_UNSHARE
1080 function pcntl_unshare(int $flags): bool {}
1081#endif
1082
1083#ifdef HAVE_RFORK
1084 function pcntl_rfork(int $flags, int $signal = 0): int{}
1085#endif
1086
1087#ifdef HAVE_FORKX
1088 function pcntl_forkx(int $flags): int{}
1089#endif
1090
1091#ifdef HAVE_PIDFD_OPEN
1092 function pcntl_setns(?int $process_id = null, int $nstype = CLONE_NEWNET): bool {}
1093#endif
1094
1095#ifdef HAVE_SCHED_SETAFFINITY
1096 function pcntl_getcpuaffinity(?int $process_id = null): array|false {}
1097 function pcntl_setcpuaffinity(?int $process_id = null, array $cpu_ids = []): bool {}
1098#endif
1099
1100#ifdef HAVE_SCHED_GETCPU
1101 function pcntl_getcpu(): int {}
1102#endif
1103#ifdef HAVE_PTHREAD_SET_QOS_CLASS_SELF_NP
1105 function pcntl_setqos_class(Pcntl\QosClass $qos_class = Pcntl\QosClass::Default): void {}
1106#endif
1107}
1108
1109namespace Pcntl
1111 enum QosClass
1112 {
1113 case UserInteractive;
1114 case UserInitiated;
1115 case Default;
1116 case Utility;
1117 case Background;
1118 }
1119}
foreach($dp as $el) foreach( $dp as $el) if( $pass2< 2) echo ""
const SIGPOLL
const PCNTL_ECAPMODE
const SIGKILL
const PCNTL_EINTR
pcntl_signal(int $signal, $handler, bool $restart_syscalls=true)
const PRIO_PGRP
const SEGV_ACCERR
const SIGPWR
const SIGINT
const SIGBABY
const PCNTL_EUSERS
const SIG_BLOCK
pcntl_wait(&$status, int $flags=0, &$resource_usage=[])
const FPE_FLTUND
const PCNTL_ENOSPC
const BUS_OBJERR
const P_GID
const PCNTL_EINVAL
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
const PCNTL_EIO
pcntl_waitpid(int $process_id, &$status, int $flags=0, &$resource_usage=[])
const PRIO_USER
pcntl_setcpuaffinity(?int $process_id=null, array $cpu_ids=[])
const PCNTL_ENOTDIR
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 PCNTL_E2BIG
const SIGQUIT
const SIGABRT
const P_PGID
const PCNTL_EMFILE
const SIGCONT
const SIGIOT
const FPE_FLTRES
pcntl_getpriority(?int $process_id=null, int $mode=PRIO_PROCESS)
const BUS_ADRERR
const PCNTL_EACCES
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 PCNTL_ENFILE
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_errno()
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
const PCNTL_ELIBBAD
pcntl_sigwaitinfo(array $signals, &$info=[])
const FPE_FLTOVF
const SIGURG
const SIGCKPT
const SI_MESGQ
pcntl_signal_dispatch()
const CLD_KILLED
const P_PIDFD
const PCNTL_ENOEXEC
const WUNTRACED
const PCNTL_EISDIR
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 PCNTL_ENOENT
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 PCNTL_ENOMEM
const PCNTL_ETXTBSY
const PCNTL_EAGAIN
const CLONE_NEWUSER
const PCNTL_EFAULT
const PCNTL_ECHILD
const PCNTL_EPERM
const PCNTL_ELOOP
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 PCNTL_ESRCH
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 PCNTL_ENAMETOOLONG
const WCONTINUED
const ILL_PRVREG
pcntl_fork()
const SIGSTKFLT
const RFNOWAIT
const CLONE_NEWUTS
const P_JAILID
pcntl_async_signals(?bool $enable=null)
#define SIGVTALRM
Definition signal.h:9
#define SIGALRM
Definition signal.h:8
defined(string $constant_name)
ZEND_API void(ZEND_FASTCALL *zend_touch_vm_stack_data)(void *vm_stack_data)
#define SIGPROF
function(EX_VAR(opline->result.var))