Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /lib64/python3.9/asyncio/__pycache__/
Dosya Yükle :
Şuanki Dosya : //lib64/python3.9/asyncio/__pycache__/windows_utils.cpython-39.opt-1.pyc

a

�DOg��@s�dZddlZejdkred��ddlZddlZddlZddlZddlZddl	Z	ddl
Z
dZdZej
Z
ejZe��Zdded	�d
d�ZGdd
�d
�ZGdd�dej�ZdS)z)Various Windows specific bits and pieces.�N�win32z
win32 only)�pipe�Popen�PIPE�
PipeHandlei F)TT)�duplex�
overlapped�bufsizec
Cs$tjd�t��tt��d�}|r>tj}tj	tj
B}||}}ntj}tj
}d|}}|tjO}|drp|tj
O}|dr�tj
}nd}d}	}
z\t�||tjd||tjtj�}	t�||dtjtj|tj�}
tj|	dd�}|�d�|	|
fWS|	du�rt�|	�|
du�rt�|
��Yn0dS)zELike os.pipe() but with overlapped support and using handles not fds.z\\.\pipe\python-pipe-{:d}-{:d}-)�prefixr�NT�r)�tempfile�mktemp�format�os�getpid�next�
_mmap_counter�_winapiZPIPE_ACCESS_DUPLEXZGENERIC_READZ
GENERIC_WRITEZPIPE_ACCESS_INBOUNDZFILE_FLAG_FIRST_PIPE_INSTANCEZFILE_FLAG_OVERLAPPEDZCreateNamedPipeZ	PIPE_WAITZNMPWAIT_WAIT_FOREVERZNULLZ
CreateFileZ
OPEN_EXISTINGZConnectNamedPipeZGetOverlappedResult�CloseHandle)rrr	�addressZopenmode�accessZobsizeZibsizeZflags_and_attribsZh1Zh2Zov�r�-/usr/lib64/python3.9/asyncio/windows_utils.pyr sJ��


��





rc@sbeZdZdZdd�Zdd�Zedd��Zdd	�Ze	j
d
�dd�Zej
fd
d�Zdd�Zdd�ZdS)rz�Wrapper for an overlapped pipe handle which is vaguely file-object like.

    The IOCP event loop can use these instead of socket objects.
    cCs
||_dS�N��_handle��self�handlerrr�__init__VszPipeHandle.__init__cCs2|jdurd|j��}nd}d|jj�d|�d�S)Nzhandle=�closed�<� �>)r�	__class__�__name__rrrr�__repr__Ys
zPipeHandle.__repr__cCs|jSrr�rrrrr`szPipeHandle.handlecCs|jdurtd��|jS)NzI/O operation on closed pipe)r�
ValueErrorr(rrr�filenods
zPipeHandle.fileno)rcCs|jdur||j�d|_dSrr)rrrrr�closeis

zPipeHandle.closecCs*|jdur&|d|��t|d�|��dS)Nz	unclosed )�source)r�ResourceWarningr+)r�_warnrrr�__del__ns
zPipeHandle.__del__cCs|Srrr(rrr�	__enter__sszPipeHandle.__enter__cCs|��dSr)r+)r�t�v�tbrrr�__exit__vszPipeHandle.__exit__N)r&�
__module__�__qualname__�__doc__r r'�propertyrr*rrr+�warnings�warnr/r0r4rrrrrQs
rcs"eZdZdZd�fdd�	Z�ZS)rz�Replacement for subprocess.Popen using overlapped pipe handles.

    The stdin, stdout, stderr are None or instances of PipeHandle.
    Nc	s�d}}}d}	}
}|tkr@tddd�\}}	t�|tj�}n|}|tkrhtdd�\}
}
t�|
d�}n|}|tkr�tdd�\}}t�|d�}n|tkr�|}n|}z�z t�j|f|||d�|��Wn0|	|
|fD]}|dur�t	�
|�qւYn>0|	du�r
t|	�|_|
du�rt|
�|_
|du�r2t|�|_W|tk�rHt�|�|tk�r\t�|�|tk�r�t�|�n>|tk�r�t�|�|tk�r�t�|�|tk�r�t�|�0dS)N)FTT)rr)TFrr)�stdin�stdout�stderr)rr�msvcrt�open_osfhandler�O_RDONLY�STDOUT�superr rrrr;r<r=r+)r�argsr;r<r=�kwdsZ	stdin_rfdZ
stdout_wfdZ
stderr_wfdZstdin_whZ	stdout_rhZ	stderr_rhZstdin_rhZ	stdout_whZ	stderr_wh�h�r%rrr �sZ��










�




zPopen.__init__)NNN)r&r5r6r7r �
__classcell__rrrFrr}sr)r7�sys�platform�ImportErrorr�	itertoolsr>r�
subprocessr
r9�__all__�BUFSIZErrA�countrrrrrrrr�<module>s$
1,

EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4