Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.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 file 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 file 0
/E 0
f_bmaxavail Number of blocks free on the disk volume with the most space remaining:
For Contains
Regular file 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 file 0
/E 0
NOTES
This function provides compatibility with the System V Interface Definition, Revision 3.
On systems running H06.24 or later H-series RVUs or J06.13 or later J-series RVUs, you can use
this function with 32-bit or 64-bit OSS applications.
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 filedes parameter is not a valid file descriptor.
[EFAULT] The buffer parameter points to an invalid address.
[EINTR] The function was interrupted by a signal before any data arrived.
[EINVAL] The file pointed to by the filedes 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 file might be in
the down state, or both processors that provide access to the device
527186-023 Hewlett-Packard Company 351