[Python-checkins] CVS: python/dist/src/Doc/lib libmsvcrt.tex,1.3,1.4
Fred L. Drake
python-dev@python.org
Wed, 13 Dec 2000 19:11:26 -0800
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv13580/lib
Modified Files:
libmsvcrt.tex
Log Message:
Update information on the locking() function, added the needed constants.
(Thanks for the info, Tim!)
Index: libmsvcrt.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libmsvcrt.tex,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** libmsvcrt.tex 1999/03/02 16:37:12 1.3
--- libmsvcrt.tex 2000/12/14 03:11:24 1.4
***************
*** 21,27 ****
\begin{funcdesc}{locking}{fd, mode, nbytes}
! Lock part of a file based on a file descriptor from the C runtime.
! Raises \exception{IOError} on failure.
\end{funcdesc}
\begin{funcdesc}{setmode}{fd, flags}
--- 21,51 ----
\begin{funcdesc}{locking}{fd, mode, nbytes}
! Lock part of a file based on file descriptor \var{fd} from the C
! runtime. Raises \exception{IOError} on failure. The locked region
! of the file extends from the current file position for \var{nbytes}
! bytes, and may continue beyond the end of the file. \var{mode} must
! be one of the \constant{LK_\var{*}} constants listed below.
! Multiple regions in a file may be locked at the same time, but may
! not overlap. Adjacent regions are not merged; they must be unlocked
! individually.
\end{funcdesc}
+
+ \begin{datadesc}{LK_LOCK}
+ \dataline{LK_RLCK}
+ Locks the specified bytes. If the bytes cannot be locked, the
+ program immediately tries again after 1 second. If, after 10
+ attempts, the bytes cannot be locked, \exception{IOError} is
+ raised.
+ \end{datadesc}
+
+ \begin{datadesc}{LK_NBLCK}
+ \dataline{LK_NBRLCK}
+ Locks the specified bytes. If the bytes cannot be locked,
+ \exception{IOError} is raised.
+ \end{datadesc}
+
+ \begin{datadesc}{LK_UNLCK}
+ Unlocks the specified bytes, which must have been previously locked.
+ \end{datadesc}
\begin{funcdesc}{setmode}{fd, flags}