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