Example #1
0
/* Return information about the filesystem on which FILE resides.  */
int
__statfs (const char *file, struct statfs *buf)
{
    int rc = INLINE_SYSCALL (statfs64, 3, file, sizeof (*buf), buf);
    return rc ?: statfs_overflow (buf);
}
Example #2
0
/* Return information about the filesystem on which FD resides.  */
int
__fstatfs (int fd, struct statfs *buf)
{
  int rc = INLINE_SYSCALL (fstatfs64, 3, fd, sizeof (*buf), buf);
  return rc ?: statfs_overflow (buf);
}