aboutsummaryrefslogtreecommitdiff
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-03 17:21:58 +0000
commitf3f3e3c44d3b1776653bbf19eab17ce006a815d8 (patch)
tree6e9ee13aff676e1e89dc7a9ea6ff72511caf326f /lib/libc/sys
parent33cbbf268f7d0f3daff0c2aa06836d932faf56a9 (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