Sign in
cobalt
/
cobalt
/
b95ea55ccebda33f820d043e4b4dc85c10d7584d
/
.
/
third_party
/
musl
/
src
/
dirent
/
rewinddir.c
blob: f2053008b36c2d8e0b35dd60676cbb0b455a813f [
file
] [
log
] [
blame
]
#include
<dirent.h>
#include
<unistd.h>
#include
"__dirent.h"
#include
"libc.h"
void
rewinddir
(
DIR
*
dir
)
{
LOCK
(
dir
->
lock
);
lseek
(
dir
->
fd
,
0
,
SEEK_SET
);
dir
->
buf_pos
=
dir
->
buf_end
=
0
;
dir
->
tell
=
0
;
UNLOCK
(
dir
->
lock
);
}