1 2 3 4 5 6 7 8 9 10 11 12 13
#include <dirent.h> #include "sys/types.h" #include "unistd.h" #include "_dirent.h" void rewinddir(DIR * dirp) { lseek(dirp->fd, 0, SEEK_SET); } /* POSIX(1) */