X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstat%2Flstat.c;h=6822fcae4b1edb76d93a49de1361d641ad40d7cc;hb=1d5750b95c06913a1f18a995481276d698d20fae;hp=5e8b84fcffad624fb426986681996a575b3f87f8;hpb=dd5f50da6f6c3df5647e922e47f8568a8896a752;p=musl diff --git a/src/stat/lstat.c b/src/stat/lstat.c index 5e8b84fc..6822fcae 100644 --- a/src/stat/lstat.c +++ b/src/stat/lstat.c @@ -1,15 +1,7 @@ #include #include -#include "syscall.h" -#include "libc.h" int lstat(const char *restrict path, struct stat *restrict buf) { -#ifdef SYS_lstat - return syscall(SYS_lstat, path, buf); -#else - return syscall(SYS_fstatat, AT_FDCWD, path, buf, AT_SYMLINK_NOFOLLOW); -#endif + return fstatat(AT_FDCWD, path, buf, AT_SYMLINK_NOFOLLOW); } - -LFS64(lstat);