fix statvfs syscalls (missing size argument)

This commit is contained in:
Rich Felker
2011-04-03 15:42:31 -04:00
parent 66def4e776
commit 7e795ca7ed
3 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@
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);

View File

@ -4,7 +4,7 @@
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);