minix/lib/libc/sys-minix/fstatfs.c

21 lines
325 B
C
Raw Normal View History

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