etc/services - sync with NetBSD-8
[minix.git] / minix / lib / libc / sys / getvfsstat.c
blob5d1fd18878dd44520ef2be612202a9a71c1c871b
1 #include <sys/cdefs.h>
2 #include <lib.h>
3 #include "namespace.h"
5 #include <string.h>
6 #include <sys/statvfs.h>
8 int getvfsstat(struct statvfs *buf, size_t bufsize, int flags)
10 message m;
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));