.\" Copyright (c) 1983, 1991 The Regents of the University of California.
.\" %sccs.include.redist.man%
.\" @(#)symlink.2 6.6 (Berkeley) %G%
.Nd make symbolic link to a file
.Fn symlink "const char *name1" "const char *name2"
used in creating the symbolic link).
Either name may be an arbitrary path name; the files need not
be on the same file system.
Upon successful completion, a zero value is returned.
If an error occurs, the error code is stored in
and a -1 value is returned.
The symbolic link succeeds unless:
prefix is not a directory.
contains a character with the high-order bit set.
A component of either pathname exceeded 255 characters,
or the entire length of either path name exceeded 1023 characters.
The named file does not exist.
path prefix denies search permission.
Too many symbolic links were encountered in translating the pathname.
An I/O error occurred while making the directory entry for
or allocating the inode for
or writing out the link contents of
would reside on a read-only file system.
The directory in which the entry for the new symbolic link is being placed
cannot be extended because there is no space left on the file
system containing the directory.
The new symbolic link cannot be created because there
there is no space left on the file
system that will contain the symbolic link.
There are no free inodes on the file system on which the
symbolic link is being created.
The directory in which the entry for the new symbolic 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.
The new symbolic link cannot be created because the user's
quota of disk blocks on the file system that will
contain the symbolic link has been exhausted.
The user's quota of inodes on the file system on
which the symbolic link is being created has been exhausted.
An I/O error occurred while making the directory entry or allocating the inode.
points outside the process's allocated address space.
function call appeared in