DIRENT.H(7) Miscellaneous Information Manual DIRENT.H(7)

dirent.hformat of directory entries

#include <dirent.h>

The internal format of directories is unspecified.

The <dirent.h> header defines the following data type through :

A type representing a directory stream.

It also defines the structure which includes the following members: ino_t d_ino file serial number char d_name[] name of entry

The type is defined as described in <sys/types.h>.

The character array is of unspecified size, but the number of bytes preceding the terminating null byte will not exceed {NAME_MAX}.

The following are declared as functions and may also be defined as macros. Function prototypes must be provided for use with an ISO C compiler. int closedir(DIR *); DIR *opendir(const char *); struct dirent *readdir(DIR *); int readdir_r(DIR *, struct dirent *, struct dirent **); void rewinddir(DIR *); void seekdir(DIR *, long int); long int telldir(DIR *);

None.

None.

closedir(3) , opendir(3) , readdir(3) , rewinddir(3) , seekdir(3) , telldir(3) , <sys/types.h> .

February 1997 posix.fail