X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstat%2Fstat.c;h=ea70efc4a0a4e27a0a160541dc047377b90eaee0;hb=0ea78a6421322cab24d448670006ee2f99af3ac9;hp=c6de7168dfda86343b0ec16a5c7c6fa05a773e55;hpb=400c5e5c8307a2ebe44ef1f203f5a15669f20347;p=musl diff --git a/src/stat/stat.c b/src/stat/stat.c index c6de7168..ea70efc4 100644 --- a/src/stat/stat.c +++ b/src/stat/stat.c @@ -1,10 +1,11 @@ #include -#include "syscall.h" -#include "libc.h" +#include 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