projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix misplaced *'s in string functions (harmless)
[musl]
/
src
/
stat
/
fstatvfs.c
diff --git
a/src/stat/fstatvfs.c
b/src/stat/fstatvfs.c
index
83bd748
..
806c3fd
100644
(file)
--- a/
src/stat/fstatvfs.c
+++ b/
src/stat/fstatvfs.c
@@
-4,7
+4,11
@@
int fstatvfs(int fd, struct statvfs *buf)
{
int fstatvfs(int fd, struct statvfs *buf)
{
- return syscall2(__NR_fstatfs64, fd, (long)buf);
+#ifdef SYS_fstatfs64
+ return syscall(SYS_fstatfs64, fd, sizeof *buf, buf);
+#else
+ return syscall(SYS_fstatfs, fd, buf);
+#endif
}
weak_alias(fstatvfs, fstatfs);
}
weak_alias(fstatvfs, fstatfs);