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 2013-04-27 00:20:00 by $MirOS: src/scripts/roff2htm,v 1.77 2013/01/01 20:49:09 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‒2013 The MirOS Project, Germany.
This product includes material provided by Thorsten Glaser.
This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report – diffs preferred.