Unix |
Unix v6 |
|
![]() |
link(2) |
![]() |
link link to a file (link = 9.)
sys link; name1; name2 link(name1, name2)
char *name1, *name2; A link to is created; the link has
the name Either name may be an arbitrary path name. link
(I), unlink (II) The error bit (c-bit) is set when cannot be
found; when already exists; when the directory of cannot be
written; when an attempt is made to link to a directory by a
user other than the super-user; when an attempt is made to
link to a file on another file system; when more than 127
links are made. From C, a 1 return indicates an error, a 0
return indicates success.
![]() |
link(2) | ![]() |