@@ -3,72 +3,73 @@ from _typeshed import structseq
33from typing import overload
44from typing_extensions import final
55
6- RLIMIT_AS : int
7- RLIMIT_CORE : int
8- RLIMIT_CPU : int
9- RLIMIT_DATA : int
10- RLIMIT_FSIZE : int
11- RLIMIT_MEMLOCK : int
12- RLIMIT_NOFILE : int
13- RLIMIT_NPROC : int
14- RLIMIT_RSS : int
15- RLIMIT_STACK : int
16- RLIM_INFINITY : int
17- RUSAGE_CHILDREN : int
18- RUSAGE_SELF : int
19- if sys .platform == "linux" :
20- RLIMIT_MSGQUEUE : int
21- RLIMIT_NICE : int
22- RLIMIT_OFILE : int
23- RLIMIT_RTPRIO : int
24- RLIMIT_RTTIME : int
25- RLIMIT_SIGPENDING : int
26- RUSAGE_THREAD : int
6+ if sys .platform != "win32" :
7+ RLIMIT_AS : int
8+ RLIMIT_CORE : int
9+ RLIMIT_CPU : int
10+ RLIMIT_DATA : int
11+ RLIMIT_FSIZE : int
12+ RLIMIT_MEMLOCK : int
13+ RLIMIT_NOFILE : int
14+ RLIMIT_NPROC : int
15+ RLIMIT_RSS : int
16+ RLIMIT_STACK : int
17+ RLIM_INFINITY : int
18+ RUSAGE_CHILDREN : int
19+ RUSAGE_SELF : int
20+ if sys .platform == "linux" :
21+ RLIMIT_MSGQUEUE : int
22+ RLIMIT_NICE : int
23+ RLIMIT_OFILE : int
24+ RLIMIT_RTPRIO : int
25+ RLIMIT_RTTIME : int
26+ RLIMIT_SIGPENDING : int
27+ RUSAGE_THREAD : int
2728
28- @final
29- class struct_rusage (structseq [float ], tuple [float , float , int , int , int , int , int , int , int , int , int , int , int , int , int , int ]):
30- @property
31- def ru_utime (self ) -> float : ...
32- @property
33- def ru_stime (self ) -> float : ...
34- @property
35- def ru_maxrss (self ) -> int : ...
36- @property
37- def ru_ixrss (self ) -> int : ...
38- @property
39- def ru_idrss (self ) -> int : ...
40- @property
41- def ru_isrss (self ) -> int : ...
42- @property
43- def ru_minflt (self ) -> int : ...
44- @property
45- def ru_majflt (self ) -> int : ...
46- @property
47- def ru_nswap (self ) -> int : ...
48- @property
49- def ru_inblock (self ) -> int : ...
50- @property
51- def ru_oublock (self ) -> int : ...
52- @property
53- def ru_msgsnd (self ) -> int : ...
54- @property
55- def ru_msgrcv (self ) -> int : ...
56- @property
57- def ru_nsignals (self ) -> int : ...
58- @property
59- def ru_nvcsw (self ) -> int : ...
60- @property
61- def ru_nivcsw (self ) -> int : ...
29+ @final
30+ class struct_rusage (structseq [float ], tuple [float , float , int , int , int , int , int , int , int , int , int , int , int , int , int , int ]):
31+ @property
32+ def ru_utime (self ) -> float : ...
33+ @property
34+ def ru_stime (self ) -> float : ...
35+ @property
36+ def ru_maxrss (self ) -> int : ...
37+ @property
38+ def ru_ixrss (self ) -> int : ...
39+ @property
40+ def ru_idrss (self ) -> int : ...
41+ @property
42+ def ru_isrss (self ) -> int : ...
43+ @property
44+ def ru_minflt (self ) -> int : ...
45+ @property
46+ def ru_majflt (self ) -> int : ...
47+ @property
48+ def ru_nswap (self ) -> int : ...
49+ @property
50+ def ru_inblock (self ) -> int : ...
51+ @property
52+ def ru_oublock (self ) -> int : ...
53+ @property
54+ def ru_msgsnd (self ) -> int : ...
55+ @property
56+ def ru_msgrcv (self ) -> int : ...
57+ @property
58+ def ru_nsignals (self ) -> int : ...
59+ @property
60+ def ru_nvcsw (self ) -> int : ...
61+ @property
62+ def ru_nivcsw (self ) -> int : ...
6263
63- def getpagesize () -> int : ...
64- def getrlimit (__resource : int ) -> tuple [int , int ]: ...
65- def getrusage (__who : int ) -> struct_rusage : ...
66- def setrlimit (__resource : int , __limits : tuple [int , int ]) -> None : ...
64+ def getpagesize () -> int : ...
65+ def getrlimit (__resource : int ) -> tuple [int , int ]: ...
66+ def getrusage (__who : int ) -> struct_rusage : ...
67+ def setrlimit (__resource : int , __limits : tuple [int , int ]) -> None : ...
6768
68- if sys .platform == "linux" :
69- @overload
70- def prlimit (pid : int , resource : int , limits : tuple [int , int ]) -> tuple [int , int ]: ...
71- @overload
72- def prlimit (pid : int , resource : int ) -> tuple [int , int ]: ...
69+ if sys .platform == "linux" :
70+ @overload
71+ def prlimit (pid : int , resource : int , limits : tuple [int , int ]) -> tuple [int , int ]: ...
72+ @overload
73+ def prlimit (pid : int , resource : int ) -> tuple [int , int ]: ...
7374
74- error = OSError
75+ error = OSError
0 commit comments