summaryrefslogtreecommitdiff
path: root/ext/posix/posix.stub.php
blob: 625a087de6d08121b50a0009918e76df2c0316bb (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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?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
/** @return array|false */
function posix_getgroups() {}
#endif

#ifdef HAVE_GETLOGIN
/** @return string|false */
function posix_getlogin() {}
#endif

function posix_getpgrp(): int {}

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

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

#ifdef HAVE_GETPGID
/** @return int|false */
function posix_getpgid(int $pid) {}
#endif

#ifdef HAVE_GETSID
/** @return int|false */
function posix_getsid(int $pid) {}
#endif

/** @return array|false */
function posix_uname() {}

/** @return array|false */
function posix_times() {}


#ifdef HAVE_CTERMID
/** @return string|false */
function posix_ctermid() {}
#endif

/**
 * @return string|false
 */
function posix_ttyname($fd) {}

function posix_isatty($fd): bool {}

/** @return string|false */
function posix_getcwd() {}

#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 {}

/** @return array|false */
function posix_getgrnam(string $name) {}

/** @return array|false */
function posix_getgrgid(int $gid) {}

/** @return array|false */
function posix_getpwnam(string $username) {}

/** @return array|false */
function posix_getpwuid(int $uid) {}

#ifdef HAVE_GETRLIMIT
/** @return array|false */
function posix_getrlimit() {}
#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