HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /proc/1991109/cwd/usr/lib/python3/dist-packages/gyp/__pycache__/
Upload File :
Current File : //proc/1991109/cwd/usr/lib/python3/dist-packages/gyp/__pycache__/flock_tool.cpython-311.pyc
�

�"Kb����dZddlZddlZddlZddlZddlZd�ZGd�de��Ze	dkr(ej
eejdd�����dSdS)z�These functions are executed via gyp-flock-tool when using the Makefile
generator.  Used on systems that don't have a built-in flock.�Nc�L�t��}|�|��dS)N)�	FlockTool�Dispatch)�args�executors  �0/usr/lib/python3/dist-packages/gyp/flock_tool.py�mainr	s%��
�[�[�(�
���D������c�$�eZdZdZd�Zd�Zd�ZdS)rz(This class emulates the 'flock' command.c��t|��dkrtd���d|�|d��z}t||��|dd��dS)z(Dispatches a string command to a method.�zNot enough argumentszExec%srN)�len�	Exception�_CommandifyName�getattr)�selfr�methods   rrzFlockTool.Dispatchsa��
�4�y�y�1�}�}��,�-�-�-�
��,�,�T�!�W�5�5�
5�F��G�D�&���4����8�$�$�$�$r
c�R�|����dd��S)z<Transforms a tool name like copy-info-plist to CopyInfoPlist�-�)�title�replace)r�name_strings  rrzFlockTool._CommandifyNames$�������&�&�s�B�/�/�/r
c
��tj|tjtjztjzd��}t
j�d��r&tj	dtjdddddd��}n%tj	dtjdddddd��}tj
|tj|��tj|��S)z5Emulates the most basic behavior of Linux's flock(1).i��aix�hhIllqqr�hhllhhl)�os�open�O_WRONLY�O_NOCTTY�O_CREAT�sys�platform�
startswith�struct�pack�fcntl�F_WRLCK�F_SETLK�
subprocess�call)r�lockfile�cmd_list�fd�ops     r�	ExecFlockzFlockTool.ExecFlock#s���
���2�;�r�{�2�2�:�=�u�	E�	E�B�
�|���u�%�%�C��;�y�%�-��A�q�!�Q��B�B�b�b��;�y�%�-��A�q�!�Q��B�B�b�	�K��E�M�2�&�&�&��?�8�$�$�$r
N)�__name__�
__module__�__qualname__�__doc__rrr1�r
rrrsG������0�0�%�%�%�0�0�0�%�%�%�%�%r
r�__main__r
)r5r(rr&r+r#r	�objectrr2�exit�argvr6r
r�<module>r;s���A�A�
����	�	�	�	�
�
�
�
�����
�
�
�
����
%�%�%�%�%��%�%�%�@�z���
�#�(�4�4���������������r