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 :  /Python313/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python313/Lib/test/__pycache__/test_fcntl.cpython-313.opt-2.pyc
�

��iN#���SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKJrJ	r	J
r
JrJr SSK
Jr SSKJrJrJr \"S5r"SS5rSrS	r"S
S\R.5r\S:Xa\R4"5 gg)
�N)�cpython_only�get_pagesize�is_apple�requires_subprocess�verbose)�
import_module)�TESTFN�unlink�make_bad_fd�fcntlc� �\rSrSrSrSrSrg)�BadFile�c��Xlg�N��fn)�selfrs  �$C:\Python313\\Lib\test\test_fcntl.py�__init__�BadFile.__init__s����c��UR$rr�rs r�fileno�BadFile.filenos���w�w�rrN)�__name__�
__module__�__qualname__�__firstlineno__rr�__static_attributes__�rrrrs���rrc��[US5n[RX!5 UR	5 g![a Nf=f!UR	5 f=f�N�wb+)�openr�lockf�BlockingIOError�close��fname�cmd�fs   r�try_lockf_on_other_process_failr.sJ���U�E��A��
���A��	
���	���
��
��	
���	�s �4�
A�A�A�A�Ac��[US5n[RX!5 [RU[R5 UR	5 gr$)r&rr'�LOCK_UNr)r*s   r�try_lockf_on_other_processr1%s5���U�E��A�	�K�K���	�K�K��5�=�=�!��G�G�Irc��\rSrSrSrSr\S5rSrSr	Sr
\S5r\
R"\R "5R#S	5=(a \R$"5S
:H=(d \R$"5S:HS5S
5rSr\
R"\R$"5S:HS5\"5S55r\
R"\R$"5S:HS5\"5S55r\S5r\
R"\RS:gS5S5r\
R6"\"\S5=(a	 \"\S5S5S5r\
R6"\"\S5S5S5rSr g) �	TestFcntl�+c��SUlgr�r-rs r�setUp�TestFcntl.setUp-s	����rc��UR(a5URR(dURR5 [[5 gr)r-�closedr)r
r	rs r�tearDown�TestFcntl.tearDown0s'���6�6�$�&�&�-�-��F�F�L�L�N��v�rc
�&�[R Sn[RRS5(d[(aU[R"S5S:XaSnSnOSnSn[R"X-U-S-S	S	S	[RS	5nO�[RRS
5(a+[R"SS	S	S	[RS	S	5nOp[RS;a,[R"S
[RS	S	S	S	S	S	5nO0[R"SU-S-[RS	S	S	S	S	5nU(a [(a[S[U55 U$![a SnGN{f=f)N�qq�ll)�netbsd�freebsd�openbsd�l��i�lxxxx�hhr�gnukfreebsd�qqihhi)zhp-uxB�	unixware7�hhllliiz
struct.pack: )�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�Fc��[[S5Ul[RURR	5[R
[R5n[(a[SU5 UR5n[RURR	5[RU5n[(a[S[U55 URR5 g�N�wbz#Status from fcntl with O_NONBLOCK: z!String from fcntl with F_SETLKW: )r&r	r-rr�F_SETFLrL�
O_NONBLOCKrrVr\�F_SETLKWrWr)�r�rvr[s   r�test_fcntl_fileno�TestFcntl.test_fcntl_filenoUs����f�d�#���
�[�[�������%�-�-����
G���7��7��<��$�$�&��
�[�[�������%�.�.�(�
C���7��5�t�B�x�@������rc���[[S5Ul[RUR[R[
R5n[(a[SU5 UR5n[RUR[RU5n[(a[S[U55 URR5 gr_)
r&r	r-rrarLrbrrVr\rcrWr)rds   r�test_fcntl_file_descriptor�$TestFcntl.test_fcntl_file_descriptoras����f�d�#���
�[�[��������
�
�
>���7��7��<��$�$�&��
�[�[��������
:���7��5�t�B�x�@������rc�:�UR[5 [RS[R[R
5 SSS5 UR[5 [R[
S5[R[R
5 SSS5 UR[5 [RS[R[R
5 SSS5 UR[5 [R[
S5[R[R
5 SSS5 g!,(df   GN=f!,(df   N�=f!,(df   N�=f!,(df   g=f)N����spam)�assertRaises�
ValueErrorrrarLrbr�	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�*�
)�
+�
*��
*�
*��
)�
)��
)�
)�s/�4E�'=E*�4E;�=F�
E'�*
E8�;
F	�
Fc��[S5nURnURnUR[5 [
RUS-[
R[R5 SSS5 UR[5 [
R[US-5[
R[R5 SSS5 UR[5 [
RUS-
[
R[R5 SSS5 UR[5 [
R[US-
5[
R[R5 SSS5 g!,(df   GN=f!,(df   N�=f!,(df   N�=f!,(df   g=f�N�	_testcapi�)
r�INT_MAX�INT_MINrn�
OverflowErrorrrarLrbr)rrurwrxs    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�.�
-�
.�
-��
-�
-��
-�
-��
-�
-�s1�7F�
AF�*7F*�>AF;�
F�
F'�*
F8�;
G	�arm�Linux�Androidz6this platform returns EINVAL for F_NOTIFY DN_MULTISHOTc��[Rn[Rn[
R"[
RR[
RR[55[
R5n[RUW[R5 [RUWW5 [
R "U5 g![a UR	S5 N�f=f![a9nUR[R:XaUR	S5 SnAN�SnAff=f![
R "U5 f=f)Nz$F_NOTIFY or DN_MULTISHOT unavailablez*F_NOTIFY not available by this environment)r�F_NOTIFY�DN_MULTISHOTrN�skipTestrLr&�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��	�
P����B��U�_�_�5�
�K�K��C��'��H�H�R�L���	B��M�M�@�A�	B���
P��9�9����,��M�M�"N�O���
P��

�H�H�R�L�sA� C�%C;�,E�C8�7C8�;
D>�/D9�4E�9D>�>E�Ec�,�[[S5UlURR5n[RU[R5 [RU[R5 [RUR[R[R-5 [RUR[R5 [RU[R5 [RU[R5 UR[[R
S[R5 UR[[R
S[R5 g)Nr%rlrm)
r&r	r-rr�flock�LOCK_SHr0�LOCK_NB�LOCK_EXrnrorp)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���[[S5Ul[R[R
-n[R
URU5 [R"S5nUR[[U4S9nUR5 UR5 [R
UR[R5 URURS5 g�Nr%�spawn)�target�argsr)r&r	r-rr�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���[[S5Ul[R[R
-n[R
URU5 [R"S5nUR[[U4S9nUR5 UR5 [R
UR[R5 URURS5 gr�)r&r	r-rr�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��[S5nUR[[RUR
S-[R5 grt)rrnryrr�rwr�)rrus  r�test_flock_overflow�TestFcntl.test_flock_overflow�s6��!�+�.�	����-����i�6G�6G��6I��-�-�	)r�darwinz$F_GETPATH is only available on macosc	�R�[[S5Ul[RR[5R
S5n[RURR5[R[[U555nURX5 g)Nr`zutf-8)
r&r	r-rLr�r��encoderr�	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.c�<�[R"5up[RU[R5nUS-n[	5nXE:a[
R"S5e[RU[RU5 UR[RU[R5U5 [R"U5 [R"U5 g![R"U5 [R"U5 f=f)N�z+default pipesize too small to perform test.)
rL�piperr�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�B'C-�-.D�F_DUPFDzneed fcntl.F_DUPFDc�h�[5nUR[5 [RU[RS5 SSS5 UR[5 [RU[RS5 SSS5 g!,(df   NR=f!,(df   g=f)Nrs)rrnr�rr�)rr�s  r�test_bad_fd�TestFcntl.test_bad_fd�sl���]��
�
�
�w�
'��K�K��E�M�M�1�-�(�
�
�
�w�
'��K�K��E�M�M�<�8�(�
'�(�
'��
'�
'�s�&B�#&B#�
B �#
B1r6N)!rrrr r7r;�staticmethodr\rfrirqrrzr��skipIfrP�machinerQ�systemr�r�rr�r�r�rOr��
skipUnless�hasattrrr�r�r!r"rrr3r3+s�����
����>
�
�G��L��L��_�_�	�	�	�	�	&�	&�u�	-�	N�(�/�/�2C�w�2N�	*��?�?��	�)�@�B��	B��(I��_�_�X�_�_�&�%�/�1N�O���	(��P�	(��_�_�X�_�_�&�%�/�1N�O���	(��P�	(��)��)�
�_�_�S�\�\�X�-�/U�V�(�W�(������~�&�I�7�5�.�+I�K�M�"�M�"�"�����	�2�4H�I�9�J�9rr3�__main__)r�r�rPrLrRrOr��test.supportrrrrr�test.support.import_helperr�test.support.os_helperr	r
rrrr.r1�TestCaser3r�mainr"rr�<module>r�s~��
���	�
�
����5�>�>�	�g�������C9��!�!�C9�L�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit