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));
|
2013-08-20 01:39:47 +02:00
|
|
|
m.VFS_GETVFSSTAT_BUF = (char *) buf;
|
2013-11-04 22:48:08 +01:00
|
|
|
m.VFS_GETVFSSTAT_LEN = bufsize;
|
2013-08-20 01:39:47 +02:00
|
|
|
m.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
|
|
|
}
|