X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstat%2Fstat.c;h=23570e7a2460aacaabc7d8b22048a012de8fdac3;hb=269d193820342dc109f39909d78fb30f4c978f76;hp=c5491eb0ed26364d2d7ce5f6442c7ba00087dee8;hpb=aa398f56fa398f2202b04e82c67f822f3233786f;p=musl diff --git a/src/stat/stat.c b/src/stat/stat.c index c5491eb0..23570e7a 100644 --- a/src/stat/stat.c +++ b/src/stat/stat.c @@ -1,10 +1,7 @@ #include -#include "syscall.h" -#include "libc.h" +#include -int stat(const char *path, struct stat *buf) +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);