1LINK(1P)                   POSIX Programmer's Manual                  LINK(1P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       link - call link function
13

SYNOPSIS

15       link file1 file2
16

DESCRIPTION

18       The link utility shall perform the function call:
19
20
21              link(file1, file2);
22
23       A user may need appropriate privilege to invoke the link utility.
24

OPTIONS

26       None.
27

OPERANDS

29       The following operands shall be supported:
30
31       file1  The pathname of an existing file.
32
33       file2  The pathname of the new directory entry to be created.
34
35

STDIN

37       Not used.
38

INPUT FILES

40       Not used.
41

ENVIRONMENT VARIABLES

43       The following environment variables shall affect the execution of link:
44
45       LANG   Provide a default value for the  internationalization  variables
46              that  are  unset  or  null.  (See the Base Definitions volume of
47              IEEE Std 1003.1-2001, Section  8.2,  Internationalization  Vari‐
48              ables  for the precedence of internationalization variables used
49              to determine the values of locale categories.)
50
51       LC_ALL If set to a non-empty string value, override the values  of  all
52              the other internationalization variables.
53
54       LC_CTYPE
55              Determine  the  locale  for  the  interpretation of sequences of
56              bytes of text data as characters (for  example,  single-byte  as
57              opposed to multi-byte characters in arguments).
58
59       LC_MESSAGES
60
61              Determine  the  locale  that should be used to affect the format
62              and contents of diagnostic messages written to standard error.
63
64       NLSPATH
65              Determine the location of message catalogs for the processing of
66              LC_MESSAGES .
67
68

ASYNCHRONOUS EVENTS

70       Default.
71

STDOUT

73       None.
74

STDERR

76       The standard error shall be used only for diagnostic messages.
77

OUTPUT FILES

79       None.
80

EXTENDED DESCRIPTION

82       None.
83

EXIT STATUS

85       The following exit values shall be returned:
86
87        0     Successful completion.
88
89       >0     An error occurred.
90
91

CONSEQUENCES OF ERRORS

93       Default.
94
95       The following sections are informative.
96

APPLICATION USAGE

98       None.
99

EXAMPLES

101       None.
102

RATIONALE

104       None.
105

FUTURE DIRECTIONS

107       None.
108

SEE ALSO

110       ln,  unlink(),  the  System  Interfaces volume of IEEE Std 1003.1-2001,
111       link()
112
114       Portions of this text are reprinted and reproduced in  electronic  form
115       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
116       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
117       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
118       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
119       event of any discrepancy between this version and the original IEEE and
120       The Open Group Standard, the original IEEE and The Open Group  Standard
121       is  the  referee document. The original Standard can be obtained online
122       at http://www.opengroup.org/unix/online.html .
123
124
125
126IEEE/The Open Group                  2003                             LINK(1P)
Impressum