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

System Functions (a - d) chmod(2)
[ENOENT] One of these conditions exists:
The named le does not exist, or the specied name is an empty string.
The path parameter species a le on a remote HP NonStop 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 unavailable. 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.
[ENOTDIR] A component, other than the last part, of the path parameter is not a directory.
[ENXIO] The leset containing the clients current working directory or root directory is
not mounted.
[EOSSNOTRUNNING]
The program attempted an operation on an object in the OSS environment while
a required system process was not running.
[EPERM] The effective user ID does not match the user ID of the owner of the le, or the
owner does not have appropriate privileges.
[EROFS] The named le resides on a read-only leset.
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.
RELATED INFORMATION
Commands: chmod(1).
Functions: chown(2), fcntl(2), getgroups(2), mknod(2), open(2), read(2), write(2).
STANDARDS CONFORMANCE
The POSIX standards leave some features to the implementing vendor to dene. These features
are affected in the HP implementation:
To change le-access permissions, either the process must have the same effective user
ID as the owner of the le or the process must have an effective user ID of the super ID.
A call to the chmod() function has no effect on the le descriptor for a le that is open at
the time of the call. However, new openers of the le are authenticated by using the new
access permissions that were specied in the call.
HP extensions to the XPG4 Version 2 specication are:
The errno values [EFAULT], [EFSBAD], [EINVAL], [ENOROOT], [ENXIO], and
[EOSSNOTRUNNING] can be returned.
The S_NONSTOP ag is supported for regular les.
527186-003 Hewlett-Packard Company 117