projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix inconsistent signature of __libc_start_main
[musl]
/
src
/
stat
/
lstat.c
diff --git
a/src/stat/lstat.c
b/src/stat/lstat.c
index
9053d99
..
6fe004d
100644
(file)
--- a/
src/stat/lstat.c
+++ b/
src/stat/lstat.c
@@
-1,10
+1,11
@@
#include <sys/stat.h>
#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
syscall(SYS_lstat, path, buf
);
+ return
fstatat(AT_FDCWD, path, buf, AT_SYMLINK_NOFOLLOW
);
}
}
-LFS64(lstat);
+#if !_REDIR_TIME64
+weak_alias(lstat, lstat64);
+#endif