MirOS Manual: closefrom(2)

CLOSEFROM(2)               BSD Programmer's Manual                CLOSEFROM(2)

NAME

     closefrom - delete many descriptors

SYNOPSIS

     #include <unistd.h>

     int
     closefrom(int fd);

DESCRIPTION

     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.

RETURN VALUES

     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.

ERRORS

     closefrom() will fail if:

     [EBADF]       fd is greater than any open file descriptor.

     [EINTR]       An interrupt was received.

SEE ALSO

     close(2)

MirOS BSD #10-current          January 11, 2004                              1

Generated on 2014-07-04 21:17:45 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.