コード例 #1
0
ファイル: statvfs.c プロジェクト: varialus/DragonFlyDebian
/* 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
ファイル: statfs.c プロジェクト: Brainiarc7/ralink_sdk
int statfs(const char *path, struct statfs * buf)
{
	return __syscall_statfs(path, buf);
}