python (3.11.7)
    e                     L   d dl Z d dlZd dlmZ d dlmZ d dlZd dlZ ed          Z ed          Z	 ee	d           	  e
dd          Ze5  e                    ee	j
        d	          Zddd           n# 1 swxY w Y    ej        d
e          d          Ze ej                     ej        d           fvr ej        d          [[[n# e$ r  ej        d          w xY w	 d dlZn
# e$ r dZY nw xY w G d
 dej                  Zedk    r ej                     dS dS )    N)
get_attribute)
import_modulefcntltermios	TIOCGPGRP/dev/ttyrb    izBNeither the process group nor the session are attached to /dev/ttyzUnable to open /dev/ttyc                   4    e Zd Zd ZddZd Zd Zd Zd ZdS )	
IoctlTestsc                 T   t          j                    t          j        d          f}t          dd          5 }t                              |t          j        d          }t          j	        d|          d         }| 
                    ||           d d d            d S # 1 swxY w Y   d S )Nr   r   r	   r
   r   )osgetpgrpgetsidopenr   ioctlr   r   structunpackassertIn)selfidsttyrrpgrps        C/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/test/test_ioctl.py
test_ioctlzIoctlTests.test_ioctl   s     z||RYq\\*
*d
#
# 	&sC!2F;;AM#q))!,EMM%%%%	&