Sindbad~EG File Manager
a
��gC � @ s d Z ddlZddlZddlZddlZedk�rg Zeej�dkrlze� d�Z
W n dZ
Y n0 ede
�Zne
eejdd� �ZeD ]hZze�e�ZW n> ey� Z z&ejejkr�W Y dZ[q�� W Y dZ[n
dZ[0 0 e�ej�s�e�e� q�ed�e
ee��� dS )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__�fds�len�argv�sysconfZ_MAXFD�rangeZtest_fds�map�int�fd�fstat�st�OSError�e�EBADF�S_ISDOOR�st_mode�append�print�join�str� r r �9/usr/local/lib/python3.9/test/subprocessdata/fd_status.py�<module> s.
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists