[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.224.57.152: ~ $
U

xe�_��@s(dZddlZddlZddlZddlZddlZddlZddlZddlm	Z	ddl
mZddlmZddlm
Z
ddlmZdd	lmZdd
lmZddlmZddlmZdd
lmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlm Z ddlm!Z!ddlm"Z"ddlm#Z#ddlm$Z$ddlm%Z%zddl
mZ&Wnje'k
�r�Z(zJe)e(��*��+d��r�e�,�dd k�r�d!Z-e-d"7Z-e-d#7Z-e.e-��n�W5dZ([(XYnXej/d$k�rddl0Z0ndZ0d%d&d'd(d)d*d+d,d-d.d/d0d1d2gZ1d3Z2d4Z3d5ej4kZ5e0dk�rLd6Z6ne0�7d7d2d6i�Z8e8j6Z6e&j9ej:e&j;ej<e&j=ej>e&j?ej@e&jAejBe&jCejDe&jEejFe&jGejHe&jIejJe&jKejLe&jMejNe&jOe2e&jPejQi
ZRe0dk	�r�Gd8d9�d9e0j7�ZSeT��UeSjV�e0dk�rdZWdZXd:ZYd;ZZn Gd<d=�d=e0j7�Z[eT��Ue[jV�e\ddd:d;d>d?d d@dAdBdCdDdEdFdGdHdIdJdKdLdMdNdO�Z]e	dPdQdRdSdTdUg�Z^e	dVdWdXdYdZd[g�Z_e	d\d]d^d_d`dadbdcdddedfdgdhg�Z`e	die`jadj�Zbe	dkdld]g�Zce	dmdndo�decja��Zee	dpdqdrdsdtdudvg�Zfedwdx�dydz��Zgd{d|�Zhed}d~��Zidd��Zjd�d��Zke&jlZld�d��Zmd�d��Znd�d��Zod�d��Zpd�d��Zqd�d��Zrd�d��Zsd�d��Ztd�aud�d��Zvd�d�d��Zwd�d��Zxd�d��Zyd�d��Zzd�d��Z{da|d�d��Z}d�d��Z~d�d%�Zd�d&�Z�Gd�d��d�e��Z�e&j�Z�e&j�Z�e&j�Z�d�d��Z�d�d�d��Z�d�d��Z�d�d��Z�Gd�d��d�e��Z�dS)�z Windows platform implementation.�N)�
namedtuple�)�_common)�AccessDenied)�	conn_tmap)�conn_to_ntuple)�debug)�ENCODING)�
ENCODING_ERRS)�
isfile_strict)�memoize)�memoize_when_activated)�
NoSuchProcess)�parse_environ_block)�TimeoutExpired)�
usage_percent)�long)�	lru_cache)�PY3��range)�unicode)�ABOVE_NORMAL_PRIORITY_CLASS)�BELOW_NORMAL_PRIORITY_CLASS)�HIGH_PRIORITY_CLASS)�IDLE_PRIORITY_CLASS)�NORMAL_PRIORITY_CLASS)�REALTIME_PRIORITY_CLASS)�_psutil_windowszdll load failed�z3this Windows version is too old (< Windows Vista); z:psutil 3.4.2 is the latest version which supports Windows z2000, XP and 2003 server)���win_service_iter�win_service_getrrrrrr�IOPRIO_VERYLOW�
IOPRIO_LOW�
IOPRIO_NORMAL�IOPRIO_HIGH�CONN_DELETE_TCB�AF_LINKZ
DELETE_TCBi+Z__pypy__����
AddressFamilyc@s$eZdZeZeZeZeZeZeZdS)�PriorityN)	�__name__�
__module__�__qualname__rrrrrr�r0r0�D/opt/alt/python38/lib64/python3.8/site-packages/psutil/_pswindows.pyr,msr,�r c@seZdZdZdZdZdZdS)�
IOPriorityrrr2r N)r-r.r/r$r%r&r'r0r0r0r1r3}sr3r!����	�
���
��������)�num_handles�ctx_switches�	user_time�kernel_time�create_time�num_threads�	io_rcount�	io_wcount�	io_rbytes�	io_wbytes�io_count_others�io_bytes_others�num_page_faults�	peak_wset�wset�peak_paged_pool�
paged_pool�peak_non_paged_pool�non_paged_pool�pagefile�
peak_pagefile�mem_private�	scputimes�user�system�idle�	interrupt�dpc�svmem�totalZ	available�percent�used�free�pmem�rss�vmsrPrQrRrSrTZpeak_nonpaged_poolZ
nonpaged_poolrWrXZprivate�pfullmem)�uss�
pmmap_grouped�path�	pmmap_extzaddr perms � �pioZ
read_countZwrite_countZ
read_bytesZwrite_bytes�other_countZother_bytesi)�maxsizecCs@d�|�d�dd��}t�|�}|t|�d�}tj�||�S)z�Convert paths using native DOS format like:
        "\Device\HarddiskVolume1\Windows\systemew\file.txt"
    into:
        "C:\Windows\systemew\file.txt"
    �\Nr )�join�split�cextZwin32_QueryDosDevice�len�osrk)�sZrawdriveZdriveletterZ	remainderr0r0r1�convert_dos_path�s
rxcCs&tr|St|t�r|S|�tt�SdS)zmEncode a unicode string to a byte string by using the default fs
    encoding + "replace" error handler.
    N)r�
isinstance�str�encoder	r
)rwr0r0r1�
py2_strencode�s

r|cCst��S�N)rt�getpagesizer0r0r0r1r~�sr~cCsNt��}|\}}}}}}|}|}|}	||}
t|||dd�}t||||
|	�S)z&System virtual memory as a namedtuple.r�Zround_)rt�virtual_memrr`)�memZtotphysZ	availphysZtotpagefZ
availpagefZtotvirtZfreevirtraZavailrdrcrbr0r0r1�virtual_memory�sr�cCsBt��}|d}|d}||}t||dd�}t�||||dd�S)z=Swap system memory as a (total, used, free, sin, sout) tuple.r2r rrr)rtr�rrZsswap)r�rardrcrbr0r0r1�swap_memory�sr�cCsPtrt|t�r|jtdd�}t�|�\}}||}t||dd�}t�	||||�S)z'Return disk usage associated with path.�strict)�errorsrr)
rry�bytes�decoder	rt�
disk_usagerrZ
sdiskusage)rkrardrcrbr0r0r1r�sr�cCst�|�}dd�|D�S)zReturn disk partitions.cSsg|]}tj|��qSr0)rZ	sdiskpart��.0�xr0r0r1�
<listcomp>sz#disk_partitions.<locals>.<listcomp>)rt�disk_partitions)�all�rawlistr0r0r1r�s
r�cCs<t��\}}}tdd�tt���D��}t||||j|j�S)z)Return system CPU times as a named tuple.cSsg|]}t|��qSr0)�sum)r��nr0r0r1r� szcpu_times.<locals>.<listcomp>)rt�	cpu_timesrZ�zip�
per_cpu_timesr^r_)r[r\r]Z
percpu_summedr0r0r1r�s�r�cCs:g}t��D](\}}}}}t|||||�}|�|�q|S)z6Return system per-CPU times as a list of named tuples.)rtr�rZ�append)�retr[r\r]r^r_�itemr0r0r1r�%s
r�cCst��S)z0Return the number of logical CPUs in the system.)rt�cpu_count_logicalr0r0r0r1r�.sr�cCst��S)z6Return the number of physical CPU cores in the system.)rtZcpu_count_physr0r0r0r1�cpu_count_physical3sr�cCs$t��\}}}}d}t�||||�S)zReturn CPU statistics.r)rt�	cpu_statsrZ	scpustats)rEZ
interruptsZdpcsZsyscallsZsoft_interruptsr0r0r1r�8s

