LINK(2) UNIX Programmer's Manual LINK(2) NAME link - link to a file SYNOPSIS link(name1, name2) char *name1, *name2; DESCRIPTION A link to _n_a_m_e_1 is created; the link has the name _n_a_m_e_2. Either name may be an arbitrary path name. ERRORS _L_i_n_k will fail and no link will be created if one or more of the following is true: [EINVAL] Either path name contains a non-ASCII byte. [ENOTDIR] A component of either path prefix is not a directory. [ENOENT] A component of either path prefix does not exist. [EACCES] A component of either path prefix denies search permission. [ENOENT] The file named by _n_a_m_e_1 does not exist. [EEXIST] The link named by _n_a_m_e_2 does exist. [EPERM] The file named by _n_a_m_e_1 is a directory and the effective user ID is not the super-user. [EXDEV] The link named by _n_a_m_e_2 and the file named by _n_a_m_e_1 are on different file systems. [EACCES] The requested link requires writing iin a directory with a mode that denies write permission. [EROFS] The requested link requires writing in a directory on a read-only file system. [EFAULT] One of the path names specified is out- side the process's allocated address space. [ELOOP] Too many symbolic links were encountered in translating the path name. Printed 5/23/83 1 LINK(2) UNIX Programmer's Manual LINK(2) SEE ALSO ln(1), unlink(2) ASSEMBLER (link = 9.) sys link; name1; name2 Printed 5/23/83 2