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