diff options
Diffstat (limited to 'usr/klibc/fstatfs.c')
-rw-r--r-- | usr/klibc/fstatfs.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/usr/klibc/fstatfs.c b/usr/klibc/fstatfs.c new file mode 100644 index 0000000..614f2ec --- /dev/null +++ b/usr/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 |