semtimedop: add time64 syscall support, decouple 32-bit time_t
[musl] / src / stat / stat.c
index 0bec9d6..528870d 100644 (file)
@@ -1,14 +1,9 @@
 #include <sys/stat.h>
 #include <fcntl.h>
-#include "syscall.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);
 }
 
 weak_alias(stat, stat64);