Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
statvfs(2) OSS System Calls Reference Manual
For Contains
Regular file Number of blocks.
Directory Number of blocks.
FIFO Number of blocks.
AF_UNIX socket Number of blocks.
/dev/null Number of blocks.
Object in /G Number of blocks.
/G 0
/G/ztnt/#ptynn 0
/E 0
Use From the Guardian Environment
The statvfs() function is one of a set of functions that have the following effects when the first of
them is called from the Guardian environment:
• Two Guardian file system file numbers (not necessarily the next two available) are allo-
cated for the root directory and the current working directory. You cannot close these
file numbers by calling the Guardian FILE_CLOSE_ procedure.
• The current working directory is assigned from the VOLUME attribute of the Guardian
environment =_DEFAULTS DEFINE.
• The use of static memory by the process increases slightly.
These effects occur only when the first of the set of functions is called. The effects are not cumu-
lative.
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 statvfs() 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 statvfs() function sets errno to the corresponding value:
[EACCES] Search permission is denied for a component of the path prefix of the path
parameter.
[EFAULT] The buffer or path parameter points to a location outside of the allocated address
space of the process.
[EINTR] The function was interrupted by a signal before any data arrived.
[EIO] One of the following conditions occurred:
• The process is a member of a background process group attempting to
write to its controlling terminal, the TOSTOP flag is set, the process is
neither ignoring nor blocking the SIGTTOU signal, and the process
group of the process is orphaned.
7−522 Hewlett-Packard Company 527186-023