2 from _typeshed import FileDescriptorLike, ReadOnlyBuffer, WriteableBuffer
3 from typing import Any, overload
4 from typing_extensions import Literal
36 if sys.version_info >= (3, 9) and sys.platform == "linux":
84 def fcntl(__fd: FileDescriptorLike, __cmd: int, __arg: int = ...) -> int: ...
86 def fcntl(__fd: FileDescriptorLike, __cmd: int, __arg: bytes) -> bytes: ...
88 def ioctl(__fd: FileDescriptorLike, __request: int, __arg: int = ..., __mutate_flag: bool = ...) -> int: ...
90 def ioctl(__fd: FileDescriptorLike, __request: int, __arg: WriteableBuffer, __mutate_flag: Literal[True] = ...) -> int: ...
92 def ioctl(__fd: FileDescriptorLike, __request: int, __arg: WriteableBuffer, __mutate_flag: Literal[False]) -> bytes: ...
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: ...