massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2 / resource.pyi
1 from typing import Tuple, NamedTuple\r
2 \r
3 class error(Exception): ...\r
4 \r
5 RLIM_INFINITY = ...  # type: int\r
6 def getrlimit(resource: int) -> Tuple[int, int]: ...\r
7 def setrlimit(resource: int, limits: Tuple[int, int]) -> None: ...\r
8 \r
9 RLIMIT_CORE = ...  # type: int\r
10 RLIMIT_CPU = ...  # type: int\r
11 RLIMIT_FSIZE = ...  # type: int\r
12 RLIMIT_DATA = ...  # type: int\r
13 RLIMIT_STACK = ...  # type: int\r
14 RLIMIT_RSS = ...  # type: int\r
15 RLIMIT_NPROC = ...  # type: int\r
16 RLIMIT_NOFILE = ...  # type: int\r
17 RLIMIT_OFILE = ...  # type: int\r
18 RLIMIT_MEMLOCK = ...  # type: int\r
19 RLIMIT_VMEM = ...  # type: int\r
20 RLIMIT_AS = ...  # type: int\r
21 \r
22 _RUsage = NamedTuple('_RUsage', [('ru_utime', float), ('ru_stime', float), ('ru_maxrss', int),\r
23                                  ('ru_ixrss', int), ('ru_idrss', int), ('ru_isrss', int),\r
24                                  ('ru_minflt', int), ('ru_majflt', int), ('ru_nswap', int),\r
25                                  ('ru_inblock', int), ('ru_oublock', int), ('ru_msgsnd', int),\r
26                                  ('ru_msgrcv', int), ('ru_nsignals', int), ('ru_nvcsw', int),\r
27                                  ('ru_nivcsw', int)])\r
28 def getrusage(who: int) -> _RUsage: ...\r
29 def getpagesize() -> int: ...\r
30 \r
31 RUSAGE_SELF = ...  # type: int\r
32 RUSAGE_CHILDREN = ...  # type: int\r
33 RUSAGE_BOTH = ...  # type: int\r