RTEMS Logo

RTEMS 4.10.2 On-Line Library


Files and Directories Manager opendir - Open a Directory

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

4.4.1: opendir - Open a Directory

CALLING SEQUENCE:

#include <sys/types.h>
#include <dirent.h>

int opendir(
  const char *dirname
);

STATUS CODES:

EACCES
Search permission was denied on a component of the path prefix of dirname, or read permission is 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.

DESCRIPTION:

This routine opens a directory stream corresponding to the directory specified by the dirname argument. The directory stream is positioned at the first entry.

NOTES:

The routine is implemented in Cygnus newlib.


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2008 OAR Corporation