2013-08-20 01:39:47 +02:00
|
|
|
#include <sys/cdefs.h>
|
|
|
|
#include <lib.h>
|
|
|
|
#include "namespace.h"
|
|
|
|
|
2013-11-04 22:48:08 +01:00
|
|
|
#include <string.h>
|
2013-08-20 01:39:47 +02:00
|
|
|
#include <sys/statvfs.h>
|
|
|
|
|
|
|
|
int getvfsstat(struct statvfs *buf, size_t bufsize, int flags)
|
|
|
|
{
|
|
|
|
message m;
|
|
|
|
|
2013-11-04 22:48:08 +01:00
|
|
|
memset(&m, 0, sizeof(m));
|
2014-05-12 11:34:18 +02:00
|
|
|
m.m_lc_vfs_getvfsstat.buf = (vir_bytes) buf;
|
|
|
|
m.m_lc_vfs_getvfsstat.len = bufsize;
|
|
|
|
m.m_lc_vfs_getvfsstat.flags = flags;
|
2013-11-04 22:48:08 +01:00
|
|
|
return(_syscall(VFS_PROC_NR, VFS_GETVFSSTAT, &m));
|
2013-08-20 01:39:47 +02:00
|
|
|
}
|