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:
Michael Kerrisk 2014-04-30 12:17:53 +02:00
parent 4b5c506a2c
commit 9acee57885
1 changed files with 3 additions and 3 deletions

View File

@ -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)