minix/lib/libc/sys-minix/fstatfs.c
David van Moolenbroek 08ec594d15 VFS/FS: remove fstatfs(2) and REQ_FSTATFS
The fstatfs(3) call now uses fstatvfs(2).

Change-Id: Ic6bbb040e1a8f01aaffe1a6a809dd4c7a2eae2f6
2013-08-20 11:02:18 +02:00

25 lines
385 B
C

#include <sys/cdefs.h>
#include <lib.h>
#include "namespace.h"
#include <sys/stat.h>
#include <sys/statfs.h>
#include <sys/statvfs.h>
#ifdef __weak_alias
__weak_alias(fstatfs, _fstatfs)
#endif
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;
}