summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-03-31 08:35:46 +0000
committerguenther <guenther@openbsd.org>2013-03-31 08:35:46 +0000
commit7bf49b5213847847821268dd5e334317a537992e (patch)
treebcccd172f93615432abf02c271a64ca4ee37f45b /lib/libc
parentUpdates to SYNOPSIS, ERRORS, and STANDARDS (diff)
downloadwireguard-openbsd-7bf49b5213847847821268dd5e334317a537992e.tar.xz
wireguard-openbsd-7bf49b5213847847821268dd5e334317a537992e.zip
Updates to RETURN VALUES, ERRORS, and STANDARDS
ok jmc@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/fcntl.217
1 files changed, 14 insertions, 3 deletions
diff --git a/lib/libc/sys/fcntl.2 b/lib/libc/sys/fcntl.2
index 2b3511a5647..532c2deb618 100644
--- a/lib/libc/sys/fcntl.2
+++ b/lib/libc/sys/fcntl.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fcntl.2,v 1.29 2013/01/19 21:57:57 millert Exp $
+.\" $OpenBSD: fcntl.2,v 1.30 2013/03/31 08:35:46 guenther Exp $
.\" $NetBSD: fcntl.2,v 1.6 1995/02/27 12:32:29 cgd Exp $
.\"
.\" Copyright (c) 1983, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)fcntl.2 8.2 (Berkeley) 1/12/94
.\"
-.Dd $Mdocdate: January 19 2013 $
+.Dd $Mdocdate: March 31 2013 $
.Dt FCNTL 2
.Os
.Sh NAME
@@ -388,9 +388,11 @@ error.
Upon successful completion, the value returned depends on
.Fa cmd
as follows:
-.Bl -tag -width F_GETOWNX -offset indent
+.Bl -tag -width F_DUPFD_CLOEXEC -offset indent
.It Dv F_DUPFD
A new file descriptor.
+.It Dv F_DUPFD_CLOEXEC
+A new file descriptor.
.It Dv F_GETFD
Value of flag (only the low-order bit is defined).
.It Dv F_GETFL
@@ -464,6 +466,10 @@ and a deadlock condition was detected.
.It Bq Er EINTR
The argument
.Fa cmd
+is invalid.
+.Pp
+The argument
+.Fa cmd
is
.Dv F_SETLKW ,
and the function was interrupted by a signal.
@@ -523,6 +529,11 @@ is not in use.
.Xr open 2 ,
.Xr sigaction 2 ,
.Xr getdtablesize 3
+.Sh STANDARDS
+The
+.Fn fcntl
+function conforms to
+.St -p1003.1-2008 .
.Sh HISTORY
The
.Fn fcntl