summaryrefslogtreecommitdiffstats
path: root/usr/klibc/statfs.c
blob: b8b8700ca1c83fa71cde468e8cd2a86563d936a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * statfs.c
 *
 * On architectures which do statfs64, wrap the system call
 */

#include <sys/syscall.h>
#include <sys/vfs.h>

#ifdef __NR_statfs64

extern int __statfs64(const char *, size_t, struct statfs *);

int statfs(const char *path, struct statfs *buf)
{
	return __statfs64(path, sizeof *buf, buf);
}

#endif