Open System Services System Calls Reference Manual (G06.25+, H06.03+)
stat(2) OSS System Calls Reference Manual
[ENOTDIR] A component of the pathname specified by the path parameter is
not a directory.
[ENXIO] An invalid device or address was specified during an input or
output operation on a special file. One of these events occurred:
• A device was specified that does not exist, or a request
was made beyond the limits of the device.
• The fileset containing the requestor’s 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 fileset has been repaired and
remounted.
[EOSSNOTRUNNING]
The program attempted an operation on an object in the OSS
environment while a required system process was not running.
For all other error conditions, errno is set to the appropriate Guardian file-
system error number. See the Guardian Procedure Errors and Messages
Manual for more information about a specific Guardian file-system error.
RELATED INFORMATION
Functions: chmod(2), chown(2), link(2), lstat(2), mknod(2), open(2), pipe(2), utime(2).
STANDARDS CONFORMANCE
The POSIX standards leave some features to the implementing vendor to define. These features
are affected in the HP implementation:
• For files other than regular disk files or symbolic links, the st_size field
of the stat structure is set to 0 (zero). For directories, st_size is set to
4096.
• The S_IRWXU, S_IRWXG, S_IRWXO, S_IFMT, S_ISVTX,
S_NONSTOP, S_ISGID, and S_ISUID bits are ORed into the st_mode
field of the stat structure.
The stat() function does not return the errno value [EOVERFLOW].
HP extensions to the XPG4 Version 2 specification are:
• The errno values [EFAULT], [EFSBAD], [ENOROOT], [ENXIO], and
[EOSSNOTRUNNING] can be returned by the stat() function.
7−168 Hewlett-Packard Company 527186-003