DOKK / manpages / debian 12 / libbsd-dev / closefrom.3bsd.en
closefrom(3bsd) 3bsd closefrom(3bsd)

closefromdelete open file descriptors

library “libbsd”

#include <unistd.h> (See libbsd(7) for include usage.)
void
closefrom(int lowfd);

The () 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.

close(2)

The closefrom() function first appeared in FreeBSD 8.0.

June 12, 2009 Debian