1 .TH SYMLINK 2 "March 17, 2006"
4 symlink \- make a symbolic link to a file
10 int symlink(const char *\fIname1\fP, const char *\fIname2\fP)
20 Upon successful completion, a value of 0 is returned. Otherwise,
21 a value of \-1 is returned and
23 is set to indicate the error.
26 will fail and no link will be created if one or more of the following
30 A component of either path prefix is not a directory.
33 A path name exceeds PATH_MAX characters.
36 A component of either path prefix does not exist.
39 A component of either path prefix denies search permission.
42 The requested link requires writing in a directory with a mode
43 that denies write permission.
46 Too many symbolic links were encountered in translating one of the pathnames.
49 The link named by \fIname2\fP exists.
52 The directory in which the entry for the new link is being placed
53 cannot be extended because there is no space left on the file
54 system containing the directory.
58 The directory in which the entry for the new link
59 is being placed cannot be extended because the
60 user's quota of disk blocks on the file system
61 containing the directory has been exhausted.
65 An I/O error occurred while reading from or writing to
66 the file system to make the directory entry.
69 The requested link requires writing in a directory on a read-only file
73 One of the pathnames specified
74 is outside the process's allocated address space.