*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> closefrom (2)              
Title
Content
Arch
Section
 

CLOSEFROM(2)

Contents


NAME    [Toc]    [Back]

     closefrom - delete many descriptors

SYNOPSIS    [Toc]    [Back]

     #include <unistd.h>

     int
     closefrom(int fd);

DESCRIPTION    [Toc]    [Back]

     The closefrom() call deletes all descriptors numbered fd and
higher from
     the  per-process  file  descriptor table.  It is effectively
the same as
     calling close(2) on each descriptor.

RETURN VALUES    [Toc]    [Back]

     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 indicate
 the error.

ERRORS    [Toc]    [Back]

     closefrom() will fail if:

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

     [EINTR]       An interrupt was received.

SEE ALSO    [Toc]    [Back]

      
      
     close(2)

OpenBSD     3.6                        January      11,      2004
[ Back ]
 Similar pages
Name OS Title
dup Tru64 Control open file descriptors
fcntl Tru64 Control open file descriptors
sendfile Linux transfer data between file descriptors
dup2 Tru64 Control open file descriptors
poll Tru64 Monitor conditions on multiple file descriptors
poll HP-UX monitor I/O conditions on multiple file descriptors
poll HP-UX monitor I/O conditions on multiple file descriptors
devpoll.h Tru64 Device driver for a fast poll on many file descriptors
lockf Tru64 Lock and unlocks regions of open file descriptors
poll Tru64 Device driver for a fast poll on many file descriptors
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service