diff options
Diffstat (limited to 'Doc/lib')
-rw-r--r-- | Doc/lib/libfcntl.tex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/lib/libfcntl.tex b/Doc/lib/libfcntl.tex index 21daa41..f7d4438 100644 --- a/Doc/lib/libfcntl.tex +++ b/Doc/lib/libfcntl.tex @@ -153,11 +153,11 @@ Examples (all on a SVR4 compliant system): \begin{verbatim} import struct, fcntl -file = open(...) -rv = fcntl(file, fcntl.F_SETFL, os.O_NDELAY) +f = file(...) +rv = fcntl(f, fcntl.F_SETFL, os.O_NDELAY) lockdata = struct.pack('hhllhh', fcntl.F_WRLCK, 0, 0, 0, 0, 0) -rv = fcntl.fcntl(file, fcntl.F_SETLKW, lockdata) +rv = fcntl.fcntl(f, fcntl.F_SETLKW, lockdata) \end{verbatim} Note that in the first example the return value variable \var{rv} will |