massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / fcntl.pyi
1 import sys
2 from _typeshed import FileDescriptorLike, ReadOnlyBuffer, WriteableBuffer
3 from typing import Any, overload
4 from typing_extensions import Literal
5
6 FASYNC: int
7 FD_CLOEXEC: int
8 DN_ACCESS: int
9 DN_ATTRIB: int
10 DN_CREATE: int
11 DN_DELETE: int
12 DN_MODIFY: int
13 DN_MULTISHOT: int
14 DN_RENAME: int
15 F_DUPFD: int
16 F_DUPFD_CLOEXEC: int
17 F_FULLFSYNC: int
18 F_EXLCK: int
19 F_GETFD: int
20 F_GETFL: int
21 F_GETLEASE: int
22 F_GETLK: int
23 F_GETLK64: int
24 F_GETOWN: int
25 F_NOCACHE: int
26 F_GETSIG: int
27 F_NOTIFY: int
28 F_RDLCK: int
29 F_SETFD: int
30 F_SETFL: int
31 F_SETLEASE: int
32 F_SETLK: int
33 F_SETLK64: int
34 F_SETLKW: int
35 F_SETLKW64: int
36 if sys.version_info >= (3, 9) and sys.platform == "linux":
37     F_OFD_GETLK: int
38     F_OFD_SETLK: int
39     F_OFD_SETLKW: int
40 F_SETOWN: int
41 F_SETSIG: int
42 F_SHLCK: int
43 F_UNLCK: int
44 F_WRLCK: int
45 I_ATMARK: int
46 I_CANPUT: int
47 I_CKBAND: int
48 I_FDINSERT: int
49 I_FIND: int
50 I_FLUSH: int
51 I_FLUSHBAND: int
52 I_GETBAND: int
53 I_GETCLTIME: int
54 I_GETSIG: int
55 I_GRDOPT: int
56 I_GWROPT: int
57 I_LINK: int
58 I_LIST: int
59 I_LOOK: int
60 I_NREAD: int
61 I_PEEK: int
62 I_PLINK: int
63 I_POP: int
64 I_PUNLINK: int
65 I_PUSH: int
66 I_RECVFD: int
67 I_SENDFD: int
68 I_SETCLTIME: int
69 I_SETSIG: int
70 I_SRDOPT: int
71 I_STR: int
72 I_SWROPT: int
73 I_UNLINK: int
74 LOCK_EX: int
75 LOCK_MAND: int
76 LOCK_NB: int
77 LOCK_READ: int
78 LOCK_RW: int
79 LOCK_SH: int
80 LOCK_UN: int
81 LOCK_WRITE: int
82
83 @overload
84 def fcntl(__fd: FileDescriptorLike, __cmd: int, __arg: int = ...) -> int: ...
85 @overload
86 def fcntl(__fd: FileDescriptorLike, __cmd: int, __arg: bytes) -> bytes: ...
87 @overload
88 def ioctl(__fd: FileDescriptorLike, __request: int, __arg: int = ..., __mutate_flag: bool = ...) -> int: ...
89 @overload
90 def ioctl(__fd: FileDescriptorLike, __request: int, __arg: WriteableBuffer, __mutate_flag: Literal[True] = ...) -> int: ...
91 @overload
92 def ioctl(__fd: FileDescriptorLike, __request: int, __arg: WriteableBuffer, __mutate_flag: Literal[False]) -> bytes: ...
93 @overload
94 def ioctl(__fd: FileDescriptorLike, __request: int, __arg: ReadOnlyBuffer, __mutate_flag: bool = ...) -> bytes: ...
95 def flock(__fd: FileDescriptorLike, __operation: int) -> None: ...
96 def lockf(__fd: FileDescriptorLike, __cmd: int, __len: int = ..., __start: int = ..., __whence: int = ...) -> Any: ...