관리-도구
편집 파일: _common.cpython-38.pyc
U �Mg+t � R @ s� d Z ddlmZ ddlmZ ddlZddlZddlZddlZddlZddl Z ddl Z ddlZddlZddl Z ddlmZ ddl mZ ddl mZ ddl mZ zdd l mZ W n ek r� dZY nX zdd l mZ W n ek r� dZY nX ejd dkZe�rddlZndZee�d��Ze� Zd ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFdGdHdIdJdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYdZd[d\d]d^gRZejd_kZejd`kZ ej!�"da�Z#ej!�"db�Z$e$Z%ej!�"dc�Z&ej!�"dd�Z'ej!�"de�Z(e&�p0e'�p0e(Z)ej!�"df�Z*ej!�"dg�Z+dhZ,diZ-djZ.dkZ/dlZ0dmZ1dnZ2doZ3dpZ4dqZ5drZ6dsZ7dtZ8duZ9dvZ:dwZ;dxZ<dyZ=dzZ>d{Z?d|Z@d}ZAd~ZBdZCd�ZDd�ZEedk�r�d�ZFd�ZGdZHn G d�d�� d�ejI�ZJeK� �LeJjM� edk�r�d�ZNd�ZOn G d�d�� d�ejI�ZPeK� �LePjM� e�Q� ZRe�s2d�ZSn2ze�T� ZSW n$ eUk �rb e�rZd�nd�ZSY nX edHd�d�d�d�d�d�g�ZVedDd�d�d�d�g�ZWedBd�d�d�d�d�d�g�ZXedCd�d�d�d�g�ZYedEd�d�d�d�d�d�d�d�g�ZZedId�d�d�d�d�g�Z[ed@d�d�d�d�d�d�d�g�Z\edFd�d�d�d�d�g�Z]edGd�d�d�d�d�g�Z^edAd�d�d�d�g�Z_ed�d�d�d�g�Z`ed�d�d�d�d�g�Zaed�d�d�d�g�Zbed�d�d�g�Zced8d�d�d�d�g�Zded=d�d�g�Zeed>d�d�d�g�Zfed?d�d�d�g�Zged:d�d�d�g�Zhed;d�d�d�d�g�Zied<d�d�g�Zjed9d�d�g�Zked7d�d�d�d�d�d�g�Zled�d�d�g�ZmeeegeegfeegegfegegfeegegfegegfeegeegfegeegfegeegfdڜZnedk �r�en�Legegfegegfdۜ� edk �r�en�Ld�egeegfi� G d�dބ d�eo�ZpG d�d� d�ep�ZqG d�d� d�eq�ZrG d�d� d�ep�ZsG d�d� d�ep�Zte�rJeuevew��r6evd� Zxn eyevd�Zxexd� nd�d� Zz�dd�dP�Z{d�dM� Z|d�d� Z}d�dL� Z~d�dO� Ze|d�dQ� �Z�d�dN� Z�d�dR� Z�d�dS� Z��dd�dZ�Z�d�dK� Z�G d�d�� d��Z�d�dT� Z�e�� Z�e�j�e�_�e�j�e�_�d�Z�d�dV� Z�d�dU� Z�ee�fd�dW�Z�efd�dX�Z��d �d dY�Z��d�d� Z�e�r>�d�d� Z�n�d�d� Z�e|ej�f�dd]��Z��d�dd\�Z�d�dej�f�d d^�Z��d d[� Z�dS ( z9Common objects shared by __init__.py and _ps*.py modules.� )�division)�print_functionN)� namedtuple)�AF_INET)� SOCK_DGRAM)�SOCK_STREAM)�AF_INET6)�AF_UNIX� �PSUTIL_DEBUG�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� open_text�open_binary�cat�bcat�bytes2human�conn_to_ntuple�debug�hilite�term_supports_colors�print_color�posix�nt�linux�darwin)�freebsdZmidnightbsd�openbsd�netbsd)�sunos�solaris�aix�running�sleepingz disk-sleep�stoppedztracing-stop�zombieZdeadz wake-killZwakingZidle�lockedZwaitingZ suspendedZparkedZESTABLISHEDZSYN_SENTZSYN_RECVZ FIN_WAIT1Z FIN_WAIT2Z TIME_WAITZCLOSEZ CLOSE_WAITZLAST_ACKZLISTENZCLOSING�NONE� � c @ s e Zd ZdZdZdZdS )� NicDuplexrm rn r N)�__name__� __module__�__qualname__r"