X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstat%2Fstat.c;h=c6de7168dfda86343b0ec16a5c7c6fa05a773e55;hb=d4c04d1360ca0f9dfe1b8b1454f0bd1688cdc066;hp=9847552afddf29e2f590f8fe43d5a5bb30ac7f43;hpb=cfe373146d232d7c89a60920f77b9451bcfee96b;p=musl diff --git a/src/stat/stat.c b/src/stat/stat.c index 9847552a..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_stat, (long)path, (long)buf); + return syscall(SYS_stat, path, buf); } LFS64(stat);