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

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

OPENDIR(3)

Contents


NAME    [Toc]    [Back]

       opendir - open a directory

SYNOPSIS    [Toc]    [Back]

       #include <sys/types.h>

       #include <dirent.h>

       DIR *opendir(const char *name);

DESCRIPTION    [Toc]    [Back]

       The  opendir()  function  opens a directory stream corresponding to the
       directory name, and returns a pointer to  the  directory  stream.   The
       stream is positioned at the first entry in the directory.

RETURN VALUE    [Toc]    [Back]

       The  opendir()  function  returns  a pointer to the directory stream or
       NULL if an error occurred.

ERRORS    [Toc]    [Back]

       EACCES Permission denied.

       EMFILE Too many file descriptors in use by process.

       ENFILE Too many files are currently open in the system.

       ENOENT Directory does not exist, or name is an empty string.

       ENOMEM Insufficient memory to complete the operation.

       ENOTDIR    [Toc]    [Back]
	      name is not a directory.

CONFORMING TO    [Toc]    [Back]

       SVID 3, POSIX, BSD 4.3

SEE ALSO    [Toc]    [Back]

      
      
       open(2), readdir(3), closedir(3), rewinddir(3), seekdir(3), telldir(3),
       scandir(3)



				  1995-06-11			    OPENDIR(3)
[ Back ]
 Similar pages
Name OS Title
remotedir IRIX open a remote directory
TIFFSetDirectory IRIX set the current directory for an open TIFF file
TIFFReadDirectory IRIX get the contents of the next directory in an open TIFF file
TIFFWriteDirectory IRIX write the current directory in an open TIFF file
startdesktop IRIX open an IRIX Interactive Desktop dirview of home directory
lndir Tru64 create a shadow directory of symbolic links to another directory tree
lndir OpenBSD create a shadow directory of symbolic links to another directory tree
dirent HP-UX format of directory streams and directory entries
cd_cdrec Tru64 reads the Directory Record from a CDROM directory
cd_drec Tru64 reads the Directory Record from a CDROM directory
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service