�r�cCs(t��\}}d}t�t|�|t|��gS)zMReturn CPU frequency.
    On Windows per-cpu frequency is not supported.
    �)rt�cpu_freqrZscpufreq�float)ZcurrZmax_Zmin_r0r0r1r�@sr�FcCs*tst��dat��}tdd�|D��S)z~Return the number of processes in the system run queue averaged
    over the last 1, 5, and 15 minutes respectively as a tupleTcSsg|]}t|d��qS)r2)�round)r��loadr0r0r1r�Wszgetloadavg.<locals>.<listcomp>)�_loadavg_inititializedrtZinit_loadavg_counter�
getloadavg�tuple)Z	raw_loadsr0r0r1r�Ls
r�cCs�|tkr(td|d�dd�tD��f��t|\}}t�|||�}t�}|D]D}|\}}}	}
}}}
t|||	|
||t|dkr~|
ndd�}|�|�qLt	|�S)z�Return socket connections.  If pid == -1 return system-wide
    connections (as opposed to connections opened by one process only).
    z+invalid %r kind argument; choose between %sz, cSsg|]}t|��qSr0)�reprr�r0r0r1r�esz#net_connections.<locals>.<listcomp>r*N)�pid)
r�
ValueErrorrrrt�net_connections�setr�TCP_STATUSES�add�list)�kind�_pidZfamilies�typesr�r�r��fdZfam�typeZladdrZraddr�statusr��ntr0r0r1r�_s��r�cCsxi}t��}|��D]^\}}ts>t|t�s6tt|���t|�}|\}}}}t	t
d�r^t
�|�}t
�||||�||<q|S)z)Get NIC stats (isup, duplex, speed, mtu).�	NicDuplex)
rt�net_if_stats�itemsrryr�AssertionErrorr�r|�hasattrrr�Z	snicstats)r�Zrawdict�namer�ZisupZduplexZspeedZmtur0r0r1r�qs

