statvfs.2 (2010 09)
s
statvfs(2) statvfs(2)
ST_GRPQUOTA Group quotas enabled on this file system.
Security Restrictions
The field f_bavail is the number of blocks available to non-superusers or users without the
LIMIT
privilege. The field f_favail is the number of file nodes available to non-superusers or users without
the LIMIT privilege. See privileges (5) for more information about privileged access on systems that sup-
port fine-grained privileges.
RETURN VALUE
statvfs() and fstatvfs() return 0 upon successful completion; otherwise, they return −1 and set
errno to indicate the error.
ERRORS
If statvfs() fails, errno is set to one of the following values:
[EACCES] Search permission is denied for a component of the path prefix.
[ELOOP] Too many symbolic links are encountered during path-name translation.
[ENAMETOOLONG]
The length of the specified path name exceeds PATH_MAX bytes, or the length
of a component of the path name exceeds NAME_MAX bytes while
_POSIX_NO_TRUNC is in effect.
[ENOENT] The named file does not exist (for example, path is null or a component of path
does not exist).
[ENOTDIR] A component of the path prefix is not a directory.
If
fstatvfs() fails, errno is set to the following value:
[EBADF] fildes is not a valid open file descriptor.
When both statvfs() and fstatvfs() fail, errno is set to one of the following values:
[EFAULT] buf points to an invalid address.
[EIO] An I/O error occurred while reading from or writing to the file system.
[EOVERFLOW] Result would overflow one or more fields of the statvfs struct.
SEE ALSO
df(1M), fstatfs(2), fstatvfs64(2), quotactl(2), stat(2), statfs(2), statvfs64(2), sysfs(2), ustat(2), privileges(5).
2 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: September 2010