summaryrefslogtreecommitdiff
path: root/lib/libc/sys/fcntl.2
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-12 21:50:23 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-12 21:50:23 +0000
commit5f0fd4f2ccab7deaf264d7410a2fe72ef5413016 (patch)
treefc902a2f10036430c99fc61fb7e4df406d637322 /lib/libc/sys/fcntl.2
parent28422e30ae73598b88339ba0fe511f282a7043ea (diff)
lock failure returns EAGAIN in our world, XPG4/POSIX say either EAGAIN or EACCESS is ok, but EAGAIN is what our kernel does
Diffstat (limited to 'lib/libc/sys/fcntl.2')
-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 238f815e0b3..ac6ddbf8ee1 100644
--- a/lib/libc/sys/fcntl.2
+++ b/lib/libc/sys/fcntl.2
@@ -197,7 +197,7 @@ as well as remove either type of lock
If a shared or exclusive lock cannot be set,
.Nm fcntl
returns immediately with
-.Er EACCES .
+.Er EAGAIN .
.It Dv F_SETLKW
This command is the same as
.Dv F_SETLK
@@ -356,9 +356,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