blob: 614f2ec3a5c130481a557b84b5f6c2885012b722 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
|