minix/lib/libc/sys-minix/fstatfs.c
Thomas Veerman 2f65ed8571 all 330 changes
Change-Id: I1728e08622dbdec9bd1e37a9ba6afff80e8fb847
2013-10-24 22:45:07 +00: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;
}