summaryrefslogtreecommitdiff
path: root/minix/lib/libc/sys/fstatfs.c
blob: 4f38bc60be5d6885540e8d01175677f02c4b9a06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <sys/cdefs.h>
#include <lib.h>
#include "namespace.h"

#include <sys/stat.h>
#include <sys/statfs.h>
#include <sys/statvfs.h>

int fstatfs(int fd, struct statfs *buffer)
{
  struct statvfs svbuffer;
  int r;

  if ((r = fstatvfs(fd, &svbuffer)) != 0)
	return r;

  buffer->f_bsize = svbuffer.f_bsize;

  return 0;
}