summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-03-28 20:05:12 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-03-28 20:05:12 +0000
commitfeea66cfbdadb095dea835da36896b588964b1f5 (patch)
tree773e37db9a3169884a23d728e764fe08a47831f8 /lib/libc
parente9edb3dc8c7f5ddf390c3fb151d6b4dca861262e (diff)
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 ) .