summaryrefslogtreecommitdiff
path: root/klibc/klibc/fstatfs.c
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-10-05 18:32:12 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:37:01 -0700
commita0622777688ad84ef3d789e0171cfb0ca3dc21d2 (patch)
treea723bb7d0849194260a5a009fb98b09ba79cd22b /klibc/klibc/fstatfs.c
parent9e8a3a095d955538acbdf28dba02582f6b2330e5 (diff)
[PATCH] update klibc to version 0.181
Diffstat (limited to 'klibc/klibc/fstatfs.c')
-rw-r--r--klibc/klibc/fstatfs.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/klibc/klibc/fstatfs.c b/klibc/klibc/fstatfs.c
new file mode 100644
index 0000000000..09e4674947
--- /dev/null
+++ b/klibc/klibc/fstatfs.c
@@ -0,0 +1,19 @@
+/*
+ * fstatfs.c
+ *
+ * On architectures which do fstatfs64, wrap the system call
+ */
+
+#include <sys/syscall.h>
+#include <sys/vfs.h>
+
+#ifdef __NR_fstatfs64
+
+extern int __fstatfs64(int, size_t, struct statfs *);
+
+int fstatfs(int fd, struct statfs *buf)
+{
+ return __fstatfs64(fd, sizeof *buf, buf);
+}
+
+#endif