X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstat%2Flstat.c;h=6fe004dec28c49e212821e413d2b4b35973bff85;hb=9afed99c224ab33578623744f40d31bee84ec6ba;hp=5e8b84fcffad624fb426986681996a575b3f87f8;hpb=dd5f50da6f6c3df5647e922e47f8568a8896a752;p=musl diff --git a/src/stat/lstat.c b/src/stat/lstat.c index 5e8b84fc..6fe004de 100644 --- a/src/stat/lstat.c +++ b/src/stat/lstat.c @@ -1,15 +1,11 @@ #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); +#if !_REDIR_TIME64 +weak_alias(lstat, lstat64); +#endif