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
ldso: notify the debugger when we're doing a dlopen
[musl.git]
/
src
/
dirent
/
seekdir.c
blob
bf6cc6ec40453ed5a7bf4cffbfb5ef573e1ddc6e
1
#include <dirent.h>
2
#include <unistd.h>
3
#include
"__dirent.h"
4
#include
"lock.h"
5
6
void
seekdir
(
DIR
*
dir
,
long
off
)
7
{
8
LOCK
(
dir
->
lock
);
9
dir
->
tell
=
lseek
(
dir
->
fd
,
off
,
SEEK_SET
);
10
dir
->
buf_pos
=
dir
->
buf_end
=
0
;
11
UNLOCK
(
dir
->
lock
);
12
}