diff options
Diffstat (limited to 'src/stat/lstat.c')
-rw-r--r-- | src/stat/lstat.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/stat/lstat.c b/src/stat/lstat.c index 5b89f290..6822fcae 100644 --- a/src/stat/lstat.c +++ b/src/stat/lstat.c @@ -1,14 +1,7 @@ #include <sys/stat.h> #include <fcntl.h> -#include "syscall.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); } - -weak_alias(lstat, lstat64); |