1 from typing import Dict, List, Mapping, Tuple, Union, Sequence, IO, Optional, TypeVar
\r
5 confstr_names = ... # type: Dict[str, int]
\r
6 environ = ... # type: Dict[str, str]
\r
7 pathconf_names = ... # type: Dict[str, int]
\r
8 sysconf_names = ... # type: Dict[str, int]
\r
10 EX_CANTCREAT = ... # type: int
\r
11 EX_CONFIG = ... # type: int
\r
12 EX_DATAERR = ... # type: int
\r
13 EX_IOERR = ... # type: int
\r
14 EX_NOHOST = ... # type: int
\r
15 EX_NOINPUT = ... # type: int
\r
16 EX_NOPERM = ... # type: int
\r
17 EX_NOUSER = ... # type: int
\r
18 EX_OK = ... # type: int
\r
19 EX_OSERR = ... # type: int
\r
20 EX_OSFILE = ... # type: int
\r
21 EX_PROTOCOL = ... # type: int
\r
22 EX_SOFTWARE = ... # type: int
\r
23 EX_TEMPFAIL = ... # type: int
\r
24 EX_UNAVAILABLE = ... # type: int
\r
25 EX_USAGE = ... # type: int
\r
26 F_OK = ... # type: int
\r
27 NGROUPS_MAX = ... # type: int
\r
28 O_APPEND = ... # type: int
\r
29 O_ASYNC = ... # type: int
\r
30 O_CREAT = ... # type: int
\r
31 O_DIRECT = ... # type: int
\r
32 O_DIRECTORY = ... # type: int
\r
33 O_DSYNC = ... # type: int
\r
34 O_EXCL = ... # type: int
\r
35 O_LARGEFILE = ... # type: int
\r
36 O_NDELAY = ... # type: int
\r
37 O_NOATIME = ... # type: int
\r
38 O_NOCTTY = ... # type: int
\r
39 O_NOFOLLOW = ... # type: int
\r
40 O_NONBLOCK = ... # type: int
\r
41 O_RDONLY = ... # type: int
\r
42 O_RDWR = ... # type: int
\r
43 O_RSYNC = ... # type: int
\r
44 O_SYNC = ... # type: int
\r
45 O_TRUNC = ... # type: int
\r
46 O_WRONLY = ... # type: int
\r
47 R_OK = ... # type: int
\r
48 TMP_MAX = ... # type: int
\r
49 WCONTINUED = ... # type: int
\r
50 WNOHANG = ... # type: int
\r
51 WUNTRACED = ... # type: int
\r
52 W_OK = ... # type: int
\r
53 X_OK = ... # type: int
\r
55 def WCOREDUMP(status: int) -> bool: ...
\r
56 def WEXITSTATUS(status: int) -> bool: ...
\r
57 def WIFCONTINUED(status: int) -> bool: ...
\r
58 def WIFEXITED(status: int) -> bool: ...
\r
59 def WIFSIGNALED(status: int) -> bool: ...
\r
60 def WIFSTOPPED(status: int) -> bool: ...
\r
61 def WSTOPSIG(status: int) -> bool: ...
\r
62 def WTERMSIG(status: int) -> bool: ...
\r
64 class stat_result(object):
\r
65 n_fields = ... # type: int
\r
66 n_sequence_fields = ... # type: int
\r
67 n_unnamed_fields = ... # type: int
\r
68 st_mode = ... # type: int
\r
69 st_ino = ... # type: int
\r
70 st_dev = ... # type: int
\r
71 st_nlink = ... # type: int
\r
72 st_uid = ... # type: int
\r
73 st_gid = ... # type: int
\r
74 st_size = ... # type: int
\r
75 st_atime = ... # type: int
\r
76 st_mtime = ... # type: int
\r
77 st_ctime = ... # type: int
\r
79 class statvfs_result(object):
\r
80 n_fields = ... # type: int
\r
81 n_sequence_fields = ... # type: int
\r
82 n_unnamed_fields = ... # type: int
\r
83 f_bsize = ... # type: int
\r
84 f_frsize = ... # type: int
\r
85 f_blocks = ... # type: int
\r
86 f_bfree = ... # type: int
\r
87 f_bavail = ... # type: int
\r
88 f_files = ... # type: int
\r
89 f_ffree = ... # type: int
\r
90 f_favail = ... # type: int
\r
91 f_flag = ... # type: int
\r
92 f_namemax = ... # type: int
\r
94 def _exit(status: int) -> None: ...
\r
95 def abort() -> None: ...
\r
96 def access(path: unicode, mode: int) -> bool: ...
\r
97 def chdir(path: unicode) -> None: ...
\r
98 def chmod(path: unicode, mode: int) -> None: ...
\r
99 def chown(path: unicode, uid: int, gid: int) -> None: ...
\r
100 def chroot(path: unicode) -> None: ...
\r
101 def close(fd: int) -> None: ...
\r
102 def closerange(fd_low: int, fd_high: int) -> None: ...
\r
103 def confstr(name: Union[str, int]) -> str: ...
\r
104 def ctermid() -> str: ...
\r
105 def dup(fd: int) -> int: ...
\r
106 def dup2(fd: int, fd2: int) -> None: ...
\r
107 def execv(path: str, args: Sequence[str], env: Mapping[str, str]) -> None: ...
\r
108 def execve(path: str, args: Sequence[str], env: Mapping[str, str]) -> None: ...
\r
109 def fchdir(fd: int) -> None: ...
\r
110 def fchmod(fd: int, mode: int) -> None: ...
\r
111 def fchown(fd: int, uid: int, gid: int) -> None: ...
\r
112 def fdatasync(fd: int) -> None: ...
\r
113 def fdopen(fd: int, mode: str = ..., bufsize: int = ...) -> IO[str]: ...
\r
116 def forkpty() -> Tuple[int, int]:
\r
118 def fpathconf(fd: int, name: str) -> None: ...
\r
119 def fstat(fd: int) -> stat_result: ...
\r
120 def fstatvfs(fd: int) -> statvfs_result: ...
\r
121 def fsync(fd: int) -> None: ...
\r
122 def ftruncate(fd: int, length: int) -> None: ...
\r
123 def getcwd() -> str: ...
\r
124 def getcwdu() -> unicode: ...
\r
125 def getegid() -> int: ...
\r
126 def geteuid() -> int: ...
\r
127 def getgid() -> int: ...
\r
128 def getgroups() -> List[int]: ...
\r
129 def getloadavg() -> Tuple[float, float, float]:
\r
131 def getlogin() -> str: ...
\r
132 def getpgid(pid: int) -> int: ...
\r
133 def getpgrp() -> int: ...
\r
134 def getpid() -> int: ...
\r
135 def getppid() -> int: ...
\r
136 def getresgid() -> Tuple[int, int, int]: ...
\r
137 def getresuid() -> Tuple[int, int, int]: ...
\r
138 def getsid(pid: int) -> int: ...
\r
139 def getuid() -> int: ...
\r
140 def initgroups(username: str, gid: int) -> None: ...
\r
141 def isatty(fd: int) -> bool: ...
\r
142 def kill(pid: int, sig: int) -> None: ...
\r
143 def killpg(pgid: int, sig: int) -> None: ...
\r
144 def lchown(path: unicode, uid: int, gid: int) -> None: ...
\r
145 def link(source: unicode, link_name: str) -> None: ...
\r
147 def listdir(path: _T) -> List[_T]: ...
\r
148 def lseek(fd: int, pos: int, how: int) -> None: ...
\r
149 def lstat(path: unicode) -> stat_result: ...
\r
150 def major(device: int) -> int: ...
\r
151 def makedev(major: int, minor: int) -> int: ...
\r
152 def minor(device: int) -> int: ...
\r
153 def mkdir(path: unicode, mode: int = ...) -> None: ...
\r
154 def mkfifo(path: unicode, mode: int = ...) -> None: ...
\r
155 def mknod(filename: unicode, mode: int = ..., device: int = ...) -> None: ...
\r
156 def nice(increment: int) -> int: ...
\r
157 def open(file: unicode, flags: int, mode: int = ...) -> int: ...
\r
158 def openpty() -> Tuple[int, int]: ...
\r
159 def pathconf(path: unicode, name: str) -> str: ...
\r
160 def pipe() -> Tuple[int, int]: ...
\r
161 def popen(command: str, mode: str = ..., bufsize: int = ...) -> IO[str]: ...
\r
162 def putenv(varname: str, value: str) -> None: ...
\r
163 def read(fd: int, n: int) -> str: ...
\r
164 def readlink(path: _T) -> _T: ...
\r
165 def remove(path: unicode) -> None: ...
\r
166 def rename(src: unicode, dst: unicode) -> None: ...
\r
167 def rmdir(path: unicode) -> None: ...
\r
168 def setegid(egid: int) -> None: ...
\r
169 def seteuid(euid: int) -> None: ...
\r
170 def setgid(gid: int) -> None: ...
\r
171 def setgroups(groups: Sequence[int]) -> None: ...
\r
172 def setpgid(pid: int, pgrp: int) -> None: ...
\r
173 def setpgrp() -> None: ...
\r
174 def setregid(rgid: int, egid: int) -> None: ...
\r
175 def setresgid(rgid: int, egid: int, sgid: int) -> None: ...
\r
176 def setresuid(ruid: int, euid: int, suid: int) -> None: ...
\r
177 def setreuid(ruid: int, euid: int) -> None: ...
\r
178 def setsid() -> None: ...
\r
179 def setuid(pid: int) -> None: ...
\r
180 def stat(path: unicode) -> stat_result: ...
\r
181 def statvfs(path: unicode) -> statvfs_result: ...
\r
182 def stat_float_times(fd: int) -> None: ...
\r
183 def strerror(code: int) -> str: ...
\r
184 def symlink(source: unicode, link_name: unicode) -> None: ...
\r
185 def sysconf(name: Union[str, int]) -> int: ...
\r
186 def system(command: unicode) -> int: ...
\r
187 def tcgetpgrp(fd: int) -> int: ...
\r
188 def tcsetpgrp(fd: int, pg: int) -> None: ...
\r
189 def times() -> Tuple[float, float, float, float, float]: ...
\r
190 def tmpfile() -> IO[str]: ...
\r
191 def ttyname(fd: int) -> str: ...
\r
192 def umask(mask: int) -> int: ...
\r
193 def uname() -> Tuple[str, str, str, str, str]: ...
\r
194 def unlink(path: unicode) -> None: ...
\r
195 def unsetenv(varname: str) -> None: ...
\r
196 def urandom(n: int) -> str: ...
\r
197 def utime(path: unicode, times: Optional[Tuple[int, int]]) -> None:
\r
199 def wait() -> int: ...
\r
200 _r = Tuple[float, float, int, int, int, int, int, int, int, int, int, int, int, int, int, int]
\r
201 def wait3(options: int) -> Tuple[int, int, _r]: ...
\r
202 def wait4(pid: int, options: int) -> Tuple[int, int, _r]: ...
\r
203 def waitpid(pid: int, options: int) -> int:
\r
205 def write(fd: int, str: str) -> int: ...
\r