summaryrefslogtreecommitdiff
path: root/src/stat/statvfs.c
blob: e72c225c74aa98ecb5cc0038904019856ec7e7de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <sys/statvfs.h>
#include "syscall.h"
#include "libc.h"

int statvfs(const char *path, struct statvfs *buf)
{
#ifdef SYS_statfs64
	return syscall(SYS_statfs64, path, sizeof *buf, buf);
#else
	return syscall(SYS_statfs, path, buf);
#endif
}

weak_alias(statvfs, statfs);

LFS64(statvfs);
LFS64(statfs);