On Tue, 25 Jun 2019 09:18:28 -0600, Todd C. Miller wrote: > The ERRORS section could be clearer as to what error you get when > you try to lock a socket/fifo.
There is no need to change fcntl.2 or lockf.2, they already document the behavior under EINVAL. The only outlier now is flock.2 so use the same wording as in fcntl.2 and lockf.2. - todd Index: /usr/src/lib/libc/sys/flock.2 =================================================================== RCS file: /cvs/src/lib/libc/sys/flock.2,v retrieving revision 1.20 diff -u -p -u -r1.20 flock.2 --- /usr/src/lib/libc/sys/flock.2 10 Dec 2014 19:19:00 -0000 1.20 +++ /usr/src/lib/libc/sys/flock.2 25 Jun 2019 15:48:25 -0000 @@ -133,7 +133,9 @@ The argument .Fa operation has an invalid value. .It Bq Er EOPNOTSUPP -The referenced descriptor is not of the correct type. +The argument +.Fa fd +refers to a file that does not support locking. .El .Sh SEE ALSO .Xr close 2 ,