summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/open.2
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1997-06-22 23:47:56 +0000
committermillert <millert@openbsd.org>1997-06-22 23:47:56 +0000
commitcdcf6ded6c42879e43bebe63b730044b49e701bb (patch)
tree4bfa871e94381c01734aca5eaf442e0c224223be /lib/libc/sys/open.2
parentFix a bogon in last change (diff)
downloadwireguard-openbsd-cdcf6ded6c42879e43bebe63b730044b49e701bb.tar.xz
wireguard-openbsd-cdcf6ded6c42879e43bebe63b730044b49e701bb.zip
errno can be set to EAGAIN in conjunction with O_SHLOCK/O_EXLOCK
Diffstat (limited to 'lib/libc/sys/open.2')
-rw-r--r--lib/libc/sys/open.24
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2
index d676ad36885..27a88cfcb0a 100644
--- a/lib/libc/sys/open.2
+++ b/lib/libc/sys/open.2
@@ -246,11 +246,15 @@ and
were specified and the file exists.
.It Bq Er EOPNOTSUPP
An attempt was made to open a socket (not currently implemented).
+.It Bq Er EAGAIN
+O_NONBLOCK and either O_EXLOCK or O_SHLOCK are set and the file
+is already locked.
.El
.Sh SEE ALSO
.Xr chmod 2 ,
.Xr close 2 ,
.Xr dup 2 ,
+.Xr flock 2 ,
.Xr getdtablesize 2 ,
.Xr lseek 2 ,
.Xr read 2 ,