PyDocs

Nav

Generic Operating System Services

lockf

os

function · Added in 3.3Unix
  • lockf(fd, cmd, len, /)
Apply, test or remove a POSIX lock on an open file descriptor.

fd
  An open file descriptor.
command
  One of F_LOCK, F_TLOCK, F_ULOCK or F_TEST.
length
  The number of bytes to lock, starting at the current position.
0 Examples
No examples for os/lockf.
See Also
No see-alsos for os/lockf
0 Notes
No notes for lockf