Sign in
cobalt
/
cobalt
/
25902c6cb1ab9cfd8ae2ee6b0fb52953f73deda5
/
.
/
third_party
/
musl
/
src
/
dirent
/
rewinddir.c
blob: 7ddda437213d182bd90b3aa119ca4a43720d6cfc [
file
] [
log
] [
blame
]
#include
<dirent.h>
#include
<unistd.h>
#include
"__dirent.h"
#include
"lock.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
);
}