diff options
author | greg@kroah.com <greg@kroah.com> | 2004-10-05 18:32:12 -0700 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:37:01 -0700 |
commit | a0622777688ad84ef3d789e0171cfb0ca3dc21d2 (patch) | |
tree | a723bb7d0849194260a5a009fb98b09ba79cd22b /klibc/klibc/fstatfs.c | |
parent | 9e8a3a095d955538acbdf28dba02582f6b2330e5 (diff) |
[PATCH] update klibc to version 0.181
Diffstat (limited to 'klibc/klibc/fstatfs.c')
-rw-r--r-- | klibc/klibc/fstatfs.c | 19 |
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 |