minix/lib/libc/sys-minix/getvfsstat.c
Lionel Sambuc ccdf11c7cf Message type for VFS_GETVFSSTAT
Change-Id: I27f1f6dc37832ee4adb9854c7306ce6153e31567
2014-07-28 17:05:30 +02:00

17 lines
397 B
C

#include <sys/cdefs.h>
#include <lib.h>
#include "namespace.h"
#include <string.h>
#include <sys/statvfs.h>
int getvfsstat(struct statvfs *buf, size_t bufsize, int flags)
{
message m;
memset(&m, 0, sizeof(m));
m.m_lc_vfs_getvfsstat.buf = (vir_bytes) buf;
m.m_lc_vfs_getvfsstat.len = bufsize;
m.m_lc_vfs_getvfsstat.flags = flags;
return(_syscall(VFS_PROC_NR, VFS_GETVFSSTAT, &m));
}