shell bypass 403
�
?��cc @ s� d Z d d l Z d d l Z d d l Z d d l Z d d l m Z m Z m Z m Z m
Z
m Z e
d � Z d � Z
e
� Z d d d � � YZ d e j f d � � YZ d
� Z e d k r� e � n d S(
s] Test program for the fcntl C module.
OS/2+EMX doesn't support the file locking operations.
i����N( t verboset TESTFNt unlinkt run_unittestt
import_modulet cpython_onlyt fcntlc C si t j j d � r d } n+ y t j Wn t k
r? d } n Xd } t j j d � sg t j d k r� t j d � d
k r� d } d } n d } d } t j | | | d
d d d t j
d � } n} t j d k r t j d t j
d d d d d d � } nD t j d k rd } n, t j d
| d
t j
d d d d d � } | ret red Gt
| � GHqen | S( Nt atheost qqt llt netbsdt freebsdt openbsdt bsdost darwint li t it lxxxxt hhi t aix3t aix4s hp-uxBt unixware7t hhllliit os2emxs
struct.pack: ( R
R R R
( R R s hp-uxBR ( R ( t syst platformt
startswitht ost O_LARGEFILEt AttributeErrort structt calcsizet packR t F_WRLCKt NoneR t repr( t start_lent off_tt pid_tt lockdata( ( s6 /usr/local/python-2.7/lib/python2.7/test/test_fcntl.pyt get_lockdata s2
* ,t BadFilec B s e Z d � Z d � Z RS( c C s
| | _ d S( N( t fn( t selfR* ( ( s6 /usr/local/python-2.7/lib/python2.7/test/test_fcntl.pyt __init__7 s c C s | j S( N( R* ( R+ ( ( s6 /usr/local/python-2.7/lib/python2.7/test/test_fcntl.pyt fileno9 s ( t __name__t
__module__R, R- ( ( ( s6 /usr/local/python-2.7/lib/python2.7/test/test_fcntl.pyR) 6 s t TestFcntlc B sM e Z d � Z d � Z d � Z d � Z d � Z e d � � Z d � Z RS( c C s
d | _ d S( N( R"