Open System Services System Calls Reference Manual (G06.25+, H06.03+)
System Functions (k - m) link(2)
• A component of the pathname pointed to by the path1 parameter
• A component of the pathname pointed to by the path2 parameter
• The intermediate result of pathname resolution when a symbolic link is
part of the path1 or path2 parameter
The pathconf( ) function can be called to obtain the applicable limits.
[ENOENT] One of the following is true:
• The file specified by the path1 parameter does not exist.
• The path1 or path2 parameter is an empty string.
• The path1 parameter names a symbolic link, but the file to which it
refers does not exist.
• The path1 or path2 parameter specifies a file on a remote HP NonStop
node but communication with the remote node has been lost.
[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 in which the entry for the new link is being placed cannot be
extended, because there is no space left on the fileset containing the directory.
[ENOTDIR] A component of either pathname prefix is not a directory.
[ENXIO] The fileset containing the client’s 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] One of the following conditions occurred:
• The file specified by the path1 parameter is a directory.
• The call attempted to create a link in the root directory of an OSS fileset
to a file called lost+found.
• The call attempted to create a link to /dev/tty or /dev/null.
[EROFS] The requested link requires writing to a directory on a read-only fileset.
[EXDEV] The link specified by the path2 parameter and the file specified by the path1
parameter are on different filesets.
527186-003 Hewlett-Packard Company 4−7