diff options
Diffstat (limited to 'src/stat/stat.c')
-rw-r--r-- | src/stat/stat.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/stat/stat.c b/src/stat/stat.c index 0bec9d6f..23570e7a 100644 --- a/src/stat/stat.c +++ b/src/stat/stat.c @@ -1,14 +1,7 @@ #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); |