266239fe64
Change-Id: I99b697919d411c57105de561105beefc7d1d309a
19 lines
394 B
C
19 lines
394 B
C
#include <sys/cdefs.h>
|
|
#include <lib.h>
|
|
#include "namespace.h"
|
|
|
|
#include <sys/statvfs.h>
|
|
|
|
#ifdef __weak_alias
|
|
__weak_alias(getvfsstat, _getvfsstat)
|
|
#endif
|
|
|
|
int getvfsstat(struct statvfs *buf, size_t bufsize, int flags)
|
|
{
|
|
message m;
|
|
|
|
m.VFS_GETVFSSTAT_BUF = (char *) buf;
|
|
m.VFS_GETVFSSTAT_SIZE = bufsize;
|
|
m.VFS_GETVFSSTAT_FLAGS = flags;
|
|
return(_syscall(VFS_PROC_NR, GETVFSSTAT, &m));
|
|
}
|