4 typedef struct DIR DIR;
12 char d_name
[FILENAME_MAX
]; /* File name. */
13 unsigned char d_type
; /* file type to prevent lstat after readdir */
16 DIR *opendir(const char *dirname
);
17 struct dirent
*readdir(DIR *dir
);
18 int closedir(DIR *dir
);