projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
aarch64: add HWCAP_ flags from linux v4.17
[musl]
/
src
/
stat
/
fstat.c
diff --git
a/src/stat/fstat.c
b/src/stat/fstat.c
index
b561176
..
ab4afc0
100644
(file)
--- a/
src/stat/fstat.c
+++ b/
src/stat/fstat.c
@@
-14,7
+14,11
@@
int fstat(int fd, struct stat *st)
char buf[15+3*sizeof(int)];
__procfdname(buf, fd);
+#ifdef SYS_stat
return syscall(SYS_stat, buf, st);
+#else
+ return syscall(SYS_fstatat, AT_FDCWD, buf, st, 0);
+#endif
}
LFS64(fstat);