]> Savannah Git Hosting - gnulib.git/commitdiff
fcntl: document some F_SETLK errno variations
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 2 Aug 2020 23:54:07 +0000 (16:54 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 2 Aug 2020 23:54:25 +0000 (16:54 -0700)
* doc/posix-functions/fcntl.texi (fcntl): Document
OpenIndiana, GNU/Linux, FreeBSD on NFS files.

ChangeLog
doc/posix-functions/fcntl.texi

index cec93905a6c17bb0f622c1018fccf03ad380e7b3..b078da4d33fc4dc734dcb7d2c7985ece93693b21 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
+
+       fcntl: document some F_SETLK errno variations
+       * doc/posix-functions/fcntl.texi (fcntl): Document
+       OpenIndiana, GNU/Linux, FreeBSD on NFS files.
+
 2020-08-02  Bruno Haible  <bruno@clisp.org>
 
        oset: Add an 'iterator_atleast' operation.
index 8696704aca786f4807da7ec2ea2387b76f766625..30500e83cf2797746b9f7f1548606450daf8679e 100644 (file)
@@ -43,4 +43,12 @@ The replacement function does not support @code{F_SETFD},
 @code{F_GETFL}, @code{F_SETFL}, @code{F_GETOWN}, @code{F_SETOWN},
 @code{F_GETLK}, @code{F_SETLK}, and @code{F_SETLKW} on some platforms:
 mingw, MSVC 14.
+
+@item
+When a file does not support locking (such as on an NFS file system
+that does not support file locking), calls with @code{F_SETLK} and
+@code{F_SETLKW} fail with @code{errno} set to different values on
+different systems: @code{EINVAL} on OpenIndiana (as suggested by the
+POSIX 1003.1-2017 @code{fcntl} specification), @code{ENOLCK} on
+GNU/Linux, and @code{EOPNOTSUPP} on FreeBSD.
 @end itemize