COHERENT manpages
This page displays the COHERENT manpage for closedir() [Close a directory stream].
List of available manpages
Index
closedir() -- General Function (libc) Close a directory stream #include <dirent.h> int closedir(dirp) DIR *dirp; The COHERENT function closedir() is one of a set of COHERENT routines that manipulate directories in a device-independent manner. It closes the directory stream pointed to by dirp. closedir() returns zero if no error occurs. If something goes wrong, it returns -1 and sets errno to an appropriate value. Example For an example of this system call, see the Lexicon entry for opendir(). See Also dirent.h, getdents(), libc, opendir(), readdir(), rewinddir(), seekdir(), telldir() POSIX Standard, §5.1.2 Notes The COHERENT implementation of the dirent routines was written by D. Gwynn.