X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstat%2Fstat.c;h=528870d2fcb786060aef053ad1b1ddddabf5ee02;hb=a0993f8f0f161423ecdcb754f282ffd2fe47a7b5;hp=c6de7168dfda86343b0ec16a5c7c6fa05a773e55;hpb=400c5e5c8307a2ebe44ef1f203f5a15669f20347;p=musl diff --git a/src/stat/stat.c b/src/stat/stat.c index c6de7168..528870d2 100644 --- a/src/stat/stat.c +++ b/src/stat/stat.c @@ -1,10 +1,9 @@ #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); +weak_alias(stat, stat64);