summaryrefslogtreecommitdiff
path: root/klibc/klibc/fstatfs.c
blob: 09e4674947508b27f153730574737912c79c8a7f (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