r�cCst��}tdd�|��D��S)zsReturn network I/O statistics for every network interface
    installed on the system as a dict of raw tuples.
    cSsg|]\}}t|�|f�qSr0�r|)r��k�vr0r0r1r��sz#net_io_counters.<locals>.<listcomp>)rt�net_io_counters�dictr��r�r0r0r1r��sr�cCs8g}t��D]&}t|�}t|d�|d<|�|�q|S)z,Return the addresses associated to each NIC.r)rt�net_if_addrsr�r|r�)r�r�r0r0r1r��sr�cCsdt��\}}}}|dk}t|d@�}t|d@�}|r8dS|s@|rHtj}n|dkrVtj}t�|||�S)zReturn battery information.r�r6Nr*)rt�sensors_battery�boolrZPOWER_TIME_UNLIMITEDZPOWER_TIME_UNKNOWNZsbattery)Z
acline_status�flagsrbZsecsleftZ
power_pluggedZ
no_batteryZchargingr0r0r1r��sr�cCs,tt���}t|t�dkr tS|a|SdS)z:The system boot time expressed in seconds since the epoch.rN)r�rt�	boot_time�abs�_last_btimer�r0r0r1r��s
r�cCsHg}t��}|D]2}|\}}}t|�}t�|d||d�}|�|�q|S)z:Return currently connected users as a list of namedtuples.N)rt�usersr|rZsuserr�)�retlistr�r�r[ZhostnameZtstampr�r0r0r1r��s
r�ccs*t��D]\}}tt|�t|��VqdS)z*Yields a list of WindowsService instances.N)rtZwinservice_enumerate�WindowsServicer|)r��display_namer0r0r1r"�scCst|d�}|��d|_|S)zBOpen a Windows service and return it as a WindowsService instance.Nr�)r��
_query_config�
_display_name)r�Zservicer0r0r1r#�s
c@s�eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
ejdd��Z
dd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zd d!�Zd"d#�Zd$S)%r�z(Represents an installed Windows service.cCs||_||_dSr})�_namer�)�selfr�r�r0r0r1�__init__�szWindowsService.__init__cCs d|j|jf}d|jj|fS)Nz(name=%r, display_name=%r)z%s%s)r�r��	__class__r-)r�Zdetailsr0r0r1�__str__�s
�zWindowsService.__str__cCsd|��t|�fS)Nz
<%s at %s>)r��id�r�r0r0r1�__repr__�szWindowsService.__repr__cCst|t�stS|j|jkSr})ryr��NotImplementedr��r��otherr0r0r1�__eq__�s
zWindowsService.__eq__cCs
||kSr}r0r�r0r0r1�__ne__�szWindowsService.__ne__c	CsH|���t�|j�\}}}}W5QRXtt|�t|�t|�t|�d�S)N)r��binpath�username�
start_type)�_wrap_exceptionsrtZwinservice_query_configr�r�r|)r�r�r�r�r�r0r0r1r��s

��zWindowsService._query_configc	Cs<|���t�|j�\}}W5QRX|dkr0d}t||d�S)Nr)r�r�)r�rtZwinservice_query_statusr�r�)r�r�r�r0r0r1�
_query_statuss

