☰
Debian Codegraph
@
0.0~git20260129.ec0effd-3
0.0~git20260129.ec0effd-2
/
/
libc-top-half
/
musl
/
src
/
dirent
/
rewinddir.c
☽
☼
libc-top-half/musl/src/dirent/rewinddir.c
code
plain
raw
MIT
2005-2019 Rich Felker <
[email protected]
>; 2005-2019 Many other contributors
debian/copyright
1
#include <dirent.h>
2
#include <unistd.h>
3
#include "__dirent.h"
4
#include "lock.h"
5
6
void rewinddir(DIR *dir)
7
{
8
LOCK(dir->lock);
9
lseek(dir->fd, 0, SEEK_SET);
10
dir->buf_pos = dir->buf_end = 0;
11
dir->tell = 0;
12
UNLOCK(dir->lock);
13
}