One Hat Cyber Team
Your IP :
10.30.1.1
Server IP :
103.148.201.5
Server :
Linux web-olt 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
Server Software :
Apache/2.4.52 (Ubuntu)
PHP Version :
8.1.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
gyp
/
__pycache__
/
View File Name :
flock_tool.cpython-310.pyc
o p.a� � @ sl d Z ddlZddlZddlZddlZddlZdd� ZG dd� de�Ze dkr4e� eejdd� �� dS dS ) 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 C s t � }|�| � d S )N)� FlockTool�Dispatch)�args�executor� r �0/usr/lib/python3/dist-packages/gyp/flock_tool.py�main s r c @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) r z(This class emulates the 'flock' command.c C s@ t |�dk r td��d| �|d � }t| |�|dd� � dS )z(Dispatches a string command to a method.� zNot enough argumentszExec%sr N)�len� Exception�_CommandifyName�getattr)�selfr �methodr r r r s zFlockTool.Dispatchc C s |� � �dd�S )z<Transforms a tool name like copy-info-plist to CopyInfoPlist�-� )�title�replace)r �name_stringr r r r s zFlockTool._CommandifyNamec G sx t �|t jt jB t jB d�}tj�d�r"t� dt jdddddd�}n t� dt jdddddd�}t � |t j|� t �|�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�opr r r � ExecFlock# s zFlockTool.ExecFlockN)�__name__� __module__�__qualname__�__doc__r r r+ r r r r r s r �__main__r )r/ r"