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

System Functions (f - i) fstat(2)
RETURN VALUES
Upon successful completion, the value 0 (zero) is returned. Otherwise, the value -1 is returned,
and errno is set to indicate the error.
ERRORS
If any of these conditions occurs, the fstat() function sets errno to the corresponding value:
[EBADF] The ledes parameter is not a valid le descriptor.
[EFAULT] The buffer parameter points to a location outside of the allocated address space
of the process.
[EFSBAD] The program attempted an operation involving a leset with a corrupted leset
catalog.
[EIO] An input or output 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.
[EISGUARDIAN]
The value used for the ledes parameter is appropriate only in the Guardian
environment.
[ENETDOWN]
The ledes parameter species a le on a remote HP NonStop node, but com-
munication with the remote node has been lost.
[ENOROOT] The program attempted an operation while the root leset was unavailable.
[ENXIO] An invalid device or address was specied during an input or output operation
on a special le. One of these events occurred:
A device was specied that does not exist, or a request was made beyond
the limits of the device.
The leset containing the requestors current working directory or root
directory is not mounted. This error can occur after failure and restart of
an OSS name server process until the leset has been repaired and
remounted.
[EWRONGID] One of these conditions occurred:
The process attempted an operation on an input/output process (such as a
terminal server process) that has failed or is in the down state.
The processor for the disk process of the specied le failed during an
input or output operation, and takeover by the backup process occurred.
The open le descriptor has migrated to a new processor, but the new
processor lacks a resource or system process needed for using the le
descriptor.
The le descriptor specied by the ledes parameter can only be closed.
For all other error conditions, errno is set to the appropriate Guardian le-system error number.
See the Guardian Procedure Errors and Messages Manual for more information about a specic
Guardian le-system error.
527186-003 Hewlett-Packard Company 321