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 2014-04-02 20:57:59 by $MirOS: src/scripts/roff2htm,v 1.79 2014/02/10 00:36:11 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‒2014 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.