etc/services - sync with NetBSD-8
[minix.git] / minix / lib / libc / sys / fstatvfs.c
blobca2b6ee1d076ad18572a509fd502b4e0e4fd6088
1 #include <sys/cdefs.h>
2 #include "namespace.h"
3 #include <lib.h>
5 #include <string.h>
6 #include <sys/statvfs.h>
8 #if defined(__weak_alias)
9 __weak_alias(fstatvfs, _fstatvfs)
10 #endif
12 int fstatvfs1(int fd, struct statvfs *buffer, int flags)
14 message m;
16 memset(&m, 0, sizeof(m));
17 m.m_lc_vfs_statvfs1.fd = fd;
18 m.m_lc_vfs_statvfs1.buf = (vir_bytes)buffer;
19 m.m_lc_vfs_statvfs1.flags = flags;
20 return(_syscall(VFS_PROC_NR, VFS_FSTATVFS1, &m));
23 int fstatvfs(int fd, struct statvfs *buffer)
25 return fstatvfs1(fd, buffer, ST_WAIT);