phunix/minix/lib/libc/sys/fstatfs.c
Lionel Sambuc 433d6423c3 New sources layout
Change-Id: Ic716f336b7071063997cf5b4dae6d50e0b4631e9
2014-07-31 16:00:30 +02:00

21 lines
325 B
C

#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;
}