minix/lib/libc/posix/_fstatfs.c

14 lines
248 B
C
Raw Normal View History

2005-04-21 16:53:53 +02:00
#include <lib.h>
#define fstatfs _fstatfs
#include <sys/stat.h>
#include <sys/statfs.h>
PUBLIC int fstatfs(int fd, struct statfs *buffer)
{
message m;
m.m1_i1 = fd;
m.m1_p1 = (char *) buffer;
return(_syscall(VFS_PROC_NR, FSTATFS, &m));
2005-04-21 16:53:53 +02:00
}