summaryrefslogblamecommitdiff
path: root/src/stat/fstatvfs.c
blob: 806c3fd462be5e1be87837c7e40852f0d60274fb (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11





                                         




                                                            





                              
#include <sys/statvfs.h>
#include "syscall.h"
#include "libc.h"

int fstatvfs(int fd, struct statvfs *buf)
{
#ifdef SYS_fstatfs64
	return syscall(SYS_fstatfs64, fd, sizeof *buf, buf);
#else
	return syscall(SYS_fstatfs, fd, buf);
#endif
}

weak_alias(fstatvfs, fstatfs);

LFS64(fstatvfs);
LFS64(fstatfs);