The
closefrom()
system call deletes all open file descriptors greater than or equal to
lowfd
from the per-process object reference table.
Any errors encountered while closing file descriptors are ignored.
The
close_range()
system call deletes all open file descriptors between
lowfd
and
highfd
inclusive, clamped to the range of open file descriptors.
Any errors encountered while closing file descriptors are ignored.
Supported
flags:
CLOSE_RANGE_CLOEXEC
|
|
Set the close-on-exec flag on descriptors in the range instead of closing them.
|