summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-10-11 17:43:34 (GMT)
committerGuido van Rossum <guido@python.org>1996-10-11 17:43:34 (GMT)
commit9b0581192d6f3f959e724b9db9f7726d3861e180 (patch)
tree3631e9352fe0828737e80df08e5cad4d5e1c3797 /Doc
parent22f7f9e67125c537651a61fff20ed341bf7d492f (diff)
downloadcpython-9b0581192d6f3f959e724b9db9f7726d3861e180.zip
cpython-9b0581192d6f3f959e724b9db9f7726d3861e180.tar.gz
cpython-9b0581192d6f3f959e724b9db9f7726d3861e180.tar.bz2
Added embryonic description of fcntl.lockf(). Added pointer to that
in posixfile (which is obsolescent).
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libfcntl.tex5
-rw-r--r--Doc/lib/libposixfile.tex4
-rw-r--r--Doc/libfcntl.tex5
-rw-r--r--Doc/libposixfile.tex4
4 files changed, 18 insertions, 0 deletions
diff --git a/Doc/lib/libfcntl.tex b/Doc/lib/libfcntl.tex
index 1aba520..3a51ce1 100644
--- a/Doc/lib/libfcntl.tex
+++ b/Doc/lib/libfcntl.tex
@@ -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
diff --git a/Doc/lib/libposixfile.tex b/Doc/lib/libposixfile.tex
index 6679f12..5c853e7 100644
--- a/Doc/lib/libposixfile.tex
+++ b/Doc/lib/libposixfile.tex
@@ -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.
diff --git a/Doc/libfcntl.tex b/Doc/libfcntl.tex
index 1aba520..3a51ce1 100644
--- a/Doc/libfcntl.tex
+++ b/Doc/libfcntl.tex
@@ -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
diff --git a/Doc/libposixfile.tex b/Doc/libposixfile.tex
index 6679f12..5c853e7 100644
--- a/Doc/libposixfile.tex
+++ b/Doc/libposixfile.tex
@@ -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.