Open System Services System Calls Reference Manual (G06.25+, H06.03+)

System Functions (f - i) fstatvfs(2)
f_bminavail Number of blocks free on the disk volume with the least space remaining:
For Contains
Regular le Number of blocks.
Directory Number of blocks.
FIFO Number of blocks.
/dev/null Number of blocks.
Object in /G Number of blocks.
/G 0
Terminal device le 0
/E 0
f_bmaxavail Number of blocks free on the disk volume with the most space remaining:
For Contains
Regular le Number of blocks.
Directory Number of blocks.
FIFO Number of blocks.
/dev/null Number of blocks.
Object in /G Number of blocks.
/G 0
Terminal device le 0
/E 0
NOTES
This function provides compatibility with the System V Interface Denition, Revision 3.
RETURN VALUES
Upon successful completion, the fstatvfs() function returns the value 0 (zero). Otherwise, it
returns the value -1, and errno is set to indicate the error.
ERRORS
If any of these conditions occurs, the fstatvfs() function sets errno to the corresponding value:
[EBADF] The ledes parameter is not a valid le descriptor.
[EFAULT] The buffer parameter points to an invalid address.
[EINTR] The function was interrupted by a signal before any data arrived.
[EINVAL] The le pointed to by the ledes parameter is an OSS pipe or a socket.
[EIO] One of these conditions occurred:
The process is a member of a background process group attempting to
write to its controlling terminal, the TOSTOP ag is set, the process is
neither ignoring nor blocking the SIGTTOU signal, and the process
group of the process is orphaned.
A physical I/O error occurred. The device holding the le might be in
the down state, or both processors that provide access to the device
might have failed. Data might have been lost during a transfer.
527186-003 Hewlett-Packard Company 329