Current Path: > > usr > lib64 > python2.7 > Demo > > > pdist
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
FSProxy.py | File | 7828 bytes | April 19 2020 21:13:39. | |
FSProxy.pyc | File | 12795 bytes | April 10 2024 04:58:46. | |
FSProxy.pyo | File | 12795 bytes | April 10 2024 04:58:46. | |
RCSProxy.py | File | 4723 bytes | April 10 2024 04:57:37. | |
RCSProxy.pyc | File | 7751 bytes | April 10 2024 04:58:46. | |
RCSProxy.pyo | File | 7751 bytes | April 10 2024 04:58:46. | |
README | File | 4264 bytes | April 19 2020 21:13:39. | |
client.py | File | 4708 bytes | April 19 2020 21:13:39. | |
client.pyc | File | 6724 bytes | April 10 2024 04:58:46. | |
client.pyo | File | 6724 bytes | April 10 2024 04:58:46. | |
cmdfw.py | File | 4641 bytes | April 19 2020 21:13:39. | |
cmdfw.pyc | File | 5239 bytes | April 10 2024 04:58:46. | |
cmdfw.pyo | File | 5239 bytes | April 10 2024 04:58:46. | |
cmptree.py | File | 5778 bytes | April 19 2020 21:13:39. | |
cmptree.pyc | File | 6123 bytes | April 10 2024 04:58:46. | |
cmptree.pyo | File | 6123 bytes | April 10 2024 04:58:46. | |
cvslib.py | File | 10175 bytes | April 19 2020 21:13:39. | |
cvslib.pyc | File | 13140 bytes | April 10 2024 04:58:46. | |
cvslib.pyo | File | 13140 bytes | April 10 2024 04:58:46. | |
cvslock.py | File | 6771 bytes | April 19 2020 21:13:39. | |
cvslock.pyc | File | 8560 bytes | April 10 2024 04:58:46. | |
cvslock.pyo | File | 8560 bytes | April 10 2024 04:58:46. | |
mac.py | File | 352 bytes | April 19 2020 21:13:39. | |
mac.pyc | File | 598 bytes | April 10 2024 04:58:46. | |
mac.pyo | File | 598 bytes | April 10 2024 04:58:46. | |
makechangelog.py | File | 2988 bytes | April 10 2024 04:57:37. | |
makechangelog.pyc | File | 3122 bytes | April 10 2024 04:58:46. | |
makechangelog.pyo | File | 3122 bytes | April 10 2024 04:58:46. | |
rcsbump | File | 745 bytes | April 10 2024 04:57:37. | |
rcsclient.py | File | 1803 bytes | April 19 2020 21:13:39. | |
rcsclient.pyc | File | 2100 bytes | April 10 2024 04:58:46. | |
rcsclient.pyo | File | 2100 bytes | April 10 2024 04:58:46. | |
rcslib.py | File | 10318 bytes | April 19 2020 21:13:39. | |
rcslib.pyc | File | 11548 bytes | April 10 2024 04:58:46. | |
rcslib.pyo | File | 11548 bytes | April 10 2024 04:58:46. | |
rcvs | File | 117 bytes | April 10 2024 04:57:37. | |
rcvs.py | File | 13644 bytes | April 10 2024 04:57:37. | |
rcvs.pyc | File | 14417 bytes | April 10 2024 04:58:46. | |
rcvs.pyo | File | 14417 bytes | April 10 2024 04:58:46. | |
rrcs | File | 117 bytes | April 10 2024 04:57:37. | |
rrcs.py | File | 3992 bytes | April 10 2024 04:57:37. | |
rrcs.pyc | File | 5629 bytes | April 10 2024 04:58:46. | |
rrcs.pyo | File | 5629 bytes | April 10 2024 04:58:46. | |
security.py | File | 1092 bytes | April 19 2020 21:13:39. | |
security.pyc | File | 1681 bytes | April 10 2024 04:58:46. | |
security.pyo | File | 1681 bytes | April 10 2024 04:58:46. | |
server.py | File | 4581 bytes | April 19 2020 21:13:39. | |
server.pyc | File | 5971 bytes | April 10 2024 04:58:46. | |
server.pyo | File | 5971 bytes | April 10 2024 04:58:46. | |
sumtree.py | File | 518 bytes | April 19 2020 21:13:39. | |
sumtree.pyc | File | 903 bytes | April 10 2024 04:58:46. | |
sumtree.pyo | File | 903 bytes | April 10 2024 04:58:46. |
� ��^c @ s� d Z d d l Z d d l Z d d l Z d d l Z d Z d Z d Z d Z d Z d d d � � YZ d e f d � � YZ d d d � � YZ d � Z d e f d � � YZ d e f d � � YZ e d � Z d � Z e d k r� e � n d S( s� CVS locking algorithm. CVS locking strategy ==================== As reverse engineered from the CVS 1.3 sources (file lock.c): - Locking is done on a per repository basis (but a process can hold write locks for multiple directories); all lock files are placed in the repository and have names beginning with "#cvs.". - Before even attempting to lock, a file "#cvs.tfl.<pid>" is created (and removed again), to test that we can write the repository. [The algorithm can still be fooled (1) if the repository's mode is changed while attempting to lock; (2) if this file exists and is writable but the directory is not.] - While creating the actual read/write lock files (which may exist for a long time), a "meta-lock" is held. The meta-lock is a directory named "#cvs.lock" in the repository. The meta-lock is also held while a write lock is held. - To set a read lock: - acquire the meta-lock - create the file "#cvs.rfl.<pid>" - release the meta-lock - To set a write lock: - acquire the meta-lock - check that there are no files called "#cvs.rfl.*" - if there are, release the meta-lock, sleep, try again - create the file "#cvs.wfl.<pid>" - To release a write lock: - remove the file "#cvs.wfl.<pid>" - rmdir the meta-lock - To release a read lock: - remove the file "#cvs.rfl.<pid>" Additional notes ---------------- - A process should read-lock at most one repository at a time. - A process may write-lock as many repositories as it wishes (to avoid deadlocks, I presume it should always lock them top-down in the directory hierarchy). - A process should make sure it removes all its lock files and directories when it crashes. - Limitation: one user id should not be committing files into the same repository at the same time. Turn this into Python code -------------------------- rl = ReadLock(repository, waittime) wl = WriteLock(repository, waittime) list = MultipleWriteLock([repository1, repository2, ...], waittime) i����Ni i s #cvs.lcks #cvs.rfl.s #cvs.wfl.t Errorc B s# e Z d � Z d � Z d � Z RS( c C s | | _ d S( N( t msg( t selfR ( ( s* /usr/lib64/python2.7/Demo/pdist/cvslock.pyt __init__` s c C s t | j � S( N( t reprR ( R ( ( s* /usr/lib64/python2.7/Demo/pdist/cvslock.pyt __repr__c s c C s t | j � S( N( t strR ( R ( ( s* /usr/lib64/python2.7/Demo/pdist/cvslock.pyt __str__f s ( t __name__t __module__R R R ( ( ( s* /usr/lib64/python2.7/Demo/pdist/cvslock.pyR ^ s t Lockedc B s e Z RS( ( R R ( ( ( s* /usr/lib64/python2.7/Demo/pdist/cvslock.pyR j s t Lockc B sV e Z d e d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( t .c C sx | | _ | | _ d | _ d | _ t t j � � } | j t � | _ | j t | � | _ | j t | � | _ d S( N( t repositoryt delayt Nonet lockdirt lockfileR t ost getpidt joint CVSLCKt cvslckt CVSRFLt cvsrflt CVSWFLt cvswfl( R R R t pid( ( s* /usr/lib64/python2.7/Demo/pdist/cvslock.pyR p s c C s d GH| j � d S( Nt __del__( t unlock( R ( ( s* /usr/lib64/python2.7/Demo/pdist/cvslock.pyR z s c C s� x� y'