2 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
4 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
10 #include "dirstream.h"
13 /* rewinddir() just does an lseek(fd,0,0) - see close for comments */
14 void rewinddir(DIR * dir)
20 __UCLIBC_MUTEX_LOCK(dir->dd_lock);
21 lseek(dir->dd_fd, 0, SEEK_SET);
22 dir->dd_nextoff = dir->dd_nextloc = dir->dd_size = 0;
23 __UCLIBC_MUTEX_UNLOCK(dir->dd_lock);