xref: /minix/minix/lib/libc/sys/getvfsstat.c (revision 83133719)
1 #include <sys/cdefs.h>
2 #include <lib.h>
3 #include "namespace.h"
4 
5 #include <string.h>
6 #include <sys/statvfs.h>
7 
8 int getvfsstat(struct statvfs *buf, size_t bufsize, int flags)
9 {
10   message m;
11 
12   memset(&m, 0, sizeof(m));
13   m.m_lc_vfs_getvfsstat.buf = (vir_bytes) buf;
14   m.m_lc_vfs_getvfsstat.len = bufsize;
15   m.m_lc_vfs_getvfsstat.flags = flags;
16   return(_syscall(VFS_PROC_NR, VFS_GETVFSSTAT, &m));
17 }
18