zWindowsService._query_statusc
cs~z
dVWnntk
rx}zPt|�r<td|jd|jd��n,|jtjtjfkrftd|jd|jd��n�W5d}~XYnXdS)z{Ctx manager which translates bare OSError and WindowsError
        exceptions into NoSuchProcess and AccessDenied.
        Nz2service %r is not querable (not enough privileges)�r�r��msgzservice %r does not exist))	�OSError�is_permission_errrr��winerrorrtZERROR_INVALID_NAMEZERROR_SERVICE_DOES_NOT_EXISTr�r��errr0r0r1r�
s(
����zWindowsService._wrap_exceptionscCs|jS)z�The service name. This string is how a service is referenced
        and can be passed to win_service_get() to get a new
        WindowsService instance.
        )r�r�r0r0r1r�!szWindowsService.namecCs|jS)z_The service display name. The value is cached when this class
        is instantiated.
        )r�r�r0r0r1r�(szWindowsService.display_namecCs|��dS)zwThe fully qualified path to the service binary/exe file as
        a string, including command line arguments.
        r��r�r�r0r0r1r�.szWindowsService.binpathcCs|��dS)z,The name of the user that owns this service.r�r�r�r0r0r1r�4szWindowsService.usernamecCs|��dS)zRA string which can either be "automatic", "manual" or
        "disabled".
        r�r�r�r0r0r1r�8szWindowsService.start_typecCs|��dS)zzThe process PID, if any, else None. This can be passed
        to Process class to control the service's process.
        r��r�r�r0r0r1r�@szWindowsService.pidcCs|��dS)zService status as a string.r�r�r�r0r0r1r�FszWindowsService.statuscCstt�|����S)zService long description.)r|rtZwinservice_query_descrr�r�r0r0r1�descriptionJszWindowsService.descriptioncCs>|��}|�|���|��|d<|��|d<|��|d<|S)zUUtility method retrieving all the information above as a
        dictionary.
        r�r�r�)r��updater�r�r�r�)r��dr0r0r1�as_dictPszWindowsService.as_dictN)r-r.r/�__doc__r�r�r�r�r�r�r��
contextlib�contextmanagerr�r�r�r�r�r�r�r�r�r�r0r0r0r1r��s&
r�cCs<t|t�st|��|jtjtjfkp:t|dd�tjtj	fkS)z*Return True if this is a permission error.r�r*)
ryr�r��errnoZEPERMZEACCES�getattrrtZERROR_ACCESS_DENIEDZERROR_PRIVILEGE_NOT_HELD)�excr0r0r1r��s��r�cCsFt|t�st|��t|�r&t||d�S|jtjkr>t||d�S|�dS)z3Convert OSError into NoSuchProcess or AccessDenied.�r�r�N)ryr�r�r�rr�ZESRCHr)r�r�r�r0r0r1�convert_oserror�sr�cst����fdd��}|S)zDDecorator which converts OSError into NoSuchProcess or AccessDenied.c
sLz�|f|�|�WStk
rF}zt||j|jd��W5d}~XYnXdS)Nr�)r�r�r�r�)r��args�kwargsr���funr0r1�wrapper�sz wrap_exceptions.<locals>.wrapper��	functools�wraps�r�r�r0r�r1�wrap_exceptions�sr�cst����fdd��}|S)z�Workaround for https://github.com/giampaolo/psutil/issues/875.
    See: https://stackoverflow.com/questions/4457745#4457745
    c	s�d}d}t|�D]p}z�|f|�|�WStk
r~}z6|}|jtkrlt�|�t|dd�}WY�
qn�W5d}~XYqXqd�||f}t|j|j	|d��dS)N�-C��6?�!r2�{�G�z�?zI%s retried %s times, converted to AccessDenied as it's still returning %rr�)
r�WindowsErrorr��ERROR_PARTIAL_COPY�time�sleep�minrr�r�)	r�r�r��delay�timesr��_r�r�r�r0r1r��s 


