fix double-processing of DT_RELR relocations in ldso relocating itself
[musl] / src / stat / stat.c
index b4433a0..23570e7 100644 (file)
@@ -1,15 +1,7 @@
 #include <sys/stat.h>
 #include <fcntl.h>
-#include "syscall.h"
-#include "libc.h"
 
 int stat(const char *restrict path, struct stat *restrict buf)
 {
-#ifdef SYS_stat
-       return syscall(SYS_stat, path, buf);
-#else
-       return syscall(SYS_fstatat, AT_FDCWD, path, buf, 0);
-#endif
+       return fstatat(AT_FDCWD, path, buf, 0);
 }
-
-LFS64(stat);