SF #994605, fcntl example is broken
The last call to fcntl (which wasn't changed) doesn't work for me, but
the first part works now.
Backport candidate.
diff --git a/Doc/lib/libfcntl.tex b/Doc/lib/libfcntl.tex
index f7d4438..df258ee 100644
--- a/Doc/lib/libfcntl.tex
+++ b/Doc/lib/libfcntl.tex
@@ -151,10 +151,10 @@
Examples (all on a SVR4 compliant system):
\begin{verbatim}
-import struct, fcntl
+import struct, fcntl, os
-f = file(...)
-rv = fcntl(f, fcntl.F_SETFL, os.O_NDELAY)
+f = open(...)
+rv = fcntl.fcntl(f, fcntl.F_SETFL, os.O_NDELAY)
lockdata = struct.pack('hhllhh', fcntl.F_WRLCK, 0, 0, 0, 0, 0)
rv = fcntl.fcntl(f, fcntl.F_SETLKW, lockdata)