projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix double-processing of DT_RELR relocations in ldso relocating itself
[musl]
/
src
/
stat
/
stat.c
diff --git
a/src/stat/stat.c
b/src/stat/stat.c
index
c6de716
..
23570e7
100644
(file)
--- a/
src/stat/stat.c
+++ b/
src/stat/stat.c
@@
-1,10
+1,7
@@
#include <sys/stat.h>
-#include "syscall.h"
-#include "libc.h"
+#include <fcntl.h>
int stat(const char *restrict path, struct stat *restrict buf)
{
- return
syscall(SYS_stat, path, buf
);
+ return
fstatat(AT_FDCWD, path, buf, 0
);
}
-
-LFS64(stat);