X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fstat%2Flstat.c;h=6fe004dec28c49e212821e413d2b4b35973bff85;hb=9afed99c224ab33578623744f40d31bee84ec6ba;hp=9053d998dc56006071f2f9b4065c1ed4f061b8c4;hpb=aa398f56fa398f2202b04e82c67f822f3233786f;p=musl diff --git a/src/stat/lstat.c b/src/stat/lstat.c index 9053d998..6fe004de 100644 --- a/src/stat/lstat.c +++ b/src/stat/lstat.c @@ -1,10 +1,11 @@ #include -#include "syscall.h" -#include "libc.h" +#include -int lstat(const char *path, struct stat *buf) +int lstat(const char *restrict path, struct stat *restrict buf) { - return syscall(SYS_lstat, path, buf); + return fstatat(AT_FDCWD, path, buf, AT_SYMLINK_NOFOLLOW); } -LFS64(lstat); +#if !_REDIR_TIME64 +weak_alias(lstat, lstat64); +#endif