|
NAMEclosefrom , close_range —
delete open file descriptors
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <unistd.h>
void
int
DESCRIPTIONTheclosefrom () 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
RETURN VALUESUpon successful completion,close_range () returns a
value of 0. Otherwise, a value of -1 is returned and the global variable
errno is set to indicate the error.
ERRORSTheclose_range () system call will fail if:
SEE ALSOclose(2)HISTORYTheclosefrom () function first appeared in
FreeBSD 8.0.
Visit the GSP FreeBSD Man Page Interface. |