repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
remove leftover declarations for removed functions from pthread_impl.h
[musl.git]
/
src
/
dirent
/
rewinddir.c
blob
f2053008b36c2d8e0b35dd60676cbb0b455a813f
1
#include <dirent.h>
2
#include <unistd.h>
3
#include
"__dirent.h"
4
#include
"libc.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
}