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

System Functions (a - d) chmod(2)
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 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.
For more information about a specic Guardian le-system error, see the Guardian Procedure
Errors and Messages Manual.
RELATED INFORMATION
Commands: chmod(1), getacl(1), setacl(1).|
Functions: acl(2), chown(2), fchmod(2), fchown(2), fcntl(2), getgroups(2), lchmod(2),|
lchown(2), mknod(2), open(2), open64(2), read(2), write(2).
Miscellaneous topics: acl(5).|
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.
527186-007 Hewlett-Packard Company 123