projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor all stat functions in terms of fstatat
[musl]
/
src
/
stat
/
stat.c
diff --git
a/src/stat/stat.c
b/src/stat/stat.c
index
0bec9d6
..
b4e6279
100644
(file)
--- a/
src/stat/stat.c
+++ b/
src/stat/stat.c
@@
-4,11
+4,7
@@
int stat(const char *restrict path, struct stat *restrict buf)
{
int stat(const char *restrict path, struct stat *restrict buf)
{
-#ifdef SYS_stat
- return syscall(SYS_stat, path, buf);
-#else
- return syscall(SYS_fstatat, AT_FDCWD, path, buf, 0);
-#endif
+ return fstatat(AT_FDCWD, path, buf, 0);
}
weak_alias(stat, stat64);
}
weak_alias(stat, stat64);