�z)retry_error_partial_copy.<locals>.wrapperr�r�r0r�r1�retry_error_partial_copy�src@s�eZdZdZddddgZdd�Zdd	�Zd
d�Zedd
��Z	dd�Z
eedd���Zee
dd���Zee
dd���Zdd�Zdd�Zedd��Zedd��Zdd�Zed d!��Zed"d#��ZedPd%d&��Zed'd(��Zed)d*��Zed+d,��Zed-d.��Zed/d0��Zed1d2��Zed3d4��Zee
d5d6���Zed7d8��Z edQd:d;��Z!ed<d=��Z"ed>d?��Z#ed@dA��Z$edBdC��Z%edDdE��Z&edFdG��Z'edHdI��Z(edJdK��Z)edLdM��Z*edNdO��Z+d$S)R�Processz1Wrapper class around underlying C implementation.r�r��_ppid�_cachecCs||_d|_d|_dSr})r�r�r
)r�r�r0r0r1r��szProcess.__init__cCs|j�|�|j�|�dSr})�
_proc_infoZcache_activate�exer�r0r0r1�
oneshot_enter�szProcess.oneshot_entercCs|j�|�|j�|�dSr})rZcache_deactivater
r�r0r0r1�oneshot_exit�szProcess.oneshot_exitcCs$t�|j�}t|�tt�ks t�|S)zOReturn multiple information about this process as a
        raw tuple.
        )rtZ	proc_infor�ru�	pinfo_mapr��r�r�r0r0r1r�szProcess._proc_infocCs,|jdkrdS|jdkrdStj�|���S)zbReturn process name, which on Windows is always the final
        part of the executable.
        rzSystem Idle Processr!ZSystem)r�rvrk�basenamer
r�r0r0r1r��s


