X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstat%2Fstat.c;h=c6de7168dfda86343b0ec16a5c7c6fa05a773e55;hb=01739902843e93ec6e9bf8e17d32c8ddf73fad81;hp=67640cc1589a591759248971c58cbc4776006d2d;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/stat/stat.c b/src/stat/stat.c index 67640cc1..c6de7168 100644 --- a/src/stat/stat.c +++ b/src/stat/stat.c @@ -2,9 +2,9 @@ #include "syscall.h" #include "libc.h" -int stat(const char *path, struct stat *buf) +int stat(const char *restrict path, struct stat *restrict buf) { - return syscall2(__NR_stat64, (long)path, (long)buf); + return syscall(SYS_stat, path, buf); } LFS64(stat);