summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2003-03-28 20:05:11 +0000
committermillert <millert@openbsd.org>2003-03-28 20:05:11 +0000
commit6a3ba54a5d5cb63bc1f53522d61e77ed543833a7 (patch)
tree4b120576866730baaf4f1c96c941fc6dfba7aa08 /lib/libc
parentAdd missing MLINKS for Getopt::Std and fix NAME section (diff)
downloadwireguard-openbsd-6a3ba54a5d5cb63bc1f53522d61e77ed543833a7.tar.xz
wireguard-openbsd-6a3ba54a5d5cb63bc1f53522d61e77ed543833a7.zip
F_[GS]ETFL deal with file status flags, not descriptor status flags.
Closes PR 3172
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/fcntl.210
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libc/sys/fcntl.2 b/lib/libc/sys/fcntl.2
index 85d4e6ae451..17a77928e77 100644
--- a/lib/libc/sys/fcntl.2
+++ b/lib/libc/sys/fcntl.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fcntl.2,v 1.20 2003/03/06 20:04:06 jmc Exp $
+.\" $OpenBSD: fcntl.2,v 1.21 2003/03/28 20:05:11 millert Exp $
.\" $NetBSD: fcntl.2,v 1.6 1995/02/27 12:32:29 cgd Exp $
.\"
.\" Copyright (c) 1983, 1993
@@ -117,11 +117,15 @@ is either 0 or
.Dv FD_CLOEXEC ,
as described above.
.It Dv F_GETFL
-Get descriptor status flags, as described below
+Get file status flags associated with the file descriptor
+.Fa fd ,
+as described below
.Fa ( arg
is ignored).
.It Dv F_SETFL
-Set descriptor status flags to
+Set file status flags associated with the file descriptor
+.Fa fd
+to
.Fa arg
(interpreted as an
.Li int ) .