]> granicus.if.org Git - python/commitdiff
Added embryonic description of fcntl.lockf(). Added pointer to that
authorGuido van Rossum <guido@python.org>
Fri, 11 Oct 1996 17:43:34 +0000 (17:43 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 11 Oct 1996 17:43:34 +0000 (17:43 +0000)
in posixfile (which is obsolescent).

Doc/lib/libfcntl.tex
Doc/lib/libposixfile.tex
Doc/libfcntl.tex
Doc/libposixfile.tex

index 1aba52095e7fc4a9767c38fb5526191c7d230613..3a51ce1c6e55d6b1285951b9b014416813cae46b 100644 (file)
@@ -42,6 +42,11 @@ See the Unix manual for details.  (On some systems, this function is
 emulated using \code{fcntl}.)
 \end{funcdesc}
 
+\begin{funcdesc}{lockf}{fd\, code\, \optional{len\, \optional{start\, \optional{whence}}}}
+This is a wrapper around the \code{F_SETLK} and \code{F_SETLKW}
+\code{fcntl()} calls.  See the Unix manual for details.
+\end{funcdesc}
+
 If the library modules \code{FCNTL} or \code{IOCTL} are missing, you
 can find the opcodes in the C include files \code{sys/fcntl} and
 \code{sys/ioctl}. You can create the modules yourself with the h2py
index 6679f122807cf86270ce06a746f362d57df26d6b..5c853e778c4b967d3f7c94b98cb51a4eb8e64e72 100644 (file)
@@ -3,6 +3,10 @@
 \bimodindex{posixfile}
 \indexii{posix}{file object}
 
+\emph{Note:} This module will become obsolete in a future release.
+The locking operation that it provides is done better and more
+portably by the \code{fcntl.lockf()} call.
+
 This module implements some additional functionality over the built-in
 file objects.  In particular, it implements file locking, control over
 the file flags, and an easy interface to duplicate the file object.
index 1aba52095e7fc4a9767c38fb5526191c7d230613..3a51ce1c6e55d6b1285951b9b014416813cae46b 100644 (file)
@@ -42,6 +42,11 @@ See the Unix manual for details.  (On some systems, this function is
 emulated using \code{fcntl}.)
 \end{funcdesc}
 
+\begin{funcdesc}{lockf}{fd\, code\, \optional{len\, \optional{start\, \optional{whence}}}}
+This is a wrapper around the \code{F_SETLK} and \code{F_SETLKW}
+\code{fcntl()} calls.  See the Unix manual for details.
+\end{funcdesc}
+
 If the library modules \code{FCNTL} or \code{IOCTL} are missing, you
 can find the opcodes in the C include files \code{sys/fcntl} and
 \code{sys/ioctl}. You can create the modules yourself with the h2py
index 6679f122807cf86270ce06a746f362d57df26d6b..5c853e778c4b967d3f7c94b98cb51a4eb8e64e72 100644 (file)
@@ -3,6 +3,10 @@
 \bimodindex{posixfile}
 \indexii{posix}{file object}
 
+\emph{Note:} This module will become obsolete in a future release.
+The locking operation that it provides is done better and more
+portably by the \code{fcntl.lockf()} call.
+
 This module implements some additional functionality over the built-in
 file objects.  In particular, it implements file locking, control over
 the file flags, and an easy interface to duplicate the file object.