6 #include <sys/statvfs.h>
8 #if defined(__weak_alias)
9 __weak_alias(fstatvfs
, _fstatvfs
)
12 int fstatvfs1(int fd
, struct statvfs
*buffer
, int flags
)
16 memset(&m
, 0, sizeof(m
));
17 m
.m_lc_vfs_statvfs1
.fd
= fd
;
18 m
.m_lc_vfs_statvfs1
.buf
= (vir_bytes
)buffer
;
19 m
.m_lc_vfs_statvfs1
.flags
= flags
;
20 return(_syscall(VFS_PROC_NR
, VFS_FSTATVFS1
, &m
));
23 int fstatvfs(int fd
, struct statvfs
*buffer
)
25 return fstatvfs1(fd
, buffer
, ST_WAIT
);