Пример #1
0
/* Return information about the filesystem on which FILE resides.  */
int
statvfs (const char *file, struct statvfs *buf)
{
  struct statfs_fbsd5 kbuf;

  if (__syscall_statfs (file, &kbuf) < 0)
    return -1;

  /* Convert a 'struct statfs' to 'struct statvfs'.  */
  statfs5_to_statvfs (&kbuf, buf);

  return 0;
}
Пример #2
0
int statfs(const char *path, struct statfs * buf)
{
	return __syscall_statfs(path, buf);
}