PyDocs

Unix-specific services

fcntl

Unixnot WASI

This module performs file control and I/O control on file
descriptors.  It is an interface to the fcntl() and ioctl() Unix
routines.  File descriptors can be obtained with the fileno() method of
a file or socket object.
Symbols in fcntl

f

fcntl
Perform the operation cmd on file descriptor fd.
flock
Perform the lock operation on file descriptor fd.

i

ioctl
Perform the operation request on file descriptor fd.

l

LOCK_EX
Acquire an exclusive lock.
LOCK_NB
Bitwise OR with any of the other three LOCK_* constants to make the request non-blocking.
LOCK_SH
Acquire a shared lock.
LOCK_UN
Release an existing lock.
lockf
A wrapper around the fcntl() locking calls.