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