Format: application/octet-stream
⬇ Download File (877 B)
   1  from typing import NamedTuple, Tuple
   2  
   3  class error(Exception): ...
   4  
   5  RLIM_INFINITY: int
   6  
   7  def getrlimit(resource: int) -> Tuple[int, int]: ...
   8  def setrlimit(resource: int, limits: Tuple[int, int]) -> None: ...
   9  
  10  RLIMIT_CORE: int
  11  RLIMIT_CPU: int
  12  RLIMIT_FSIZE: int
  13  RLIMIT_DATA: int
  14  RLIMIT_STACK: int
  15  RLIMIT_RSS: int
  16  RLIMIT_NPROC: int
  17  RLIMIT_NOFILE: int
  18  RLIMIT_OFILE: int
  19  RLIMIT_MEMLOCK: int
  20  RLIMIT_VMEM: int
  21  RLIMIT_AS: int
  22  
  23  class _RUsage(NamedTuple):
  24      ru_utime: float
  25      ru_stime: float
  26      ru_maxrss: int
  27      ru_ixrss: int
  28      ru_idrss: int
  29      ru_isrss: int
  30      ru_minflt: int
  31      ru_majflt: int
  32      ru_nswap: int
  33      ru_inblock: int
  34      ru_oublock: int
  35      ru_msgsnd: int
  36      ru_msgrcv: int
  37      ru_nsignals: int
  38      ru_nvcsw: int
  39      ru_nivcsw: int
  40  
  41  def getrusage(who: int) -> _RUsage: ...
  42  def getpagesize() -> int: ...
  43  
  44  RUSAGE_SELF: int
  45  RUSAGE_CHILDREN: int
  46  RUSAGE_BOTH: int
  47