minix/lib/libc/sys-minix/getvfsstat.c
David van Moolenbroek 266239fe64 Implement support for getvfsstat(2)
Change-Id: I99b697919d411c57105de561105beefc7d1d309a
2014-02-18 11:25:02 +01:00

19 lines
394 B
C

#include <sys/cdefs.h>
#include <lib.h>
#include "namespace.h"
#include <sys/statvfs.h>
#ifdef __weak_alias
__weak_alias(getvfsstat, _getvfsstat)
#endif
int getvfsstat(struct statvfs *buf, size_t bufsize, int flags)
{
message m;
m.VFS_GETVFSSTAT_BUF = (char *) buf;
m.VFS_GETVFSSTAT_SIZE = bufsize;
m.VFS_GETVFSSTAT_FLAGS = flags;
return(_syscall(VFS_PROC_NR, GETVFSSTAT, &m));
}