close_range.2: Glibc added a wrapper recently

Fixes: c2356ba085
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Alejandro Colomar 2021-08-08 10:41:33 +02:00 committed by Michael Kerrisk
parent c8219af767
commit 71a62d6c3c
1 changed files with 0 additions and 5 deletions

View File

@ -33,9 +33,6 @@ close_range \- close all file descriptors in a given range
.BI "int close_range(unsigned int " first ", unsigned int " last , .BI "int close_range(unsigned int " first ", unsigned int " last ,
.BI " unsigned int " flags ); .BI " unsigned int " flags );
.fi .fi
.PP
.IR Note :
There is no glibc wrapper for this system call; see NOTES.
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR close_range () .BR close_range ()
@ -100,8 +97,6 @@ Library support was added in glibc in version 2.34.
.BR close_range () .BR close_range ()
is a nonstandard function that is also present on FreeBSD. is a nonstandard function that is also present on FreeBSD.
.SH NOTES .SH NOTES
Glibc does not provide a wrapper for this system call; call it using
.BR syscall (2).
.SS Closing all open file descriptors .SS Closing all open file descriptors
.\" 278a5fbaed89dacd04e9d052f4594ffd0e0585de .\" 278a5fbaed89dacd04e9d052f4594ffd0e0585de
To avoid blindly closing file descriptors To avoid blindly closing file descriptors