2011-02-17 18:11:09 +01:00
|
|
|
#include <sys/cdefs.h>
|
|
|
|
#include <lib.h>
|
|
|
|
#include "namespace.h"
|
|
|
|
|
|
|
|
#include <sys/statvfs.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#ifdef __weak_alias
|
|
|
|
__weak_alias(statvfs, _statvfs)
|
|
|
|
#endif
|
|
|
|
|
2011-11-28 11:07:55 +01:00
|
|
|
int statvfs(const char *name, struct statvfs *buffer)
|
2011-02-17 18:11:09 +01:00
|
|
|
{
|
|
|
|
message m;
|
|
|
|
|
|
|
|
m.STATVFS_LEN = strlen(name) + 1;
|
2011-11-28 11:07:55 +01:00
|
|
|
m.STATVFS_NAME = (char *) __UNCONST(name);
|
2011-02-17 18:11:09 +01:00
|
|
|
m.STATVFS_BUF = (char *) buffer;
|
|
|
|
return(_syscall(VFS_PROC_NR, STATVFS, &m));
|
|
|
|
}
|