관리-도구
편집 파일: _common.cpython-311.pyc
� ]�Dgjf � �: � d Z ddlmZmZ ddlZddlZddlZddlZddlZddl Z ddl Z ddlZddlZddl mZ ddl mZ ddlmZ ddlmZ ddlmZ dd lmZ n # e$ r dZY nw xY w dd lmZ n # e$ r dZY nw xY we j dk rddlZndZe j d dk Zg d �Zej dk Zej dk Ze j � d� � Ze j � d� � Z e Z!e j � d� � Z"e j � d� � Z#e j � d� � Z$e"pe#pe$Z%e j � d� � Z&e j � d� � Z'dZ(dZ)dZ*dZ+dZ,dZ-dZ.dZ/dZ0d Z1d!Z2d"Z3d#Z4d$Z5d%Z6d&Z7d'Z8d(Z9d)Z:d*Z;d+Z<d,Z=d-Z>d.Z?d/Z@d0ZAe�d1ZBd2ZCdZDn5 G d3� d4ejE � � ZF eG� � �H eFjI � � e�d5ZJd6ZKn5 G d7� d8ejE � � ZL eG� � �H eLjI � � e jM � � ZNesd9ZOn" e jP � � ZOn# eQ$ r erd:nd9ZOY nw xY w ed;g d<�� � ZR ed=g d>�� � ZS ed?g d@�� � ZT edAg dB�� � ZU edCg dD�� � ZV edEg dF�� � ZW edGg dH�� � ZX edIg dJ�� � ZY edKg dL�� � ZZ edMg dN�� � Z[ edOg dP�� � Z\ edQg dR�� � Z] edSg dT�� � Z^ edUdVdWg� � Z_ edXg dY�� � Z` edZd[d\g� � Za ed]g d^�� � Zb ed_g d`�� � Zc edag d`�� � Zd edbg dc�� � Ze edddedfg� � Zf edgdhdig� � Zg edjg dk�� � Zh edldmdng� � Zieeegeegfeegegfegegfeegegfegegfeegeegfegeegfegeegfdo�Zje� ej�H egegfegegfdp�� � e�ej�H dqegeegfi� � G dr� dsek� � Zl G dt� duel� � Zm G dv� dwem� � Zn G dx� dyel� � Zo G dz� d{el� � Zpd�d|�Zqd}� Zrd~� Zsd� Ztd�� Zuerd�� � � Zvd�� Zwd�� Zxd�� Zyd�d��Zzd�� Z{ G d�� d�� � Z|d�� Z} e|� � Z~e~j e}_ e~j� e}_� d�� Z�d�� Z�d�d��Z�d�� Z�erd�� Z�nd�� Z�ere j� fd��� � Z�d�d��Z�dd�e j� fd��Z� e� ej� d�d� � � � r ddl�Z�d�� Z�dS d�� Z�dS )�z9Common objects shared by __init__.py and _ps*.py modules.� )�division�print_functionN)�defaultdict)� namedtuple)�AF_INET)� SOCK_DGRAM)�SOCK_STREAM)�AF_INET6)�AF_UNIX)� � r )N�FREEBSD�BSD�LINUX�NETBSD�OPENBSD�MACOS�OSX�POSIX�SUNOS�WINDOWS� CONN_CLOSE�CONN_CLOSE_WAIT�CONN_CLOSING�CONN_ESTABLISHED�CONN_FIN_WAIT1�CONN_FIN_WAIT2� CONN_LAST_ACK�CONN_LISTEN� CONN_NONE� CONN_SYN_RECV� CONN_SYN_SENT�CONN_TIME_WAIT�NIC_DUPLEX_FULL�NIC_DUPLEX_HALF�NIC_DUPLEX_UNKNOWN�STATUS_DEAD�STATUS_DISK_SLEEP�STATUS_IDLE� STATUS_LOCKED�STATUS_RUNNING�STATUS_SLEEPING�STATUS_STOPPED�STATUS_SUSPENDED�STATUS_TRACING_STOP�STATUS_WAITING�STATUS_WAKE_KILL� STATUS_WAKING� STATUS_ZOMBIE� STATUS_PARKED�ENCODING� ENCODING_ERRSr �pconn� pcputimes�pctxsw�pgids�pio�pionice� popenfile�pthread�puids�sconn� scpustats�sdiskio� sdiskpart� sdiskusage�snetio�snicaddr� snicstats�sswap�suser� conn_tmap�deprecated_method� isfile_strict�memoize�parse_environ_block�path_exists_strict� usage_percent� supports_ipv6�sockfam_to_enum�socktype_to_enum�wrap_numbers�bytes2human�conn_to_ntuple�debug�hilite�term_supports_colors�print_color�posix�nt�linux�darwin�freebsd�openbsd�netbsd)�sunos�solaris�aix�running�sleepingz disk-sleep�stoppedztracing-stop�zombie�deadz wake-kill�waking�idle�locked�waiting� suspended�parked�ESTABLISHED�SYN_SENT�SYN_RECV� FIN_WAIT1� FIN_WAIT2� TIME_WAIT�CLOSE� CLOSE_WAIT�LAST_ACK�LISTEN�CLOSING�NONE� � c � � e Zd ZdZdZdZdS )� NicDuplexr| r} r N)�__name__� __module__�__qualname__r$ r% r&