mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
fix statvfs syscalls (missing size argument)
This commit is contained in:
parent
66def4e776
commit
7e795ca7ed
3 changed files with 3 additions and 3 deletions
|
@ -11,5 +11,5 @@ struct statvfs {
|
||||||
unsigned long f_frsize;
|
unsigned long f_frsize;
|
||||||
fsfilcnt_t f_favail;
|
fsfilcnt_t f_favail;
|
||||||
unsigned long f_flag;
|
unsigned long f_flag;
|
||||||
unsigned long __reserved[2];
|
unsigned long __reserved[3];
|
||||||
};
|
};
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
int fstatvfs(int fd, struct statvfs *buf)
|
int fstatvfs(int fd, struct statvfs *buf)
|
||||||
{
|
{
|
||||||
return syscall(SYS_fstatfs, fd, buf);
|
return syscall(SYS_fstatfs, fd, sizeof *buf, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
weak_alias(fstatvfs, fstatfs);
|
weak_alias(fstatvfs, fstatfs);
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
int statvfs(const char *path, struct statvfs *buf)
|
int statvfs(const char *path, struct statvfs *buf)
|
||||||
{
|
{
|
||||||
return syscall(SYS_statfs, path, buf);
|
return syscall(SYS_statfs, path, sizeof *buf, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
weak_alias(statvfs, statfs);
|
weak_alias(statvfs, statfs);
|
||||||
|
|
Loading…
Add table
Reference in a new issue