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