1LINK(2)                       System Calls Manual                      LINK(2)
2
3
4

NAME

6       link - link to a file
7

SYNOPSIS

9       link(name1, name2)
10       char *name1, *name2;
11

DESCRIPTION

13       A  link  to name1 is created; the link has the name name2.  Either name
14       may be an arbitrary path name.
15

SEE ALSO

17       ln(1), unlink(2)
18

DIAGNOSTICS

20       Zero is returned when a link is made; -1 is returned when name1  cannot
21       be found; when name2 already exists; when the directory of name2 cannot
22       be written; when an attempt is made to link to a directory  by  a  user
23       other than the super-user; when an attempt is made to link to a file on
24       another file system; when a file has too many links.
25

ASSEMBLER

27       (link = 9.)
28       sys link; name1; name2
29
30
31
32                                                                       LINK(2)
Impressum