drop use of pthread_once for aio thread stack size init
[musl] / src / stat / lstat.c
index afdb553..6fe004d 100644 (file)
@@ -1,10 +1,11 @@
 #include <sys/stat.h>
-#include "syscall.h"
-#include "libc.h"
+#include <fcntl.h>
 
-int lstat(const char *path, struct stat *buf)
+int lstat(const char *restrict path, struct stat *restrict buf)
 {
-       return syscall2(__NR_lstat64, (long)path, (long)buf);
+       return fstatat(AT_FDCWD, path, buf, AT_SYMLINK_NOFOLLOW);
 }
 
-LFS64(lstat);
+#if !_REDIR_TIME64
+weak_alias(lstat, lstat64);
+#endif