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

System Functions (s and S) stat(2)
ERRORS
If any of these conditions occurs, the stat() function sets errno to the corresponding value:
[EACCES] Search permission is denied for a component of the pathname
pointed to by the path parameter.
[EFAULT] Either the buffer parameter or the path 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.
[ELOOP] Too many symbolic links were encountered in translating path.
[ENAMETOOLONG]
One of these is too long:
The pathname pointed to by the path parameter
A component of the pathname pointed to by the path
parameter
The intermediate result of pathname resolution when a
symbolic link is part of the path parameter
The pathconf( ) function can be called to obtain the applicable
limits.
[ENOENT] One of these conditions exists:
The le specied by the path parameter does not exist.
The path parameter points to an empty string.
The specied pathname cannot be mapped to a valid
Guardian lename.
The specied pathname points to the name of a Guar-
dian process that is not of subtype 30.
The path parameter species a le on a remote HP Non-
Stop node, but communication with the remote node has
been lost.
[ENOROOT] One of these conditions exists:
The root leset of the local node (leset 0) is not in the
STARTED state.
The current root leset for the specied le is unavail-
able. The OSS name server for the leset might have
failed.
The specied le is on a remote HP NonStop node, and
communication with the remote name server has been
lost.
527186-003 Hewlett-Packard Company 7167