OAR

RTEMS 4.5.1-pre3 On-Line Library


Files and Directories Manager closedir - Ends directory read operation

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

4.4.6: closedir - Ends directory read operation

CALLING SEQUENCE:

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

int closedir(
  DIR *dirp
);

STATUS CODES:

EBADF
Invalid file descriptor

DESCRIPTION:

The directory stream associated with dirp is closed. The value in dirp may not be usable after a call to closedir().

NOTES:

NONE

The argument to closedir() must be a pointer returned by opendir(). If it is not, the results are not portable and most likely unpleasant.

The routine is implemented in Cygnus newlib.


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2000 OAR Corporation