massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3 / posix.pyi
1 # Stubs for posix\r
2 \r
3 # NOTE: These are incomplete!\r
4 \r
5 from typing import NamedTuple, Tuple\r
6 \r
7 class stat_result:\r
8     # For backward compatibility, the return value of stat() is also\r
9     # accessible as a tuple of at least 10 integers giving the most important\r
10     # (and portable) members of the stat structure, in the order st_mode,\r
11     # st_ino, st_dev, st_nlink, st_uid, st_gid, st_size, st_atime, st_mtime,\r
12     # st_ctime. More items may be added at the end by some implementations.\r
13 \r
14     st_mode: int  # protection bits,\r
15     st_ino: int  # inode number,\r
16     st_dev: int  # device,\r
17     st_nlink: int  # number of hard links,\r
18     st_uid: int  # user id of owner,\r
19     st_gid: int  # group id of owner,\r
20     st_size: int  # size of file, in bytes,\r
21     st_atime: float  # time of most recent access,\r
22     st_mtime: float  # time of most recent content modification,\r
23     st_ctime: float  # platform dependent (time of most recent metadata change on Unix, or the time of creation on Windows)\r
24     st_atime_ns: int  # time of most recent access, in nanoseconds\r
25     st_mtime_ns: int  # time of most recent content modification in nanoseconds\r
26     st_ctime_ns: int  # platform dependent (time of most recent metadata change on Unix, or the time of creation on Windows) in nanoseconds\r
27 \r
28     # not documented\r
29     def __init__(self, tuple: Tuple[int, ...]) -> None: ...\r
30 \r
31     # On some Unix systems (such as Linux), the following attributes may also\r
32     # be available:\r
33     st_blocks: int  # number of blocks allocated for file\r
34     st_blksize: int  # filesystem blocksize\r
35     st_rdev: int  # type of device if an inode device\r
36     st_flags: int  # user defined flags for file\r
37 \r
38     # On other Unix systems (such as FreeBSD), the following attributes may be\r
39     # available (but may be only filled out if root tries to use them):\r
40     st_gen: int  # file generation number\r
41     st_birthtime: int  # time of file creation\r
42 \r
43     # On Mac OS systems, the following attributes may also be available:\r
44     st_rsize: int\r
45     st_creator: int\r
46     st_type: int\r
47 \r
48 uname_result = NamedTuple('uname_result', [('sysname', str), ('nodename', str),\r
49     ('release', str), ('version', str), ('machine', str)])\r
50 \r
51 times_result = NamedTuple('times_result', [\r
52     ('user', float),\r
53     ('system', float),\r
54     ('children_user', float),\r
55     ('children_system', float),\r
56     ('elapsed', float),\r
57 ])\r
58 \r
59 waitid_result = NamedTuple('waitid_result', [\r
60     ('si_pid', int),\r
61     ('si_uid', int),\r
62     ('si_signo', int),\r
63     ('si_status', int),\r
64     ('si_code', int),\r
65 ])\r
66 \r
67 sched_param = NamedTuple('sched_priority', [\r
68     ('sched_priority', int),\r
69 ])\r