From: Paul Eggert Date: Sun, 2 Aug 2020 23:54:07 +0000 (-0700) Subject: fcntl: document some F_SETLK errno variations X-Git-Tag: v1.0~3829 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=df9ead9d44547c76dcb4e81ab1068a11bc1ae42c;p=gnulib.git fcntl: document some F_SETLK errno variations * doc/posix-functions/fcntl.texi (fcntl): Document OpenIndiana, GNU/Linux, FreeBSD on NFS files. --- diff --git a/ChangeLog b/ChangeLog index cec93905a6..b078da4d33 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2020-08-02 Paul Eggert + + 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 oset: Add an 'iterator_atleast' operation. diff --git a/doc/posix-functions/fcntl.texi b/doc/posix-functions/fcntl.texi index 8696704aca..30500e83cf 100644 --- a/doc/posix-functions/fcntl.texi +++ b/doc/posix-functions/fcntl.texi @@ -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