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

System Functions (f - i) fchmod(2)
[EPERM] The effective user ID does not match the ID of the owner of the le, and the cal-
ling process does not have super ID privilege.
[EROFS] The le referred to by ledes 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: chmod(2), chown(2), fcntl(2), fchown(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 fchmod() 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.
The errors [EINTR] and [EINVAL] can be detected.
HP extensions to the XPG4 Version 2 specication are:
The errno values [EIO], [EFSBAD], [ENOROOT], and [EOSSNOTRUNNING] can be
returned.
527186-005 Hewlett-Packard Company 35