Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
83b42d94bd1009da6a95052d9ef0edeb1c73c8e4
/
.
/
src
/
dirent
/
seekdir.c
blob: 5be47d4a15564178eb84e73a0d9a9569fd8b30b3 [
file
] [
log
] [
blame
]
#include
<dirent.h>
#include
<unistd.h>
#include
"__dirent.h"
#include
"libc.h"
void
seekdir
(
DIR
*
dir
,
long
off
)
{
LOCK
(
dir
->
lock
);
dir
->
tell
=
lseek
(
dir
->
fd
,
off
,
SEEK_SET
);
dir
->
buf_pos
=
dir
->
buf_end
=
0
;
UNLOCK
(
dir
->
lock
);
}