--- /dev/null
+#include <lib.h>
+#define fstatvfs _fstatvfs
+#include <sys/statvfs.h>
+#include <minix/com.h>
+
+PUBLIC int fstatvfs(int fd, struct statvfs *buffer)
+{
+ message m;
+
+ m.FSTATVFS_FD = fd;
+ m.FSTATVFS_BUF = (char *) buffer;
+ return(_syscall(VFS_PROC_NR, FSTATVFS, &m));
+}
--- /dev/null
+#include <lib.h>
+#define statvfs _statvfs
+#include <sys/statvfs.h>
+#include <string.h>
+#include <minix/com.h>
+
+PUBLIC int statvfs(name, buffer)
+_CONST char *name;
+struct statvfs *buffer;
+{
+ message m;
+
+ m.STATVFS_LEN = strlen(name) + 1;
+ m.STATVFS_NAME = (char *) name;
+ m.STATVFS_BUF = (char *) buffer;
+ return(_syscall(VFS_PROC_NR, STATVFS, &m));
+}