[Python-checkins] CVS: python/dist/src/Lib/lib-old lockfile.py,1.1,1.1.12.1
Tim Peters
tim_one@users.sourceforge.net
Sat, 07 Jul 2001 15:56:00 -0700
- Previous message: [Python-checkins] CVS: python/dist/src/Lib/distutils/command bdist_rpm.py,1.23,1.23.8.1 bdist_wininst.py,1.21,1.21.4.1
- Next message: [Python-checkins] CVS: python/dist/src/Lib Cookie.py,1.8,1.8.4.1 UserDict.py,1.12,1.12.2.1 UserList.py,1.16,1.16.6.1 UserString.py,1.9,1.9.6.1 anydbm.py,1.10,1.10.6.1 asyncore.py,1.11,1.11.2.1 base64.py,1.11,1.11.6.1 bdb.py,1.31,1.31.4.1 calendar.py,1.21,1.21.6.1 cgi.py,1.63,1.63.4.1 chunk.py,1.10,1.10.4.1 code.py,1.15,1.15.6.1 dbhash.py,1.5,1.5.6.1 dis.py,1.34,1.34.2.1 doctest.py,1.10,1.10.4.1 dumbdbm.py,1.10,1.10.6.1 fnmatch.py,1.11,1.11.4.1 formatter.py,1.17,1.17.6.1 glob.py,1.9,1.9.6.1 htmllib.py,1.17,1.17.6.1 httplib.py,1.34,1.34.4.1 imaplib.py,1.27,1.27.6.1 keyword.py,1.10,1.10.6.1 linecache.py,1.7,1.7.6.1 mailbox.py,1.30,1.30.4.1 mailcap.py,1.9,1.9.6.1 mhlib.py,1.26,1.26.6.1 mimetypes.py,1.13,1.13.6.1 mimify.py,1.20,1.20.4.1 ntpath.py,1.34,1.34.6.1 pipes.py,1.8,1.8.6.1 posixfile.py,1.20,1.20.4.1 pprint.py,1.12,1.12.6.1 pre.py,1.9,1.9.6.1 profile.py,1.27,1.27.4.1 pstats.py,1.15,1.15.4.1 pty.py,1.7,1.7.6.1 pydoc.py,1.38,1.38.4.1 quopri.py,1.11,1.11.4.1 rexec.py,1.28,1.28.6.1 rfc822.py,1.54,1.54.6.1 sgmllib.py,1.30,1.30.4.1 site.py,1.26,1.26.4.1 sre_compile.py,1.37,1.37.4.1 sre_constants.py,1.28,1.28.4.1 tabnanny.py,1.13,1.13.4.1 tokenize.py,1.22,1.22.4.1 traceback.py,1.25,1.25.4.1 types.py,1.14.10.5,1.14.10.6 unittest.py,1.7,1.7.4.1 urllib.py,1.126,1.126.4.1 urllib2.py,1.13,1.13.4.1 weakref.py,1.9,1.9.2.1 zipfile.py,1.13,1.13.4.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Lib/lib-old
In directory usw-pr-cvs1:/tmp/cvs-serv24450/mergedescr/dist/src/Lib/lib-old
Modified Files:
Tag: descr-branch
lockfile.py
Log Message:
Merge of trunk tag date2001-07-06 into descr-branch.
Index: lockfile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/lib-old/lockfile.py,v
retrieving revision 1.1
retrieving revision 1.1.12.1
diff -C2 -r1.1 -r1.1.12.1
*** lockfile.py 1994/05/03 14:46:18 1.1
--- lockfile.py 2001/07/07 22:55:28 1.1.12.1
***************
*** 1,15 ****
! import struct, fcntl, FCNTL
def writelock(f):
! _lock(f, FCNTL.F_WRLCK)
def readlock(f):
! _lock(f, FCNTL.F_RDLCK)
def unlock(f):
! _lock(f, FCNTL.F_UNLCK)
def _lock(f, op):
! dummy = fcntl.fcntl(f.fileno(), FCNTL.F_SETLKW,
struct.pack('2h8l', op,
0, 0, 0, 0, 0, 0, 0, 0, 0))
--- 1,15 ----
! import struct, fcntl
def writelock(f):
! _lock(f, fcntl.F_WRLCK)
def readlock(f):
! _lock(f, fcntl.F_RDLCK)
def unlock(f):
! _lock(f, fcntl.F_UNLCK)
def _lock(f, op):
! dummy = fcntl.fcntl(f.fileno(), fcntl.F_SETLKW,
struct.pack('2h8l', op,
0, 0, 0, 0, 0, 0, 0, 0, 0))
- Previous message: [Python-checkins] CVS: python/dist/src/Lib/distutils/command bdist_rpm.py,1.23,1.23.8.1 bdist_wininst.py,1.21,1.21.4.1
- Next message: [Python-checkins] CVS: python/dist/src/Lib Cookie.py,1.8,1.8.4.1 UserDict.py,1.12,1.12.2.1 UserList.py,1.16,1.16.6.1 UserString.py,1.9,1.9.6.1 anydbm.py,1.10,1.10.6.1 asyncore.py,1.11,1.11.2.1 base64.py,1.11,1.11.6.1 bdb.py,1.31,1.31.4.1 calendar.py,1.21,1.21.6.1 cgi.py,1.63,1.63.4.1 chunk.py,1.10,1.10.4.1 code.py,1.15,1.15.6.1 dbhash.py,1.5,1.5.6.1 dis.py,1.34,1.34.2.1 doctest.py,1.10,1.10.4.1 dumbdbm.py,1.10,1.10.6.1 fnmatch.py,1.11,1.11.4.1 formatter.py,1.17,1.17.6.1 glob.py,1.9,1.9.6.1 htmllib.py,1.17,1.17.6.1 httplib.py,1.34,1.34.4.1 imaplib.py,1.27,1.27.6.1 keyword.py,1.10,1.10.6.1 linecache.py,1.7,1.7.6.1 mailbox.py,1.30,1.30.4.1 mailcap.py,1.9,1.9.6.1 mhlib.py,1.26,1.26.6.1 mimetypes.py,1.13,1.13.6.1 mimify.py,1.20,1.20.4.1 ntpath.py,1.34,1.34.6.1 pipes.py,1.8,1.8.6.1 posixfile.py,1.20,1.20.4.1 pprint.py,1.12,1.12.6.1 pre.py,1.9,1.9.6.1 profile.py,1.27,1.27.4.1 pstats.py,1.15,1.15.4.1 pty.py,1.7,1.7.6.1 pydoc.py,1.38,1.38.4.1 quopri.py,1.11,1.11.4.1 rexec.py,1.28,1.28.6.1 rfc822.py,1.54,1.54.6.1 sgmllib.py,1.30,1.30.4.1 site.py,1.26,1.26.4.1 sre_compile.py,1.37,1.37.4.1 sre_constants.py,1.28,1.28.4.1 tabnanny.py,1.13,1.13.4.1 tokenize.py,1.22,1.22.4.1 traceback.py,1.25,1.25.4.1 types.py,1.14.10.5,1.14.10.6 unittest.py,1.7,1.7.4.1 urllib.py,1.126,1.126.4.1 urllib2.py,1.13,1.13.4.1 weakref.py,1.9,1.9.2.1 zipfile.py,1.13,1.13.4.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]