#include <unistd.h> int symlink(const char *name1, const char *name2)
15 [ENOTDIR] A component of either path prefix is not a directory.
15 [ENAMETOOLONG] A path name exceeds PATH_MAX characters.
15 [ENOENT] A component of either path prefix does not exist.
15 [EACCES] A component of either path prefix denies search permission.
15 [EACCES] The requested link requires writing in a directory with a mode that denies write permission.
15 [ELOOP] Too many symbolic links were encountered in translating one of the pathnames.
15 [EEXIST] The link named by name2 exists.
15 [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 file system containing the directory.
15 [EDQUOT] The directory in which the entry for the new link is being placed cannot be extended because the user's quota of disk blocks on the file system containing the directory has been exhausted. ..
15 [EIO] An I/O error occurred while reading from or writing to the file system to make the directory entry.
15 [EROFS] The requested link requires writing in a directory on a read-only file system.
15 [EFAULT] One of the pathnames specified is outside the process's allocated address space.