11import sys
22
33if sys .platform == "darwin" :
4- from _typeshed import StrOrBytesPath
4+ from _typeshed import Incomplete , StrOrBytesPath
55 from collections .abc import Sequence
66 from socket import AddressFamily , SocketKind
77 from typing import Final , TypeVar
88
99 _T = TypeVar ("_T" )
1010
11+ # TODO: Add POSIX constants and check their aviability (see psutil_posix_add_constants)
12+ AF_LINK : Incomplete
13+
14+ def getpagesize () -> int : ...
15+ def net_if_addrs (): ...
16+ def net_if_flags (nic_name : str , / ) -> list [str ]: ...
17+ def net_if_is_running (nic_name : str , / ) -> bool : ...
18+ def net_if_mtu (nic_name : str , / ) -> int : ...
19+ def proc_priority_get (pid : int , / ) -> int : ...
20+ def proc_priority_set (pid : int , priority : int , / ) -> None : ...
21+ def net_if_duplex_speed (nic_name : str , / ): ...
22+ def users () -> list [tuple [Incomplete , ...]]: ...
23+ def proc_is_zombie (pid : int , / ) -> bool : ...
24+
1125 version : Final [int ]
1226 SIDL : Final = 1
1327 SRUN : Final = 2
@@ -31,7 +45,6 @@ if sys.platform == "darwin":
3145 def proc_cwd (pid : int , / ) -> str : ...
3246 def proc_environ (pid : int , / ) -> str : ...
3347 def proc_exe (pid : int , / ) -> str : ...
34- def proc_is_zombie (pid : int , / ) -> bool : ...
3548 def proc_kinfo_oneshot (pid : int , / ) -> tuple [int , int , int , int , int , int , int , float , int , str ]: ...
3649 def proc_memory_uss (pid : int , / ) -> int : ...
3750 def proc_name (pid : int , / ) -> str : ...
0 commit comments