#include <sys/stat.h> #include <sys/types.h> int mkdir(const char *pathname, mode_t mode);
#include <unistd.h> int rmdir(const char *pathname);
#include <stdio.h> int remove(const char *pathname);
#include <sys/types.h> #include <dirent.h> DIR *opendir(const char *name); DIR *fdopendir(int fd); struct dirent { ino_t d_ino; char d_name[]; }
#include <dirent.h> struct dirent *readdir(DIR *dirp);
#include <sys/types.h> #include <dirent.h> void rewinddir(DIR *dirp); int closedir(DIR *dirp);