403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Python315/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python315/Lib/test/__pycache__/test_fcntl.cpython-315.pyc
R
>lqj",c��Qs]PHs]PHs]PHs]PHs]PHs]PHs]PHs]QH G	s	G
s
GsGsG
s
Gs]QH<Gs]QHDGsGsGs\Q2sQQ2sQsQsQ	Q
\O22s\Q6Xc\O82P!P!)z%Test program for the fcntl C module.
)�cpython_only�get_pagesize�is_apple�requires_subprocess�verbose�
is_emscripten)�
import_module)�TESTFN�unlink�make_bad_fd�fcntlc�.`�\sQs]snQsQsQsUsP!)�BadFilec��VmP!�N��fn)�selfrs&&�$C:\Python315\\Lib\test\test_fcntl.py�__init__�BadFile.__init__s����c��UO!rr�rs&r�fileno�BadFile.filenos���w�w�rr)�__name__�
__module__�__qualname__�__firstlineno__rr�__static_attributes__�__classdictcell__��
__classdict__s@rr
r
s������rr
c��[UQ2o[OV!2UO	2P![cKh9hSO	2h9h��wb+)�openr�lockf�BlockingIOError�close��fname�cmd�fs&& r�try_lockf_on_other_process_failr.sJ���U�E��A��
���A��	
���	���
��
��	
���	�s'�6�	A�A�A�A�A�Ac��[UQ2o[OV!2[OU[O2UO	2P!r$)r&rr'�LOCK_UNr)r*s&& r�try_lockf_on_other_processr1%s5���U�E��A�	�K�K���	�K�K��5�=�=�!��G�G�Irc�h`�\sQs]+snQsQs\Q2sQsQs	Qs
\Q2s\
O\O 2O#Q29%c\O$2Q	6H9%f\O$2Q
6HQ2Q2sQ
s\
O\O$2Q6HQ2\2Q22s\
O\O$2Q6HQ2\2Q22s\Q2s\
O\OQ6gQ2Q2s\
O6\\Q29%c
\\Q2Q2\
O\Q2Q22sQ&Qks \
O6\\Q29%c
\\Q2Q2\
O\Q2Q 22s!\
O6\\Q29%c
\\Q2Q2\
O\Q2Q!22s"\
O6\\Q"2Q#2Q$2s#Q%s$Us%P!)'�	TestFcntlc��PUmP!r�r-rs&r�setUp�TestFcntl.setUp-s	����rc��UO%c7UOO%fUOO2[[2P!r)r-�closedr)r	rrs&r�tearDown�TestFcntl.tearDown0s+���6�6�6�$�&�&�-�-�-��F�F�L�L�N��v�rc
�`�[OQo[OOQ
2%f
[%cc[OQ2]6XcQoQoLQoQo[OV*U*Q*]]][O]2oL�[OOQ2%c,[OQ]]][O]]2oLy[OQ7c-[OQ[O]]]]]]2oL8[OQU*Q*[O]]]]]2oU%c"[%c[Q	[U22U![cQoCK�h9h)�qq�ll�l�i�lxxxx�hh�gnukfreebsd�qqihhi�hhllliiz
struct.pack: )�netbsd�freebsd�openbsd)zhp-uxB�	unixware7)�os�O_LARGEFILE�AttributeError�sys�platform�
startswithr�struct�calcsize�packr�F_WRLCKr�print�repr)�	start_len�off_t�pid_t�lockdatas    r�get_lockdata�TestFcntl.get_lockdata5s<��	��N�N��I�
�L�L�#�#�$D�E�E��x����s�#�q�(����������{�{�5�=�5�#8�4�#?��A�q�#(�=�=�!�5�H�
�\�\�
$�
$�]�
3�
3��{�{�8�Q��1�e�m�m�Q��J�H�
�\�\�4�
4��{�{�9�e�m�m�Q��1�a��A�N�H��{�{�4�	�>�$�#6��
�
�q�!�Q�PQ�ST�U�H���w��o�t�H�~�6����5�	��I�	�s�F�	F-�&F-�,F-c��[[Q2Um[OUOO	2[O
[O2o[%c
[QU2UO2o[OUOO	2[OU2o[%c[Q[U22UOO2P!��wbz#Status from fcntl with O_NONBLOCK: z!String from fcntl with F_SETLKW: )r&rr-rr�F_SETFLrJ�
O_NONBLOCKrrTrZ�F_SETLKWrUr)�r�rvrYs&  r�test_fcntl_fileno�TestFcntl.test_fcntl_filenoUs����f�d�#���
�[�[�������%�-�-����
G���7��7��<��$�$�&��
�[�[�������%�.�.�(�
C���7��5�t�B�x�@������rc���[[Q2Um[OUO[O[
O2o[%c
[QU2UO2o[OUO[OU2o[%c[Q[U22UOO2P!r])
r&rr-rr_rJr`rrTrZrarUr)rbs&  r�test_fcntl_file_descriptor�$TestFcntl.test_fcntl_file_descriptoras����f�d�#���
�[�[��������
�
�
>���7��7��<��$�$�&��
�[�[��������
:���7��5�t�B�x�@������rc��UO[29^tt^2[OP[O[O
2PPP2UO[29^tt^2[O[
P2[O[O
2PPP2UO[29^tt^2[OQ[O[O
2PPP2UO[29^tt^2[O[
Q2[O[O
2PPP2P!)%fhCK09h)%fhK�9h)%fhK�9h)%fhP!9h)��spam)�assertRaises�
ValueErrorrr_rJr`r
�	TypeErrorrs&r�test_fcntl_bad_file�TestFcntl.test_fcntl_bad_filems���
�
�
�z�
*�
*��K�K��E�M�M�2�=�=�9�+�
�
�
�z�
*�
*��K�K����U�]�]�B�M�M�B�+�
�
�
�y�
)�
)��K�K���
�
�r�}�}�=�*�
�
�
�y�
)�
)��K�K��������
�
�F�*�
)�
+�
*�
*��
*�
*��
)�
)��
)�
)�
)�sG�4E:�8=F�4F!�3=F4�:F	�F	�F	�F	�!F1	�*F1	�4G	�=G	c��[Q2oUOoUOoUO[29^tt^2[
OU]*[
O[O2PPP2UO[29^tt^2[
O[U]*2[
O[O2PPP2UO[29^tt^2[
OU]*
[
O[O2PPP2UO[29^tt^2[
O[U]*
2[
O[O2PPP2P!)%fhCKE9h)%fhK�9h)%fhK�9h)%fhP!9h��	_testcapi)
r�INT_MAX�INT_MINrl�
OverflowErrorrr_rJr`r
)rrsrtrus&   r�test_fcntl_bad_file_overflow�&TestFcntl.test_fcntl_bad_file_overflowws��!�+�.�	��#�#���#�#��
�
�
�}�
-�
-��K�K��!��U�]�]�B�M�M�B�.�
�
�
�}�
-�
-��K�K���!��,�e�m�m�R�]�]�K�.�
�
�
�}�
-�
-��K�K��!��U�]�]�B�M�M�B�.�
�
�
�}�
-�
-��K�K���!��,�e�m�m�R�]�]�K�.�
-�
.�
-�
-��
-�
-��
-�
-��
-�
-�
-�sJ�;F9�"AG
�;G �+AG3�9G
	�G
	�
G	�G	� G0	�)G0	�3H	�<H	�arm�Linux�Androidz6this platform returns EINVAL for F_NOTIFY DN_MULTISHOTc��[Oo[Oo[
O[
OO[
OO[22[
O2o[OUW[O2[OV1W2[
O U2P![cSO	Q2K�h9h[c7oSO[O6XcSO	Q2gPo=hh9h[
O S2h9h)z$F_NOTIFY or DN_MULTISHOT unavailablez*F_NOTIFY not available by this environment)r�F_NOTIFY�DN_MULTISHOTrL�skipTestrJr&�path�dirname�abspathr�O_RDONLY�	DN_DELETE�OSError�errno�EINVALr))rr,�flags�fd�excs&    r�test_fcntl_64_bit�TestFcntl.test_fcntl_64_bit�s���	B��.�.�C��&�&�E��W�W�R�W�W�_�_�R�W�W�_�_�V�%<�=�r�{�{�
K��		�
����B��U�_�_�5�

�K�K���'��H�H�R�L���	B��M�M�@�A�	B���
��9�9����,��M�M�"N�O���
��
�H�H�R�L�sM� C�%C=�-E�	C:�%C:�9C:�=	D>�D>�D9�'D9�9D>�>E�Ec�8�[[Q2UmUOO2o[OU[O2[OU[O2[OUO[O[O*2[OUO[O2[OU[O2[OU[O2UO[[O
P[O2UO[[O
Q[O2P!)r%rk)
r&rr-rr�flock�LOCK_SHr0�LOCK_NB�LOCK_EXrlrmrn)rrs& r�
test_flock�TestFcntl.test_flock�s����f�e�$����������
���F�E�M�M�*�
���F�E�M�M�*�
���D�F�F�E�M�M�E�M�M�9�:�
���D�F�F�E�M�M�*�
���F�E�M�M�*�
���F�E�M�M�*����*�e�k�k�2�u�}�}�E����)�U�[�[�&�%�-�-�Hr�AIXzAIX returns PermissionErrorc��[[Q2Um[O[O
*o[O
UOU2[OQ2oUO[[U1Q5oUO2UO2[O
UO[O2UOUO]2P!�r%�spawn)�target�args)r&rr-rr�r�r'�multiprocessing�get_context�Processr.�start�joinr0�assertEqual�exitcode�rr,�mp�ps&   r�test_lockf_exclusive�TestFcntl.test_lockf_exclusive�s����f�e�$����m�m�e�m�m�+��
���D�F�F�C� �
�
(�
(��
1���J�J�=�V�S�M�J�R��	���	�	����
���D�F�F�E�M�M�*�������Q�'rc��[[Q2Um[O[O
*o[O
UOU2[OQ2oUO[[U1Q5oUO2UO2[O
UO[O2UOUO]2P!r�)r&rr-rr�r�r'r�r�r�r1r�r�r0r�r�r�s&   r�test_lockf_share�TestFcntl.test_lockf_share�s����f�e�$����m�m�e�m�m�+��
���D�F�F�C� �
�
(�
(��
1���J�J�8���}�J�M��	���	�	����
���D�F�F�E�M�M�*�������Q�'rc��[Q2oUO[[OUO
]*[O2P!rr)rrlrvrr�rtr�)rrss& r�test_flock_overflow�TestFcntl.test_flock_overflow�s6��!�+�.�	����-����i�6G�6G��6I��-�-�	)r�darwinz$F_GETPATH is only available on macosc	�V�[[Q2Um[OO[2O
Q2o[OUOO2[O[[U222oUOV2P!)r^zutf-8)
r&rr-rJr�r��encoderr�	F_GETPATH�bytes�lenr�)r�expected�ress&  r�test_fcntl_f_getpath�TestFcntl.test_fcntl_f_getpath�sd���f�d�#����7�7�?�?�6�*�1�1�'�:���k�k�$�&�&�-�-�/�5�?�?�E�#�h�-�<P�Q������'r�F_SETPIPE_SZ�F_GETPIPE_SZzAF_SETPIPE_SZ and F_GETPIPE_SZ are not available on all platforms.z'Emscripten pipefs doesn't support thesec�J�[O2vq[OU[O2oU]*o[	2oVE6c[
OQ2g[OU[OU2UO[OU[O2U2[OU2[OU2P![OS2[OS2h9h)�z+default pipesize too small to perform test.)
rJ�piperr�r�unittest�SkipTestr�r�r))r�test_pipe_r�test_pipe_w�pipesize_default�pipesize�pagesize_defaults&     r�test_fcntl_f_pipesize�TestFcntl.test_fcntl_f_pipesize�s���
$&�7�7�9� ��
	"�$�{�{�;��8J�8J�K��'�1�,�H�+�~���*��'�'�A�C�C��K�K��U�%7�%7��B����U�[�[��e�6H�6H�I�%�
'�
�H�H�[�!��H�H�[�!��
�H�H�[�!��H�H�[�!�s�<C4�A/C4�4.D"c���[[Q2Um[OQ[
O[O22oUd"UQU[U2*
**
oL[U2o[U2o[
OUO[
OU2oUOU[2UO[U2[U22UOV#2[U2OQ2Q*vqVUOU[
O2UOU[O22QU*o[
OUO[
O U2oUOU[2UO[U2[U22UOUQU*2[U2OQ2Q*vqVUOU[
O2UOU[O22[QU*2o[
OUO[
O U2oUOU[2UO[U2[U22UO[U2QU*2[U2OQ2Q*vqVUOU[
O2UOU[O22P!)r^�ii� r@:Nr�N)r&rr-rPrRr�F_OWNER_PIDrJ�getpidr�r��F_SETOWN_EX�assertIsInstancer��
memoryview�cast�F_GETOWN_EX)r�nbytes�buf�save_buf�r�type�pids&&     r�_check_fcntl_not_mutate_len�%TestFcntl._check_fcntl_not_mutate_len�sP���f�d�#����k�k�$�� 1� 1�2�9�9�;�?�����4�6�C��H�,�-�-�C���X�F���:���K�K����� 1� 1�3�7�����a��'�����Q���X��/�����'��q�M�&�&�s�+�B�/�	������u�0�0�1�����b�i�i�k�*��V�m���K�K����� 1� 1�3�7�����a��'�����Q���X��/�����d�V�m�,��q�M�&�&�s�+�B�/�	������u�0�0�1�����b�i�i�k�*�����'���K�K����� 1� 1�3�7�����a��'�����Q���X��/�����s��T�F�]�3��q�M�&�&�s�+�B�/�	������u�0�0�1�����b�i�i�k�*rr�r�z$requires F_SETOWN_EX and F_GETOWN_EXz)Emscripten doesn't actually support thesec�(�UO2P!r�r�rs&r�test_fcntl_small_buffer�!TestFcntl.test_fcntl_small_buffers��
	
�(�(�*rc�*�UOQ2P!)i�r�rs&r�test_fcntl_large_buffer�!TestFcntl.test_fcntl_large_buffers��
	
�(�(��.r�F_DUPFDzneed fcntl.F_DUPFDc�R�[2oUO[29^tt^2[OU[O]2PPP2UO[29^tt^2[OU[OQ2PPP2UO[29^tt^2[OU[OQ2PPP2P!)%fhK�9h)%fhKp9h)%fhP!9h)�s
s)r
rlr�rr�)rr�s& r�test_bad_fd�TestFcntl.test_bad_fds����]��
�
�
�w�
'�
'��K�K��E�M�M�1�-�(�
�
�
�w�
'�
'��K�K��E�M�M�:�6�(�
�
�
�w�
'�
'��K�K��E�M�M�<�8�(�
'�	(�
'��
'�
'��
'�
'�
'�s5�&C/�4&D�?&D�/C?	�8C?	�D	�D	�D&	�D&	r5r)&rrrrr6r:�staticmethodrZrdrgrorrwr��skipIfrN�machinerO�systemr�r�rr�r�r�rMr��
skipUnless�hasattrrrr�r�r�r�r�rr r!s@rr3r3+s�������
����>
�
�G��L��L��_�_�	�	�	�	�	&�	&�u�	-�	N�	N�(�/�/�2C�w�2N�	*�	*��?�?��	�)�@�B��	B��*I��_�_�X�_�_�&�%�/�1N�O���	(��P�	(��_�_�X�_�_�&�%�/�1N�O���	(��P�	(��)��)�
�_�_�S�\�\�X�-�/U�V�(�W�(������~�&�I�I�7�5�.�+I�K�M��_�_�]�$M�N�"�O�M�"�" +�D�����}�%�G�G�'�%��*G�.�0��_�_�]�$O�P�+�Q�0�+������}�%�G�G�'�%��*G�.�0��_�_�]�$O�P�/�Q�0�/������	�2�4H�I�9�J�9rr3�__main__)�__doc__r�r�rNrJrPrMr��test.supportrrrrrr�test.support.import_helperr�test.support.os_helperrr	r
rr
r.r1�TestCaser3r�main�rr�<module>r�s�������	�
�
����5�>�>�	�g�������w9��!�!�w9�t�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit