mirror of https://github.com/mkerrisk/man-pages
fcntl.2: Rewrite introductory paragraphs on mandatory locking
Make the structure more logical, and also explicitly mention OFD locks. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
4b5c506a2c
commit
9acee57885
|
@ -553,12 +553,12 @@ as described above for
|
|||
.BR F_GETLK .
|
||||
.SS Mandatory locking
|
||||
(Non-POSIX.)
|
||||
The above record locks may be either advisory or mandatory,
|
||||
and are advisory by default.
|
||||
|
||||
By default, both traditional (process-associated) and open file description
|
||||
record locks are advisory.
|
||||
Advisory locks are not enforced and are useful only between
|
||||
cooperating processes.
|
||||
|
||||
Both lock types can also be mandatory.
|
||||
Mandatory locks are enforced for all processes.
|
||||
If a process tries to perform an incompatible access (e.g.,
|
||||
.BR read (2)
|
||||
|
|
Loading…
Reference in New Issue