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

System Functions (r) rename_oss(2)
To use the rename_oss() and rename_guardian() functions, specify the
_TANDEM_SOURCE feature-test macro.
RETURN VALUES
Upon successful completion, the rename() function returns the value 0 (zero). Otherwise, the
value -1 is returned and errno is set to indicate the error.
ERRORS
If any of the following conditions occurs, the rename() function sets errno to the corresponding
value. The le or directory name remains unchanged.
[EACCES] One of the following conditions exists:
A component of either pathname denies search permission.
One of the directories containing from or to denies write permission.
The S_ISVTX ag is set on the directory containing the le referred to
by the from parameter. However, the calling process is not any of the
following:
The le owner
The directory owner
A process with appropriate privileges
The S_ISVTX ag is set on the directory containing an existing le
referred to by the to parameter. However, the calling process is not any
of the following:
The le owner
The directory owner
A process with appropriate privileges
[EBUSY] One of the following conditions occurred:
The to parameter species a directory that exists and is one of the fol-
lowing:
/G or /E
A Guardian disk volume or process name in /G (a le with an
OSS pathname of the form /G/vol or /G/process)
The root directory of a leset
The /dev directory or the lost+found le for a leset (for exam-
ple, /usr/lost+found, where /usr is the mount point for a leset)
The from parameter species one of the following:
/G or /E
527186-005 Hewlett-Packard Company 631