some coverity fixes.
[minix.git] / lib / libc / sys-minix / statvfs.c
blob1de8ab77a2605789a9896a7c4b30e6a263437e29
1 #include <sys/cdefs.h>
2 #include <lib.h>
3 #include "namespace.h"
5 #include <sys/statvfs.h>
6 #include <string.h>
8 #ifdef __weak_alias
9 __weak_alias(statvfs, _statvfs)
10 #endif
12 int statvfs(const char *name, struct statvfs *buffer)
14 message m;
16 m.STATVFS_LEN = strlen(name) + 1;
17 m.STATVFS_NAME = (char *) __UNCONST(name);
18 m.STATVFS_BUF = (char *) buffer;
19 return(_syscall(VFS_PROC_NR, STATVFS, &m));