Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
6104dae9088da7ffd9346671be867a43a4b03295
/
.
/
src
/
dirent
/
seekdir.c
blob: bf6cc6ec40453ed5a7bf4cffbfb5ef573e1ddc6e [
file
] [
log
] [
blame
]
#include
<dirent.h>
#include
<unistd.h>
#include
"__dirent.h"
#include
"lock.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
);
}