The manual Page
Version française
   
index | glossary | news | downloads | links ]
  man pages
section 1
section 2
section 3
section 4
section 5
section 6
section 7
section 8
section 9
section l
section n
section o
 
news
glossary
links
downloads
 
credits
contact
 
 
search
 
last update
19/02/2003
Valid HTML 4.0!
Valid CSS!
Hit-Parade
Mesurez votre audience


  opendir(3)
OPENDIR(3)          Linux Programmer's Manual          OPENDIR(3)

NAME
       opendir - open a directory

SYNOPSIS
       #include <sys/types.h>

       #include <dirent.h>

       DIR *opendir(const char *name);

DESCRIPTION
       The  opendir()  function  opens  a directory stream corre-
       sponding 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
       The opendir() function returns a pointer to the  directory
       stream or NULL if an error occurred.

ERRORS
       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
              name is not a directory.

CONFORMING TO
       SVID 3, POSIX, BSD 4.3

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

                           11 June 1995                         1

printable format printable format



Copyright © 2000-2002 themanualpage.org - This site is submissive to the terms of the GNU GPL and FDL licences.