B
    v9aC  ã               @   sü   d Z ddlZddlZddlZddlZedkrøg Zeejƒdkrjye 	d¡Z
W n   dZ
Y nX ede
ƒZneeejdd… ƒZxdeD ]\Zye e¡ZW n2 ek
rÈ Z zejejkr¶w„‚ W ddZ[X Y nX e ej¡s„e e¡ q„W ed eeeƒ¡ƒ dS )zÎWhen called as a script, print a comma-separated list of the open
file descriptors on stdout.

Usage:
fd_stats.py: check all file descriptors
fd_status.py fd1 fd2 ...: check only specified file descriptors
é    NÚ__main__é   ÚSC_OPEN_MAXé   ú,)Ú__doc__ÚerrnoÚosÚstatÚsysÚ__name__ZfdsÚlenÚargvÚsysconfZ_MAXFDÚrangeZtest_fdsÚmapÚintÚfdÚfstatÚstÚOSErrorÚeZEBADFÚS_ISDOORÚst_modeÚappendÚprintÚjoinÚstr© r   r   ú/usr/lib/python3.7/fd_status.pyÚ<module>   s.   

