summaryrefslogtreecommitdiff
path: root/ext/posix/posix.stub.php
blob: 008d35f689db066aabadbb988a8c49cd56136d76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?php

function posix_kill(int $pid, int $sig): bool {}

function posix_getpid(): int {}

function posix_getppid(): int {}

function posix_getuid(): int {}

function posix_setuid(int $uid): bool {}

function posix_geteuid(): int {}

#ifdef HAVE_SETEUID
function posix_seteuid(int $uid): bool {}
#endif

function posix_getgid(): int {}

function posix_setgid(int $gid): bool {}

function posix_getegid(): int {}

#ifdef HAVE_SETEGID
function posix_setegid(int $gid): bool {}
#endif

#ifdef HAVE_GETGROUPS
function posix_getgroups(): array|false {}
#endif

#ifdef HAVE_GETLOGIN
function posix_getlogin(): string|false {}
#endif

function posix_getpgrp(): int {}

#ifdef HAVE_SETSID
function posix_setsid(): int {}
#endif

function posix_setpgid(int $pid, int $pgid): bool {}

#ifdef HAVE_GETPGID
function posix_getpgid(int $pid): int|false {}
#endif

#ifdef HAVE_GETSID
function posix_getsid(int $pid): int|false {}
#endif

function posix_uname(): array|false {}

function posix_times(): array|false {}


#ifdef HAVE_CTERMID
function posix_ctermid(): string|false {}
#endif

function posix_ttyname($fd): string|false {}

function posix_isatty($fd): bool {}

function posix_getcwd(): string|false {}

#ifdef HAVE_MKFIFO
function posix_mkfifo(string $pathname, int $mode): bool {}
#endif

#ifdef HAVE_MKNOD
function posix_mknod(string $pathname, int $mode, int $major = 0, int $minor = 0): bool {}
#endif

function posix_access(string $file, int $mode = 0): bool {}

function posix_getgrnam(string $name): array|false {}

function posix_getgrgid(int $gid): array|false {}

function posix_getpwnam(string $username): array|false {}

function posix_getpwuid(int $uid): array|false {}

#ifdef HAVE_GETRLIMIT
function posix_getrlimit(): array|false {}
#endif

#ifdef HAVE_SETRLIMIT
function posix_setrlimit(int $resource, int $softlimit, int $hardlimit): bool {}
#endif

function posix_get_last_error(): int {}

function posix_errno(): int {}

function posix_strerror(int $errno): string {}

#ifdef HAVE_INITGROUPS
function posix_initgroups(string $name, int $base_group_id): bool {}
#endif