chiark / gitweb /
[PATCH] fix klibc's broken strlcpy/strlcat
[elogind.git] / klibc / klibc / fstatfs.c
1 /*
2  * fstatfs.c
3  *
4  * On architectures which do fstatfs64, wrap the system call
5  */
6
7 #include <sys/syscall.h>
8 #include <sys/vfs.h>
9
10 #ifdef __NR_fstatfs64
11
12 extern int __fstatfs64(int, size_t, struct statfs *);
13
14 int fstatfs(int fd, struct statfs *buf)
15 {
16   return __fstatfs64(fd, sizeof *buf, buf);
17 }
18
19 #endif