1 from typing import Any, Union, IO
\r
4 FASYNC = ... # type: int
\r
5 FD_CLOEXEC = ... # type: int
\r
7 DN_ACCESS = ... # type: int
\r
8 DN_ATTRIB = ... # type: int
\r
9 DN_CREATE = ... # type: int
\r
10 DN_DELETE = ... # type: int
\r
11 DN_MODIFY = ... # type: int
\r
12 DN_MULTISHOT = ... # type: int
\r
13 DN_RENAME = ... # type: int
\r
14 F_DUPFD = ... # type: int
\r
15 F_EXLCK = ... # type: int
\r
16 F_GETFD = ... # type: int
\r
17 F_GETFL = ... # type: int
\r
18 F_GETLEASE = ... # type: int
\r
19 F_GETLK = ... # type: int
\r
20 F_GETLK64 = ... # type: int
\r
21 F_GETOWN = ... # type: int
\r
22 F_GETSIG = ... # type: int
\r
23 F_NOTIFY = ... # type: int
\r
24 F_RDLCK = ... # type: int
\r
25 F_SETFD = ... # type: int
\r
26 F_SETFL = ... # type: int
\r
27 F_SETLEASE = ... # type: int
\r
28 F_SETLK = ... # type: int
\r
29 F_SETLK64 = ... # type: int
\r
30 F_SETLKW = ... # type: int
\r
31 F_SETLKW64 = ... # type: int
\r
32 F_SETOWN = ... # type: int
\r
33 F_SETSIG = ... # type: int
\r
34 F_SHLCK = ... # type: int
\r
35 F_UNLCK = ... # type: int
\r
36 F_WRLCK = ... # type: int
\r
37 I_ATMARK = ... # type: int
\r
38 I_CANPUT = ... # type: int
\r
39 I_CKBAND = ... # type: int
\r
40 I_FDINSERT = ... # type: int
\r
41 I_FIND = ... # type: int
\r
42 I_FLUSH = ... # type: int
\r
43 I_FLUSHBAND = ... # type: int
\r
44 I_GETBAND = ... # type: int
\r
45 I_GETCLTIME = ... # type: int
\r
46 I_GETSIG = ... # type: int
\r
47 I_GRDOPT = ... # type: int
\r
48 I_GWROPT = ... # type: int
\r
49 I_LINK = ... # type: int
\r
50 I_LIST = ... # type: int
\r
51 I_LOOK = ... # type: int
\r
52 I_NREAD = ... # type: int
\r
53 I_PEEK = ... # type: int
\r
54 I_PLINK = ... # type: int
\r
55 I_POP = ... # type: int
\r
56 I_PUNLINK = ... # type: int
\r
57 I_PUSH = ... # type: int
\r
58 I_RECVFD = ... # type: int
\r
59 I_SENDFD = ... # type: int
\r
60 I_SETCLTIME = ... # type: int
\r
61 I_SETSIG = ... # type: int
\r
62 I_SRDOPT = ... # type: int
\r
63 I_STR = ... # type: int
\r
64 I_SWROPT = ... # type: int
\r
65 I_UNLINK = ... # type: int
\r
66 LOCK_EX = ... # type: int
\r
67 LOCK_MAND = ... # type: int
\r
68 LOCK_NB = ... # type: int
\r
69 LOCK_READ = ... # type: int
\r
70 LOCK_RW = ... # type: int
\r
71 LOCK_SH = ... # type: int
\r
72 LOCK_UN = ... # type: int
\r
73 LOCK_WRITE = ... # type: int
\r
75 _ANYFILE = Union[int, IO]
\r
77 # TODO All these return either int or bytes depending on the value of
\r
78 # cmd (not on the type of arg).
\r
79 def fcntl(fd: _ANYFILE, op: int, arg: Union[int, bytes] = ...) -> Any: ...
\r
81 # TODO: arg: int or read-only buffer interface or read-write buffer interface
\r
82 def ioctl(fd: _ANYFILE, op: int, arg: Union[int, bytes] = ...,
\r
83 mutate_flag: bool = ...) -> Any: ...
\r
85 def flock(fd: _ANYFILE, op: int) -> None: ...
\r
86 def lockf(fd: _ANYFILE, op: int, length: int = ..., start: int = ...,
\r
87 whence: int = ...) -> Any: ...
\r