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