]> granicus.if.org Git - python/commitdiff
Fixed bug in example.
authorFred Drake <fdrake@acm.org>
Wed, 11 Apr 2001 21:33:47 +0000 (21:33 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 11 Apr 2001 21:33:47 +0000 (21:33 +0000)
This closes SF bug #415522.

Also fix markup error in text following the example.

Doc/lib/libfcntl.tex

index f2b6eeb1978f62e66315fe5265a8ecbcf2aba253..7c357e6650f699588d4d893b2ac841e778a6fe4a 100644 (file)
@@ -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