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

chown(2) OSS System Calls Reference Manual
The path parameter is an empty string.
The path parameter species a le in the Guardian le system (in /G) but
cannot be mapped to a valid Guardian lename.
The path parameter names a symbolic link, but the le to which it refers
does not exist.
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 of path 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 calling process 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: chgrp(1), chown(1).
Functions: chmod(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 error [EINVAL] can be detected.
120 Hewlett-Packard Company 527186-003