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 le specied 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 le to which it
refers does not exist.
The path1 or path2 parameter species a le on a remote HP NonStop
node but communication with the remote node has been lost.
[ENOROOT] One of the following 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.
[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 leset containing the directory.
[ENOTDIR] A component of either pathname prex 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] One of the following conditions occurred:
The le specied by the path1 parameter is a directory.
The call attempted to create a link in the root directory of an OSS leset
to a le 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 leset.
[EXDEV] The link specied by the path2 parameter and the le specied by the path1
parameter are on different lesets.
527186-003 Hewlett-Packard Company 47