CLOSEFROM(2) BSD System Calls Manual CLOSEFROM(2)NAMEclosefrom — delete many descriptors
LIBRARY
Standard C Library (libc, -lc)
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 ALSOclose(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⟩.
BSD April 10, 2004 BSD