File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,6 +36,12 @@ \section{Built-in Module \sectcode{fcntl}}
3636 \code {IOCTL}.
3737\end {funcdesc }
3838
39+ \begin {funcdesc }{flock}{fd\, op}
40+ Perform the lock operation \var {op} on file descriptor \var {fd}.
41+ See the Unix manual for details. (On some systems, this function is
42+ emulated using \code {fcntl}.)
43+ \end {funcdesc }
44+
3945If the library modules \code {FCNTL} or \code {IOCTL} are missing, you
4046can find the opcodes in the C include files \code {sys/fcntl} and
4147\code {sys/ioctl}. You can create the modules yourself with the h2py
@@ -57,4 +63,6 @@ \section{Built-in Module \sectcode{fcntl}}
5763
5864Note that in the first example the return value variable \code {rv} will
5965hold an integer value; in the second example it will hold a string
60- value.
66+ value. The structure lay-out for the \var {lockadata} variable is
67+ system dependent -- therefore using the \code {flock()} call may be
68+ better.
Original file line number Diff line number Diff line change @@ -36,6 +36,12 @@ \section{Built-in Module \sectcode{fcntl}}
3636 \code {IOCTL}.
3737\end {funcdesc }
3838
39+ \begin {funcdesc }{flock}{fd\, op}
40+ Perform the lock operation \var {op} on file descriptor \var {fd}.
41+ See the Unix manual for details. (On some systems, this function is
42+ emulated using \code {fcntl}.)
43+ \end {funcdesc }
44+
3945If the library modules \code {FCNTL} or \code {IOCTL} are missing, you
4046can find the opcodes in the C include files \code {sys/fcntl} and
4147\code {sys/ioctl}. You can create the modules yourself with the h2py
@@ -57,4 +63,6 @@ \section{Built-in Module \sectcode{fcntl}}
5763
5864Note that in the first example the return value variable \code {rv} will
5965hold an integer value; in the second example it will hold a string
60- value.
66+ value. The structure lay-out for the \var {lockadata} variable is
67+ system dependent -- therefore using the \code {flock()} call may be
68+ better.
You can’t perform that action at this time.
0 commit comments