Format: application/octet-stream
⬇ Download File (2.2 KB)
   1  import sys
   2  from _typeshed import FileDescriptorLike
   3  from array import array
   4  from typing import Any, Union, overload
   5  from typing_extensions import Literal
   6  
   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
  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  
  88  _ReadOnlyBuffer = bytes
  89  _WritableBuffer = Union[bytearray, memoryview, array]
  90  @overload
  91  def ioctl(__fd: FileDescriptorLike, __request: int, __arg: int = ..., __mutate_flag: bool = ...) -> int: ...
  92  @overload
  93  def ioctl(__fd: FileDescriptorLike, __request: int, __arg: _WritableBuffer, __mutate_flag: Literal[True] = ...) -> int: ...
  94  @overload
  95  def ioctl(__fd: FileDescriptorLike, __request: int, __arg: _WritableBuffer, __mutate_flag: Literal[False]) -> bytes: ...
  96  @overload
  97  def ioctl(__fd: FileDescriptorLike, __request: int, __arg: _ReadOnlyBuffer, __mutate_flag: bool = ...) -> bytes: ...
  98  def flock(__fd: FileDescriptorLike, __operation: int) -> None: ...
  99  def lockf(__fd: FileDescriptorLike, __cmd: int, __len: int = ..., __start: int = ..., __whence: int = ...) -> Any: ...
 100