Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
d19adeec52ee2e5f9524d306576cfd6bfc4a031a
/
.
/
src
/
dirent
/
rewinddir.c
blob: c6138f7c9944ce80b372fd08d2d80670416942b0 [
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
);
}