summaryrefslogtreecommitdiff
path: root/minix/lib/libc/sys/getvfsstat.c
blob: 5d1fd18878dd44520ef2be612202a9a71c1c871b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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));
}