File: //lib/python3.12/__pycache__/_aix_support.cpython-312.pyc
�
    )!�h�  �                   �D   � d Z ddlZddlZd
d�Zd� Zd� Zd� Zd� Zd� Zd	� Z	y)zShared AIX support functions.�    Nc                 �.  � ddl }ddl}t        d|j                  �       ��d�      }|j	                  |�      5 }|r| �d|j
                  �d�}n| �d|j
                  �d�}|j
                  |�      s|j                  �       ndcddd�       S # 1 sw Y   yxY w)	z0Output from successful command execution or Noner   Nz/tmp/_aix_support.zw+bz >'z' 2>&1z 2>/dev/null >'�')�os�
contextlib�open�getpid�closing�name�system�read)�
commandstring�capture_stderrr   r   �fp�cmds         �#/usr/lib/python3.12/_aix_support.py�_read_cmd_outputr      s�   � �
 ��	
�
�	�	����
�B� 
�	�	�B�	� 9�2��%2�B�G�G�<�C�,9�2�7�7�C�C� "�	�	�#��r�w�w�y�D�9� 9� 9�s   �A
B�Bc                 �~   � t         j                  dk(  rdnd}|dk7  r|nd}dj                  | d   | d   | d   ||�      S )	Ni����    �@   r   �'