X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstat%2Fstat.c;h=ea70efc4a0a4e27a0a160541dc047377b90eaee0;hb=0ea78a6421322cab24d448670006ee2f99af3ac9;hp=0bec9d6fa972e7dab9c1611a867214fa85f28917;hpb=63a4c9adf227a6f6a5f7f70f6dc3f8863f846927;p=musl diff --git a/src/stat/stat.c b/src/stat/stat.c index 0bec9d6f..ea70efc4 100644 --- a/src/stat/stat.c +++ b/src/stat/stat.c @@ -1,14 +1,11 @@ #include #include -#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); } +#if !_REDIR_TIME64 weak_alias(stat, stat64); +#endif