zProcess.namec
Cs�tr`zt�|j�}Wqltk
r\}z*|jdkrJtd|�t|j|j���W5d}~XYqlXnt�|j�}t	sxt
|�}|�d�r�t|�S|S)N�z%r forced into AccessDeniedrq)
�PYPYrtZproc_exer�rr�rrr�rr|�
startswithrx)r�r
r�r0r0r1r
�s

zProcess.exec
Cs�tjtjkrbztj|jdd�}Wqrtk
r^}z t|�rLtj|jdd�}n�W5d}~XYqrXntj|jdd�}trz|Sdd�|D�SdS)NT)Zuse_pebFcSsg|]}t|��qSr0r�)r�rwr0r0r1r�sz#Process.cmdline.<locals>.<listcomp>)rtZWINVERZWINDOWS_8_1Zproc_cmdliner�r�r�r)r�r�r�r0r0r1�cmdlineszProcess.cmdlinecCs6t�|j�}|r*ts*t|t�s*tt|���tt	|��Sr})
rtZproc_environr�rryrr�r�rr|)r�Zustrr0r0r1�environszProcess.environcCs6zt�|jWStk
r0t|j|j��YnXdSr})�ppid_mapr��KeyErrorrr�r�r0r0r1�ppid!szProcess.ppidcCs�zt�|j�WStk
r�}z�t|�r�|��}|td|td|td|td|td|td|td|td|td	|td
f
WY�S�W5d}~XYnXdS)NrPrQrRrSrTrUrVrWrXrY)rtZproc_memory_infor�r�r�rr)r�r��infor0r0r1�_get_raw_meminfo's"









�zProcess._get_raw_meminfocCs(|��}|d}|d}t||f|�S)Nr2r5)rre)r��trfrgr0r0r1�memory_info=szProcess.memory_infocCs,|��}t�|j�}|t�9}t||f�Sr})rrtZproc_memory_ussr�r~rh)r�Z	basic_memrir0r0r1�memory_full_infoGs
zProcess.memory_full_infoc
cs�zt�|j�}Wn2tk
rB}zt||j|j��W5d}~XYn>X|D]6\}}}}t|�}tsht|�}t	|�}||||fVqHdSr})
rtZproc_memory_mapsr�r�r�r�rxrr|�hex)r��rawr�ZaddrZpermrkrfr0r0r1�memory_mapsNs"zProcess.memory_mapscCst�|j�Sr})rt�	proc_killr�r�r0r0r1�kill]szProcess.killcCsT|tjkrt�|j�n8|ttdt��ttdt��fkrHt�|j|�nt	d��dS)NZCTRL_C_EVENTZCTRL_BREAK_EVENTzPonly SIGTERM, CTRL_C_EVENT and CTRL_BREAK_EVENT signals are supported on Windows)
�signal�SIGTERMrtr#r�r��objectrvr$r�)r�Zsigr0r0r1�send_signalas
��zProcess.send_signalNcCs�|dkrtj}nt|d�}ttdtj�}|dk	r<|�|nd}zt�|j|�}Wn>tjk
rxt||j|j��Yntj	k
r�d}YnXd}t
|j�s�|S|r�|�|kr�t||j|jd��t�|�t|dd�}q�dS)Ni��	monotonicr�r�r2r�)
rtZINFINITE�intr�rZ	proc_waitr�rr�ZTimeoutAbandoned�
pid_existsrr)r�ZtimeoutZcext_timeoutZtimerZstop_atZ	exit_coderr0r0r1�waitns$	


zProcess.waitcCs2|jdkrdSt�|j�\}}t|�dt|�S)N�rr!zNT AUTHORITY\SYSTEMrq)r�rtZ
proc_usernamer|)r�Zdomainr[r0r0r1r��s
zProcess.usernamec
Csbzt�|j�\}}}|WStk
r\}z&t|�rJ|��tdWY�S�W5d}~XYnXdS)NrH)rt�
proc_timesr�r�r�rr)r�r[r\�createdr�r0r0r1rH�szProcess.create_timecCs|��tdS)NrI)rrr�r0r0r1rI�szProcess.num_threadscCs<t�|j�}g}|D]"\}}}t�|||�}|�|�q|Sr})rtZproc_threadsr�rZpthreadr�)r�r�r�Z	thread_id�utimeZstime�ntupler0r0r1�threads�szProcess.threadsc
Cstzt�|j�\}}}WnLtk
rb}z.t|�s2�|��}|td}|td}W5d}~XYnXt�||dd�S)NrFrGr�)	rtr.r�r�r�rrrZ	pcputimes)r�r[r\r/r�rr0r0r1r��szProcess.cpu_timescCst�|jd�dS)NT�rtZproc_suspend_or_resumer�r�r0r0r1�suspend�szProcess.suspendcCst�|jd�dS)NFr3r�r0r0r1�resume�szProcess.resumecCs4|jdkrt|j|j��t�|j�}ttj�|��S)Nr-)	r�rr�rtZproc_cwdr|rvrk�normpath)r�rkr0r0r1�cwd�s
zProcess.cwdcCsd|jdkrgSt�}t�|j�}|D]6}t|�}t|�r$tsDt|�}t�	|d�}|�
|�q$t|�S)Nr-r*)r�r�rtZproc_open_filesrxrrr|rZ	popenfiler�r�)r�r�Zraw_file_namesZ_filer1r0r0r1�
open_files�s
zProcess.open_files�inetcCst||jd�S)N)r�)r�r�)r�r�r0r0r1�connections�szProcess.connectionscCs t�|j�}tdk	rt|�}|Sr})rtZproc_priority_getr��enumr,�r��valuer0r0r1�nice_get�szProcess.nice_getcCst�|j|�Sr})rtZproc_priority_setr�r<r0r0r1�nice_set�szProcess.nice_setcCs t�|j�}tdk	rt|�}|Sr})rtZproc_io_priority_getr�r;r3rr0r0r1�
ionice_get�szProcess.ionice_getcCs:|rtd��|ttttfkr(td|��t�|j|�dS)Nz&value argument not accepted on Windowsz%s is not a valid priority)	�	TypeErrorr$r%r&r'r�rtZproc_io_priority_setr�)r�Zioclassr=r0r0r1�
ionice_sets�zProcess.ionice_setcCs�zt�|j�}Wnttk
r�}zVt|�s,�|��}|td|td|td|td|td|tdf}W5d}~XYnXt|�S)NrJrKrLrMrNrO)rtZproc_io_countersr�r�r�rrrn)r�r�r�rr0r0r1�io_counters
s





�zProcess.io_counterscCs t�|j�}|rtjStjSdSr})rtZproc_is_suspendedr�rZSTATUS_STOPPEDZSTATUS_RUNNING)r�Z	suspendedr0r0r1r�szProcess.statuscCsdd�}t�|j�}||�S)Ncs�fdd�td�D�S)Ncsg|]}d|>�@r|�qS)rr0)r��i�r�r0r1r�'szBProcess.cpu_affinity_get.<locals>.from_bitmask.<locals>.<listcomp>�@rrEr0rEr1�from_bitmask&sz.Process.cpu_affinity_get.<locals>.from_bitmask)rtZproc_cpu_affinity_getr�)r�rG�bitmaskr0r0r1�cpu_affinity_get$szProcess.cpu_affinity_getcCsndd�}tttt����}|D]4}||krt|ttf�sFtd|��qtd|��q||�}t	�
|j|�dS)NcSs.|std|��d}|D]}|d|O}q|S)Nzinvalid argument %rrr2)r�)Zls�out�br0r0r1�
to_bitmask-sz,Process.cpu_affinity_set.<locals>.to_bitmaskz&invalid CPU %r; an integer is requiredzinvalid CPU %r)r�rrur�ryr*rrAr�rtZproc_cpu_affinity_setr�)r�r=rLZallcpusZcpurHr0r0r1�cpu_affinity_set+s�zProcess.cpu_affinity_setc
CsXzt�|j�WStk
rR}z&t|�r@|��tdWY�S�W5d}~XYnXdS)NrD)rtZproc_num_handlesr�r�r�rrr�r0r0r1rDDszProcess.num_handlescCs|��td}t�|d�S)NrEr)rrrZpctxsw)r�rEr0r0r1�num_ctx_switchesMszProcess.num_ctx_switches)N)r9),r-r.r/r��	__slots__r�rrr
rr�r�r
rrrrrrrr"r$r(r,r�rHrIr2r�r4r5r7r8r:r>r?r@rBrCr�rIrMrDrNr0r0r0r1r	�s�

	


*
















r	)r*)NN)�r�r�r�r�rvr%�sysr�collectionsr�rrrrrr	r
rrr
rrrrZ_compatrrrrrrrrrrrrrt�ImportErrorr�rz�lowerrZgetwindowsversionr��RuntimeError�version_infor;Z__extra__all__r(r�builtin_module_namesrr)�IntEnumr+ZMIB_TCP_STATE_ESTABZCONN_ESTABLISHEDZMIB_TCP_STATE_SYN_SENTZ
CONN_SYN_SENTZMIB_TCP_STATE_SYN_RCVDZ
CONN_SYN_RECVZMIB_TCP_STATE_FIN_WAIT1ZCONN_FIN_WAIT1ZMIB_TCP_STATE_FIN_WAIT2ZCONN_FIN_WAIT2ZMIB_TCP_STATE_TIME_WAITZCONN_TIME_WAITZMIB_TCP_STATE_CLOSEDZ
CONN_CLOSEZMIB_TCP_STATE_CLOSE_WAITZCONN_CLOSE_WAITZMIB_TCP_STATE_LAST_ACKZ
CONN_LAST_ACKZMIB_TCP_STATE_LISTENZCONN_LISTENZMIB_TCP_STATE_CLOSINGZCONN_CLOSINGZMIB_TCP_STATE_DELETE_TCBZPSUTIL_CONN_NONEZ	CONN_NONEr�r,�globalsr��__members__r$r%r&r'r3r�rrZr`re�_fieldsrhrjrrrlrnrxr|r~r�r�Zdisk_io_countersr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r"r#r'r�Zpidsr+rr�r�r�rr	r0r0r0r1�<module>s��

