Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
3
u1‘WÃ ã @ sÎ d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlZddlZddlm Z ddl
mZ dd l
mZ dd
l
m
Z
ddlmZ eedd
ƒZdd„ Zdd„ Zdd„ Zeƒ Zdd„ Zdd„ ZG dd„ deƒZdS )a#
pyudev._os.pipe
===============
Fallback implementations for pipe.
1. pipe2 from python os module
2. pipe2 from libc
3. pipe from python os module
The Pipe class wraps the chosen implementation.
.. moduleauthor:: Sebastian Wiesner
é )Úabsolute_import)Údivision)Úprint_function)Úunicode_literalsN)Úpartial)Úfd_pair)ÚERROR_CHECKERS)Ú
SIGNATURES)Úload_ctypes_libraryÚ O_CLOEXECi c C s" t ƒ }| j||ƒ |d |d fS )zèA ``pipe2`` implementation using ``pipe2`` from ctypes.
``libc`` is a :class:`ctypes.CDLL` object for libc. ``flags`` is an
integer providing the flags to ``pipe2``.
Return a pair of file descriptors ``(r, w)``.
r é )r Úpipe2)ÚlibcÚflagsÚfds© r ú/usr/lib/python3.6/pipe.pyÚ
_pipe2_ctypes4 s r c C sX t jƒ }| t j@ dkr0x|D ]}t|t jƒ qW | t@ dkrTx|D ]}t|tƒ qBW |S )zæA ``pipe2`` implementation using :func:`os.pipe`.
``flags`` is an integer providing the flags to ``pipe2``.
.. warning::
This implementation is not atomic!
Return a pair of file descriptors ``(r, w)``.
r )ÚosÚpipeÚ
O_NONBLOCKÚset_fd_status_flagr Úset_fd_flag)r r Úfdr r r Ú_pipe2_by_pipeB s
r c C sN t tdƒrtjS y$tdttƒ} t | dƒr2tt| ƒS tS t k
rH tS X dS )z]Find the appropriate implementation for ``pipe2``.
Return a function implementing ``pipe2``.r
r N)
Úhasattrr r
r
r r r r r ÚImportError)r r r r Ú_get_pipe2_implementationX s
r c C s( t j | t jdƒ}t j | t j||B ƒ dS )zwSet a flag on a file descriptor.
``fd`` is the file descriptor or file object, ``flag`` the flag as integer.
r N)ÚfcntlZF_GETFDZF_SETFD)r Úflagr r r r r k s r c C s( t j | t jdƒ}t j | t j||B ƒ dS )z~Set a status flag on a file descriptor.
``fd`` is the file descriptor or file object, ``flag`` the flag as integer.
r N)r ZF_GETFLZF_SETFL)r r r r r r r u s r c @ s, e Zd ZdZedd„ ƒZdd„ Zdd„ ZdS ) ÚPipezïA unix pipe.
A pipe object provides two file objects: :attr:`source` is a readable file
object, and :attr:`sink` a writeable. Bytes written to :attr:`sink` appear
at :attr:`source`.
Open a pipe with :meth:`open()`.
c C s t tjtB ƒ\}}| ||ƒS )zLOpen and return a new :class:`Pipe`.
The pipe uses non-blocking IO.)Ú_PIPE2r r r )ÚclsÚsourceÚsinkr r r ÚopenŠ s z Pipe.openc C s$ t j|ddƒ| _t j|ddƒ| _dS )zÉCreate a new pipe object from the given file descriptors.
``source_fd`` is a file descriptor for the readable side of the pipe,
``sink_fd`` is a file descriptor for the writeable side.Úrbr ÚwbN)r Úfdopenr# r$ )ÚselfZ source_fdZsink_fdr r r Ú__init__’ s z
Pipe.__init__c
C s z| j jƒ W d| jjƒ X dS )zCloses both sides of the pipe.N)r# Úcloser$ )r) r r r r+ š s z
Pipe.closeN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úclassmethodr% r* r+ r r r r r s r )r/ Z
__future__r r r r r r Ú functoolsr Zpyudev._ctypeslib.libcr r r Zpyudev._ctypeslib.utilsr
Úgetattrr r r r r! r r Úobjectr r r r r Ú s&