posix.stub.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <?php
  2. /** @generate-class-entries */
  3. function posix_kill(int $process_id, int $signal): bool {}
  4. function posix_getpid(): int {}
  5. function posix_getppid(): int {}
  6. function posix_getuid(): int {}
  7. function posix_setuid(int $user_id): bool {}
  8. function posix_geteuid(): int {}
  9. #ifdef HAVE_SETEUID
  10. function posix_seteuid(int $user_id): bool {}
  11. #endif
  12. function posix_getgid(): int {}
  13. function posix_setgid(int $group_id): bool {}
  14. function posix_getegid(): int {}
  15. #ifdef HAVE_SETEGID
  16. function posix_setegid(int $group_id): bool {}
  17. #endif
  18. #ifdef HAVE_GETGROUPS
  19. /**
  20. * @return array<int, int>|false
  21. * @refcount 1
  22. */
  23. function posix_getgroups(): array|false {}
  24. #endif
  25. #ifdef HAVE_GETLOGIN
  26. function posix_getlogin(): string|false {}
  27. #endif
  28. function posix_getpgrp(): int {}
  29. #ifdef HAVE_SETSID
  30. function posix_setsid(): int {}
  31. #endif
  32. function posix_setpgid(int $process_id, int $process_group_id): bool {}
  33. #ifdef HAVE_GETPGID
  34. function posix_getpgid(int $process_id): int|false {}
  35. #endif
  36. #ifdef HAVE_GETSID
  37. function posix_getsid(int $process_id): int|false {}
  38. #endif
  39. /**
  40. * @return array<string, string>|false
  41. * @refcount 1
  42. */
  43. function posix_uname(): array|false {}
  44. /**
  45. * @return array<string, int>|false
  46. * @refcount 1
  47. */
  48. function posix_times(): array|false {}
  49. #ifdef HAVE_CTERMID
  50. function posix_ctermid(): string|false {}
  51. #endif
  52. /** @param resource|int $file_descriptor */
  53. function posix_ttyname($file_descriptor): string|false {}
  54. /** @param resource|int $file_descriptor */
  55. function posix_isatty($file_descriptor): bool {}
  56. function posix_getcwd(): string|false {}
  57. #ifdef HAVE_MKFIFO
  58. function posix_mkfifo(string $filename, int $permissions): bool {}
  59. #endif
  60. #ifdef HAVE_MKNOD
  61. function posix_mknod(string $filename, int $flags, int $major = 0, int $minor = 0): bool {}
  62. #endif
  63. function posix_access(string $filename, int $flags = 0): bool {}
  64. /**
  65. * @return array<string, int|string|array|null>|false
  66. * @refcount 1
  67. */
  68. function posix_getgrnam(string $name): array|false {}
  69. /**
  70. * @return array<string, int|string|array|null>|false
  71. * @refcount 1
  72. */
  73. function posix_getgrgid(int $group_id): array|false {}
  74. /**
  75. * @return array<string, int|string>|false
  76. * @refcount 1
  77. */
  78. function posix_getpwnam(string $username): array|false {}
  79. /**
  80. * @return array<string, int|string>|false
  81. * @refcount 1
  82. */
  83. function posix_getpwuid(int $user_id): array|false {}
  84. #ifdef HAVE_GETRLIMIT
  85. /**
  86. * @return array<string, int|string>|false
  87. * @refcount 1
  88. */
  89. function posix_getrlimit(): array|false {}
  90. #endif
  91. #ifdef HAVE_SETRLIMIT
  92. function posix_setrlimit(int $resource, int $soft_limit, int $hard_limit): bool {}
  93. #endif
  94. function posix_get_last_error(): int {}
  95. /** @alias posix_get_last_error */
  96. function posix_errno(): int {}
  97. function posix_strerror(int $error_code): string {}
  98. #ifdef HAVE_INITGROUPS
  99. function posix_initgroups(string $username, int $group_id): bool {}
  100. #endif