summaryrefslogtreecommitdiff
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2022-03-03 12:45:11 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2022-03-07 12:15:47 +0000
commit88919794940543d0b6743a035a44a51b9d8ff5d8 (patch)
tree952ea2fb337cccace626838657cd6b9280a9e4a0 /lib/libc/sys
parent63f3afe497ffa17cae3fa7a1c21aad076ff292e1 (diff)
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/closefrom.210
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libc/sys/closefrom.2 b/lib/libc/sys/closefrom.2
index db41c617dc7f..64c210f7897a 100644
--- a/lib/libc/sys/closefrom.2
+++ b/lib/libc/sys/closefrom.2
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd April 12, 2020
+.Dd March 3, 2022
.Dt CLOSEFROM 2
.Os
.Sh NAME
@@ -56,8 +56,12 @@ and
.Fa highfd
inclusive, clamped to the range of open file descriptors.
Any errors encountered while closing file descriptors are ignored.
-There are currently no defined
-.Fa flags .
+Supported
+.Fa flags :
+.Bl -tag -width ".Dv CLOSE_RANGE_CLOEXEC"
+.It Dv CLOSE_RANGE_CLOEXEC
+Set the close-on-exec flag on descriptors in the range instead of closing them.
+.El
.Sh RETURN VALUES
Upon successful completion,
.Fn close_range