You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
273 B

/*
* Simple dirent routines for Linux.
*
* (C) 1991 Linus Torvalds
*/
#include <unistd.h>
#include <dirent.h>
#include <errno.h>
void rewinddir(DIR * dir)
{
if (!dir) {
errno = EBADF;
return;
}
dir->dd_size = dir->dd_loc = 0;
lseek(dir->dd_fd,0L,SEEK_SET);
}