massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3 / resource.pyi
1 # Stubs for resource\r
2 \r
3 # NOTE: These are incomplete!\r
4 \r
5 from typing import Tuple, Optional, NamedTuple\r
6 \r
7 RLIMIT_AS = ...  # type: int\r
8 RLIMIT_CORE = ...  # type: int\r
9 RLIMIT_CPU = ...  # type: int\r
10 RLIMIT_DATA = ...  # type: int\r
11 RLIMIT_FSIZE = ...  # type: int\r
12 RLIMIT_MEMLOCK = ...  # type: int\r
13 RLIMIT_MSGQUEUE = ...  # type: int\r
14 RLIMIT_NICE = ...  # type: int\r
15 RLIMIT_NOFILE = ...  # type: int\r
16 RLIMIT_NPROC = ...  # type: int\r
17 RLIMIT_OFILE = ...  # type: int\r
18 RLIMIT_RSS = ...  # type: int\r
19 RLIMIT_RTPRIO = ...  # type: int\r
20 RLIMIT_RTTIME = ...  # type: int\r
21 RLIMIT_SIGPENDING = ...  # type: int\r
22 RLIMIT_STACK = ...  # type: int\r
23 RLIM_INFINITY = ...  # type: int\r
24 RUSAGE_CHILDREN = ...  # type: int\r
25 RUSAGE_SELF = ...  # type: int\r
26 RUSAGE_THREAD = ...  # type: int\r
27 \r
28 _RUsage = NamedTuple('_RUsage', [('ru_utime', float), ('ru_stime', float), ('ru_maxrss', int),\r
29                                  ('ru_ixrss', int), ('ru_idrss', int), ('ru_isrss', int),\r
30                                  ('ru_minflt', int), ('ru_majflt', int), ('ru_nswap', int),\r
31                                  ('ru_inblock', int), ('ru_oublock', int), ('ru_msgsnd', int),\r
32                                  ('ru_msgrcv', int), ('ru_nsignals', int), ('ru_nvcsw', int),\r
33                                  ('ru_nivcsw', int)])\r
34 \r
35 def getpagesize() -> int: ...\r
36 def getrlimit(resource: int) -> Tuple[int, int]: ...\r
37 def getrusage(who: int) -> _RUsage: ...\r
38 def prlimit(pid: int, resource: int, limits: Optional[Tuple[int, int]]) -> Tuple[int, int]: ...\r
39 def setrlimit(resource: int, limits: Tuple[int, int]) -> None: ...\r
40 \r
41 # NOTE: This is an alias of OSError in Python 3.3.\r
42 class error(Exception): ...\r