3 # NOTE: These are incomplete!
\r
5 from typing import NamedTuple, Tuple
\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
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
29 def __init__(self, tuple: Tuple[int, ...]) -> None: ...
\r
31 # On some Unix systems (such as Linux), the following attributes may also
\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
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
43 # On Mac OS systems, the following attributes may also be available:
\r
48 uname_result = NamedTuple('uname_result', [('sysname', str), ('nodename', str),
\r
49 ('release', str), ('version', str), ('machine', str)])
\r
51 times_result = NamedTuple('times_result', [
\r
54 ('children_user', float),
\r
55 ('children_system', float),
\r
59 waitid_result = NamedTuple('waitid_result', [
\r
67 sched_param = NamedTuple('sched_priority', [
\r
68 ('sched_priority', int),
\r