diff options
author | 2019-06-25 19:28:31 +0000 | |
---|---|---|
committer | 2019-06-25 19:28:31 +0000 | |
commit | bfbce2f9d037934a372261637e3680dab179d02a (patch) | |
tree | d7d33a6d99da94bba86db751a34809862ce3cdfc /lib/libc/sys | |
parent | sync (diff) | |
download | wireguard-openbsd-bfbce2f9d037934a372261637e3680dab179d02a.tar.xz wireguard-openbsd-bfbce2f9d037934a372261637e3680dab179d02a.zip |
Use the same text for EOPNOTSUPP as we do in fcntl(2) and lockf(3).
In fcntl(2) and lockf(3) the error is EINVAL but the condition is
the same. OK anton@
Diffstat (limited to 'lib/libc/sys')
-rw-r--r-- | lib/libc/sys/flock.2 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/sys/flock.2 b/lib/libc/sys/flock.2 index 3b1470752b3..82483b12d8e 100644 --- a/lib/libc/sys/flock.2 +++ b/lib/libc/sys/flock.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: flock.2,v 1.20 2014/12/10 19:19:00 schwarze Exp $ +.\" $OpenBSD: flock.2,v 1.21 2019/06/25 19:28:31 millert Exp $ .\" $NetBSD: flock.2,v 1.5 1995/02/27 12:32:32 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)flock.2 8.2 (Berkeley) 12/11/93 .\" -.Dd $Mdocdate: December 10 2014 $ +.Dd $Mdocdate: June 25 2019 $ .Dt FLOCK 2 .Os .Sh NAME @@ -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 , |