summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libfcntl.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-04-11 21:33:47 (GMT)
committerFred Drake <fdrake@acm.org>2001-04-11 21:33:47 (GMT)
commitb942c2f7887ee3a3276e7408f0f8694ed72e22ab (patch)
treec02153281839df7428fd92b7299adbe8e503ac98 /Doc/lib/libfcntl.tex
parent34d37dc5d209a4fd43fed6502a4086573354f615 (diff)
downloadcpython-b942c2f7887ee3a3276e7408f0f8694ed72e22ab.zip
cpython-b942c2f7887ee3a3276e7408f0f8694ed72e22ab.tar.gz
cpython-b942c2f7887ee3a3276e7408f0f8694ed72e22ab.tar.bz2
Fixed bug in example.
This closes SF bug #415522. Also fix markup error in text following the example.
Diffstat (limited to 'Doc/lib/libfcntl.tex')
-rw-r--r--Doc/lib/libfcntl.tex4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/lib/libfcntl.tex b/Doc/lib/libfcntl.tex
index f2b6eeb..7c357e6 100644
--- a/Doc/lib/libfcntl.tex
+++ b/Doc/lib/libfcntl.tex
@@ -106,13 +106,13 @@ Examples (all on a SVR4 compliant system):
import struct, fcntl, FCNTL
file = open(...)
-rv = fcntl(file.fileno(), FCNTL.O_NDELAY, 1)
+rv = fcntl(file.fileno(), FCNTL.F_SETFL, FCNTL.O_NDELAY)
lockdata = struct.pack('hhllhh', FCNTL.F_WRLCK, 0, 0, 0, 0, 0)
rv = fcntl.fcntl(file.fileno(), FCNTL.F_SETLKW, lockdata)
\end{verbatim}
-Note that in the first example the return value variable \code{rv} will
+Note that in the first example the return value variable \var{rv} will
hold an integer value; in the second example it will hold a string
value. The structure lay-out for the \var{lockdata} variable is
system dependent --- therefore using the \function{flock()} call may be