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

fchown(2) OSS System Calls Reference Manual
[EPERM] The calling process does not have appropriate privileges.
[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.
See the Guardian Procedure Errors and Messages Manual for more information about a specic
Guardian le-system error.
RELATED INFORMATION
Commands: chgrp(1), chown(1).
Functions: chmod(2), chown(2), fchmod(2), lchmod(2), lchown(2).
STANDARDS CONFORMANCE
The POSIX standards leave some features to the implementing vendor to dene. These features
are affected in the HP implementation:
A process can change the value of the owner ID of a le only if the effective user ID of
the process gives the process appropriate privileges.
Upon successful completion, the set-user-ID attribute (the S_ISUID bit) and the set-
group-ID attribute (the S_ISGID bit) of the le are always cleared.
The errors [EINTR], [EINVAL], and [EIO] can be detected.
HP extensions to the XPG4 Version 2 specication are:
The errno values [EFSBAD], [EIO], [ENOROOT], and [EOSSNOTRUNNING] can be
returned.
38 Hewlett-Packard Company 527186-005