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

NAME

6       unlink - call the unlink function
7

SYNOPSIS

9       unlink file
10

DESCRIPTION

12       The unlink utility shall perform the function call:
13
14
15              unlink(file);
16
17       A user may need appropriate privilege to invoke the unlink utility.
18

OPTIONS

20       None.
21

OPERANDS

23       The following operands shall be supported:
24
25       file   The pathname of an existing file.
26
27

STDIN

29       Not used.
30

INPUT FILES

32       Not used.
33

ENVIRONMENT VARIABLES

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

ASYNCHRONOUS EVENTS

63       Default.
64

STDOUT

66       None.
67

STDERR

69       The standard error shall be used only for diagnostic messages.
70

OUTPUT FILES

72       None.
73

EXTENDED DESCRIPTION

75       None.
76

EXIT STATUS

78       The following exit values shall be returned:
79
80        0     Successful completion.
81
82       >0     An error occurred.
83
84

CONSEQUENCES OF ERRORS

86       Default.
87
88       The following sections are informative.
89

APPLICATION USAGE

91       None.
92

EXAMPLES

94       None.
95

RATIONALE

97       None.
98

FUTURE DIRECTIONS

100       None.
101

SEE ALSO

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