$10 GRAYBYTE WORDPRESS FILE MANAGER $71

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.23
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python37/lib64/python3.7/site-packages/psutil/__pycache__/

HOME
Current File : /opt/alt/python37/lib64/python3.7/site-packages/psutil/__pycache__//_psposix.cpython-37.pyc
B

���_m�@s^dZddlZddlZddlZddlZddlZddlmZddlmZddlm	Z	ddlm
Z
ddlmZdd	lm
Z
dd
lmZddlmZddlmZdd
lmZddlmZejdkr�ddlZndZddddgZdd�Zedk	�reed��re�dedd�ejD���Zdd�Zndd�Zddejeedej�eej efdd�Z!dd�Z"edd��Z#dS) z%Routines common to all posix systems.�N�)�memoize)�
sdiskusage)�TimeoutExpired)�
usage_percent)�ChildProcessError)�FileNotFoundError)�InterruptedError)�PermissionError)�ProcessLookupError)�PY3)�unicode)���
pid_exists�wait_pid�
disk_usage�get_terminal_mapcCsL|dkrdSyt�|d�Wn&tk
r0dStk
rBdSXdSdS)z6Check whether pid exists in the current process table.rTFN)�os�killrr
)�pid�r�B/opt/alt/python37/lib64/python3.7/site-packages/psutil/_psposix.pyr"s�Signals�	NegsignalcCsg|]}|j|jf�qSr)�name�value)�.0�xrrr�
<listcomp><srcCs"yt|�Stk
r|SXdS)z+Convert a negative signal value to an enum.N)r�
ValueError)�numrrr�negsig_to_enum>sr"cCs|S)Nr)r!rrrr"Es�	monotonicc
s��dkrtd��d}d}	�dk	r4|	tjO}	�����������fdd�}
x�yt��|	�\}}WnDtk
r~|
|�}YqNtk
r�x|��r�|
|�}q�WdSX|dkr�|
|�}qNqNt�|�r�t�|�St�|�r�t	t�
|��Std|��qNWdS)a�Wait for a process PID to terminate.

    If the process terminated normally by calling exit(3) or _exit(2),
    or by returning from main(), the return value is the positive integer
    passed to *exit().

    If it was terminated by a signal it returns the negated value of the
    signal which caused the termination (e.g. -SIGTERM).

    If PID is not a children of os.getpid() (current process) just
    wait until the process disappears and return None.

    If PID does not exist at all return None immediately.

    If *timeout* != None and process is still alive raise TimeoutExpired.
    timeout=0 is also possible (either return immediately or raise).
    rzcan't wait for PID 0g-C��6?Ncs6�dk	r ���kr t���d���|��|dd�S)N)rr�g{�G�z�?)r)�interval)�_min�_sleep�_timerr�	proc_name�stop_at�timeoutrr�sleephs

zwait_pid.<locals>.sleepzunknown process exit status %r)r r�WNOHANG�waitpidr	r�	WIFEXITED�WEXITSTATUS�WIFSIGNALEDr"�WTERMSIG)
rr+r)�_waitpidr(r&r'Z_pid_existsr%�flagsr,Zretpid�statusr)r&r'r(rr)r*r+rrIs2

	



cCs�trt�|�}ndyt�|�}WnTtk
rrt|t�rly|�t���}Wntk
r^YnXt�|�}n�YnX|j	|j
}|j|j
}|j|j
}||}||}t
||dd�}t||||d�S)a.Return disk usage associated with path.
    Note: UNIX usually reserves 5% disk space which is not accessible
    by user. In this function "total" and "used" values reflect the
    total and used disk space whereas "free" and "percent" represent
    the "free" and "used percent" user disk space.
    r)�round_)�total�used�free�percent)rr�statvfs�UnicodeEncodeError�
isinstancer
�encode�sys�getfilesystemencoding�f_blocks�f_frsize�f_bfree�f_bavailrr)�path�str7Z
avail_to_rootZ
avail_to_userr8Z
total_userZusage_percent_userrrrr�s(
c	Csdi}t�d�t�d�}xF|D]>}||ks2t|��y||t�|�j<Wqtk
rZYqXqW|S)zMGet a map of device-id -> path as a dict.
    Used by Process.terminal()
    z	/dev/tty*z
/dev/pts/*)�glob�AssertionErrorr�stat�st_rdevr)�retZlsrrrrr�s

)$�__doc__rGr�signalr?�time�_commonrrrr�_compatrrr	r
rrr
�version_info�enum�__all__r�hasattr�IntEnum�dictrrr"r.�getattr�minr,rrrrrrr�<module>sD


S1


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 7.11 PM
root / root
0755
__init__.cpython-37.pyc
61.935 KB
24 Apr 2023 8.03 PM
root / root
0644
_common.cpython-37.pyc
20.14 KB
24 Apr 2023 8.03 PM
root / root
0644
_compat.cpython-37.pyc
10.937 KB
24 Apr 2023 8.03 PM
root / root
0644
_psaix.cpython-37.pyc
14.689 KB
24 Apr 2023 8.03 PM
root / root
0644
_psbsd.cpython-37.pyc
20.323 KB
24 Apr 2023 8.03 PM
root / root
0644
_pslinux.cpython-37.pyc
48.007 KB
24 Apr 2023 8.03 PM
root / root
0644
_psosx.cpython-37.pyc
14.144 KB
24 Apr 2023 8.03 PM
root / root
0644
_psposix.cpython-37.pyc
4.414 KB
24 Apr 2023 8.03 PM
root / root
0644
_pssunos.cpython-37.pyc
17.695 KB
24 Apr 2023 8.03 PM
root / root
0644
_pswindows.cpython-37.pyc
27.995 KB
24 Apr 2023 8.03 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF