CLOSEFROM(2)

NAME
closefrom - delete many descriptors

LIBRARY
libc

SYNOPSIS
#include <unistd.h>
int
closefrom(int fd);

DESCRIPTION
The closefrom() system call deletes all descriptors numbered fd and higher from the per-process file descriptor table. It is effectively the same as calling close(2) on each descriptor.

IMPLEMENTATION NOTES
The behaviour of the closefrom system call in DragonFly is similar to that of SunOS except for error returned in the case of an abort.

RETURN VALUES
The value of 0 is returned in all cases, or EINTR when an interrupt or abort is received.

SEE ALSO
close(2)

HISTORY
The closefrom system call appeared in DragonFly 1.2. It was originally introduced in some version of Sun Solaris.

AUTHORS
This system call is written by Joerg Sonnenberger <joerg@bec.de>.