diff options
Diffstat (limited to 'otherlibs/unix/rewinddir.c')
-rw-r--r-- | otherlibs/unix/rewinddir.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/otherlibs/unix/rewinddir.c b/otherlibs/unix/rewinddir.c new file mode 100644 index 000000000..4062a46c7 --- /dev/null +++ b/otherlibs/unix/rewinddir.c @@ -0,0 +1,15 @@ +#include <mlvalues.h> +#include "unix.h" +#include <sys/types.h> +#ifdef HAS_DIRENT +#include <dirent.h> +#else +#include <sys/dir.h> +#endif + +value unix_rewinddir(d) /* ML */ + value d; +{ + rewinddir((DIR *) d); + return Atom(0); +} |