Lines Matching defs:buf
5 static int __statfs(const char *path, struct statfs *buf)
7 *buf = (struct statfs){0};
9 return syscall(SYS_statfs64, path, sizeof *buf, buf);
11 return syscall(SYS_statfs, path, buf);
15 static int __fstatfs(int fd, struct statfs *buf)
17 *buf = (struct statfs){0};
19 return syscall(SYS_fstatfs64, fd, sizeof *buf, buf);
21 return syscall(SYS_fstatfs, fd, buf);
45 int statvfs(const char *restrict path, struct statvfs *restrict buf)
49 fixup(buf, &kbuf);
53 int fstatvfs(int fd, struct statvfs *buf)
57 fixup(buf, &kbuf);