CLOSEFROM(2) BSD Programmer's Manual CLOSEFROM(2)
closefrom - delete many descriptors
#include <unistd.h> int closefrom(int fd);
The closefrom() call deletes all descriptors numbered fd and higher from the per-process file descriptor table. It is effectively the same as cal- ling close(2) on each descriptor.
Upon successful completion, a value of 0 is returned. Otherwise, a value of -1 is returned and the global integer variable errno is set to indi- cate the error.
closefrom() will fail if: [EBADF] fd is greater than any open file descriptor. [EINTR] An interrupt was received.
close(2) MirOS BSD #10-current January 11, 2004 1
Generated on 2016-04-09 18:24:16 by $MirOS: src/scripts/roff2htm,v 1.83 2016/03/26 23:38:28 tg Exp $
These manual pages and other documentation are copyrighted by their respective writers;
their source is available at our CVSweb,
AnonCVS, and other mirrors. The rest is Copyright © 2002–2016 The MirOS Project, Germany.
This product includes material provided by mirabilos.
This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report – diffs preferred.