Open System Services System Calls Reference Manual (G06.28+)

chmod(2) OSS System Calls Reference Manual
[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.
For more information about a specic Guardian le-system error, see the Guardian Procedure
Errors and Messages Manual.
RELATED INFORMATION
Commands: chmod(1).
Functions: chown(2), fchmod(2), fchown(2), fcntl(2), getgroups(2), lchmod(2), lchown(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.
118 Hewlett-Packard Company 527186-005