Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7728b47

Browse files
committed
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.
1 parent dc8e194 commit 7728b47

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/lib/libfcntl.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ \section{\module{fcntl} ---
151151
Examples (all on a SVR4 compliant system):
152152

153153
\begin{verbatim}
154-
import struct, fcntl
154+
import struct, fcntl, os
155155
156-
f = file(...)
157-
rv = fcntl(f, fcntl.F_SETFL, os.O_NDELAY)
156+
f = open(...)
157+
rv = fcntl.fcntl(f, fcntl.F_SETFL, os.O_NDELAY)
158158
159159
lockdata = struct.pack('hhllhh', fcntl.F_WRLCK, 0, 0, 0, 0, 0)
160160
rv = fcntl.fcntl(f, fcntl.F_SETLKW, lockdata)

0 commit comments

Comments
 (0)