projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
semtimedop: add time64 syscall support, decouple 32-bit time_t
[musl]
/
src
/
stat
/
stat.c
diff --git
a/src/stat/stat.c
b/src/stat/stat.c
index
67640cc
..
528870d
100644
(file)
--- a/
src/stat/stat.c
+++ b/
src/stat/stat.c
@@
-1,10
+1,9
@@
#include <sys/stat.h>
#include <sys/stat.h>
-#include "syscall.h"
-#include "libc.h"
+#include <fcntl.h>
-int stat(const char *
path, struct stat *
buf)
+int stat(const char *
restrict path, struct stat *restrict
buf)
{
{
- return
syscall2(__NR_stat64, (long)path, (long)buf
);
+ return
fstatat(AT_FDCWD, path, buf, 0
);
}
}
-
LFS64(stat
);
+
weak_alias(stat, stat64
);