some coverity fixes.
[minix.git] / lib / libc / sys-minix / fstatvfs.c
blob63e4d39e5407eca33a1f9a0c5c594c48c1c04771
1 #include <sys/cdefs.h>
2 #include "namespace.h"
3 #include <lib.h>
5 #include <sys/statvfs.h>
7 #ifdef __weak_alias
8 __weak_alias(fstatvfs, _fstatvfs)
9 #endif
11 int fstatvfs(int fd, struct statvfs *buffer)
13 message m;
15 m.FSTATVFS_FD = fd;
16 m.FSTATVFS_BUF = (char *) buffer;
17 return(_syscall(VFS_PROC_NR, FSTATVFS, &m));