Research V4 development
[unix-history] / man / man2 / link.2
CommitLineData
88d0a458
KT
1.th LINK II 8/5/73
2.sh NAME
3link \*- link to a file
4.sh SYNOPSIS
5(link = 9.)
6.br
7.ft B
8sys link; name1; name2
9.s3
10link(name1, name2)
11.br
12char *name1, *name2;
13.ft R
14.sh DESCRIPTION
15A link
16to
17.it name1
18is created;
19the link has the name
20.it name2.
21Either name may be an arbitrary path name.
22.sh "SEE ALSO"
23link(I), unlink(II)
24.sh DIAGNOSTICS
25The error bit
26(c-bit) is set when
27.it name1
28cannot be found; when
29.it name2
30already exists; when the directory of
31.it name2
32cannot be written; when
33an attempt is made to link to a directory by a user
34other than the super-user;
35when an attempt is made to link
36to a file on another file system.
37From C, a \*-1 return indicates an error,
38a 0 return indicates success.