�
Ϫ�f� � � � d Z ddlZddlZ ddlZeZddlmZmZ d� Z d� Z
e�d� xZZnd� Zd� Zd � Z
d
� Zg d�Zy# e$ r dZY �0w xY w)z<
Utility functions for dealing with POSIX file descriptors.
� N)�CONNECTION_DONE�CONNECTION_LOSTc � � t j | t j � }|t j z }t j | t j |� y)zP
Set the file description of the given file descriptor to non-blocking.
N��fcntl�F_GETFL�os�
O_NONBLOCK�F_SETFL��fd�flagss �8/usr/lib/python3/dist-packages/twisted/internet/fdesc.py�setNonBlockingr s: � �
�K�K��E�M�M�*�E��B�M�M�!�E� �K�K��E�M�M�5�)� c � � t j | t j � }|t j z }t j | t j |� y)zL
Set the file description of the given file descriptor to blocking.
Nr r s r �setBlockingr ! s< |