]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
fcntl.2: Rewrite introductory paragraphs on mandatory locking
authorMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 30 Apr 2014 10:17:53 +0000 (12:17 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 9 Jun 2014 19:33:48 +0000 (21:33 +0200)
Make the structure more logical, and also explicitly mention
OFD locks.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/fcntl.2

index 5114e01a055483e76cb1a91f82172609586e1526..392f04683b5ace9a8f1a952f263dfc9922603178 100644 (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)