summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1997-01-08 23:48:02 +0000
committerjdp <jdp@FreeBSD.org>1997-01-08 23:48:02 +0000
commit4e07878b529a8fce0e83cfbda92e43ed81cf4ce9 (patch)
tree5f2e21107249828401fa1f9091ea179d08e3fc2b /lib/libc
parent516a603227f8f3af7b1c43cdd2c8b796555b42fe (diff)
downloadFreeBSD-src-4e07878b529a8fce0e83cfbda92e43ed81cf4ce9.zip
FreeBSD-src-4e07878b529a8fce0e83cfbda92e43ed81cf4ce9.tar.gz
The error returned when F_SETLK collides with an existing lock is
EAGAIN, not EACCES. POSIX says that either one is OK. 2.2 candidate.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/fcntl.26
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/sys/fcntl.2 b/lib/libc/sys/fcntl.2
index 9022eb9..b43494d 100644
--- a/lib/libc/sys/fcntl.2
+++ b/lib/libc/sys/fcntl.2
@@ -195,7 +195,7 @@ as well as remove either type of lock
If a shared or exclusive lock cannot be set,
.Fn fcntl
returns immediately with
-.Er EACCES .
+.Er EAGAIN .
.It Dv F_SETLKW
This command is the same as
.Dv F_SETLK
@@ -377,9 +377,9 @@ is set to indicate the error.
.Fn Fcntl
will fail if:
.Bl -tag -width Er
-.It Bq Er EACCES
+.It Bq Er EAGAIN
The argument
-.Fa arg
+.Fa cmd
is
.Dv F_SETLK ,
the type of lock
OpenPOWER on IntegriCloud