6 #include <sys/statvfs.h>
10 __weak_alias(statvfs
, _statvfs
)
13 int statvfs1(const char *name
, struct statvfs
*buffer
, int flags
)
17 memset(&m
, 0, sizeof(m
));
18 m
.m_lc_vfs_statvfs1
.len
= strlen(name
) + 1;
19 m
.m_lc_vfs_statvfs1
.name
= (vir_bytes
)name
;
20 m
.m_lc_vfs_statvfs1
.buf
= (vir_bytes
)buffer
;
21 m
.m_lc_vfs_statvfs1
.flags
= flags
;
22 return(_syscall(VFS_PROC_NR
, VFS_STATVFS1
, &m
));
25 int statvfs(const char *name
, struct statvfs
*buffer
)
27 return statvfs1(name
, buffer
, ST_WAIT
);