disable lfs64 aliases for remapped time64 functions
[musl] / src / stat / stat.c
index c5491eb..ea70efc 100644 (file)
@@ -1,10 +1,11 @@
 #include <sys/stat.h>
-#include "syscall.h"
-#include "libc.h"
+#include <fcntl.h>
 
-int stat(const char *path, struct stat *buf)
+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);
+#if !_REDIR_TIME64
+weak_alias(stat, stat64);
+#endif