closefls(2)
NAME
closefls − close a set of file descriptors
SYNOPSIS
int closefls (fdstart, fdend)
int fdstart;
int fdend;
DESCRIPTION
closefls closes all open file descriptors in the range of fdstart to fdend, inclusive. closefls will fail if fdstart is less than zero, or fdend is greater than or equal to the maximum number of open file descriptor allowed to the calling process.
RETURN VALUE
Upon successful completion, a value of 0 is returned. Otherwise, a value of −1 is returned.
SEE ALSO
close(2), creat(2), dup(2), exec(2), fcntl(2), open(2), pipe(2), getrlimit(2).
CX/UX Programmer’s Reference Manual