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

  man pages->Linux man pages -> closedir (3)              
Title
Content
Arch
Section
 

CLOSEDIR(3)

Contents


NAME    [Toc]    [Back]

       closedir - close a directory

SYNOPSIS    [Toc]    [Back]

       #include <sys/types.h>

       #include <dirent.h>

       int closedir(DIR *dir);

DESCRIPTION    [Toc]    [Back]

       The  closedir()	function  closes  the directory stream associated with
       dir.  The directory stream descriptor dir is not available  after  this
       call.

RETURN VALUE    [Toc]    [Back]

       The closedir() function returns 0 on success or -1 on failure.

ERRORS    [Toc]    [Back]

       EBADF  Invalid directory stream descriptor dir.

CONFORMING TO    [Toc]    [Back]

       SVID 3, POSIX, BSD 4.3

SEE ALSO    [Toc]    [Back]

      
      
       close(2), opendir(3), readdir(3), rewinddir(3), seekdir(3), telldir(3),
       scandir(3)



				  1995-06-11			   CLOSEDIR(3)
[ Back ]
 Similar pages
Name OS Title
lndir OpenBSD create a shadow directory of symbolic links to another directory tree
lndir Tru64 create a shadow directory of symbolic links to another directory tree
cd_drec Tru64 reads the Directory Record from a CDROM directory
cd_cdrec Tru64 reads the Directory Record from a CDROM directory
dirent HP-UX format of directory streams and directory entries
cddrec Tru64 Read Directory Record from CD-ROM directory
fclose Linux close a stream
fclose OpenBSD close a stream
ufmCloseTypeface IRIX close a typeface
fclose NetBSD close a stream
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service