Open System Services System Calls Reference Manual (G06.25+, H06.03+)
rename_oss(2) OSS System Calls Reference Manual
[ENOMEM] The system has insufficient resources to complete the operation.
[ENOROOT] One of the following conditions exists:
• The root fileset of the local node (fileset 0) is not in the STARTED state.
• The current root fileset for the specified file is unavailable. The OSS
name server for the fileset might have failed.
• The specified file is on a remote HP NonStop node and communication
with the remote name server has been lost.
[ENOSPC] The directory that would contain to cannot be extended, because the fileset is out
of space.
[ENOTDIR] The from parameter specifies a directory and the to parameter specifies a file (not
a directory), or a component of either path is not a directory.
[ENXIO] The fileset containing the client’s current working directory or root directory is
not mounted.
[EOSSNOTRUNNING]
A required system process is not running.
[EPERM] One of the following conditions exists:
• The call attempted to create a file named lost+found in the root directory
of an OSS fileset.
• The call attempted to rename a Guardian file (that is, a file within /G)
that is not a regular file. This error usually occurs when an attempt is
made to rename a file as a Guardian subvolume or to rename a Guardian
subvolume.
[EROFS] The requested operation requires writing in a directory on a read-only fileset.
[ETXTBSY] The file to be renamed is already busy. The file specified by the from parameter
is a NonStop SQL/MP object file that is currently executing.
[EXDEV] The link specified by the to parameter and the file specified by the from parame-
ter are on different filesets.
RELATED INFORMATION
Functions: chmod(2), link(2), mkdir(2), rename(2), rename_guardian(2), rmdir(2),
unlink(2).
Commands: chmod(1), mkdir(1), mv(1).
STANDARDS CONFORMANCE
The POSIX standards leave some features to the implementing vendor to define. The following
features are affected in the HP implementation:
• The calling process is not required to have write or search permission for a directory in
order to rename the directory.
• The errno value [EBUSY] is returned when either directory is in use by another process.
6−30 Hewlett-Packard Company 527186-003