�

�

� �����



	
		
*



Filemanager

Name Type Size Permission Actions
__init__.cpython-38.opt-1.pyc File 62.18 KB 0644
__init__.cpython-38.pyc File 62.24 KB 0644
_common.cpython-38.opt-1.pyc File 20.33 KB 0644
_common.cpython-38.pyc File 20.45 KB 0644
_compat.cpython-38.opt-1.pyc File 11.09 KB 0644
_compat.cpython-38.pyc File 11.09 KB 0644
_psaix.cpython-38.opt-1.pyc File 14.92 KB 0644
_psaix.cpython-38.pyc File 14.92 KB 0644
_psbsd.cpython-38.opt-1.pyc File 20.44 KB 0644
_psbsd.cpython-38.pyc File 20.53 KB 0644
_pslinux.cpython-38.opt-1.pyc File 48.48 KB 0644
_pslinux.cpython-38.pyc File 48.57 KB 0644
_psosx.cpython-38.opt-1.pyc File 14.41 KB 0644
_psosx.cpython-38.pyc File 14.49 KB 0644
_psposix.cpython-38.opt-1.pyc File 4.4 KB 0644
_psposix.cpython-38.pyc File 4.43 KB 0644
_pssunos.cpython-38.opt-1.pyc File 17.94 KB 0644
_pssunos.cpython-38.pyc File 17.99 KB 0644
_pswindows.cpython-38.opt-1.pyc File 28.23 KB 0644
_pswindows.cpython-38.pyc File 28.43 KB 0644