1UNLINK(1P) POSIX Programmer's Manual UNLINK(1P)
2
3
4
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
12 unlink - call the unlink function
13
15 unlink file
16
18 The unlink utility shall perform the function call:
19
20
21 unlink(file);
22
23 A user may need appropriate privilege to invoke the unlink utility.
24
26 None.
27
29 The following operands shall be supported:
30
31 file The pathname of an existing file.
32
33
35 Not used.
36
38 Not used.
39
41 The following environment variables shall affect the execution of
42 unlink:
43
44 LANG Provide a default value for the internationalization variables
45 that are unset or null. (See the Base Definitions volume of
46 IEEE Std 1003.1-2001, Section 8.2, Internationalization Vari‐
47 ables for the precedence of internationalization variables used
48 to determine the values of locale categories.)
49
50 LC_ALL If set to a non-empty string value, override the values of all
51 the other internationalization variables.
52
53 LC_CTYPE
54 Determine the locale for the interpretation of sequences of
55 bytes of text data as characters (for example, single-byte as
56 opposed to multi-byte characters in arguments).
57
58 LC_MESSAGES
59
60 Determine the locale that should be used to affect the format
61 and contents of diagnostic messages written to standard error.
62
63 NLSPATH
64 Determine the location of message catalogs for the processing of
65 LC_MESSAGES .
66
67
69 Default.
70
72 None.
73
75 The standard error shall be used only for diagnostic messages.
76
78 None.
79
81 None.
82
84 The following exit values shall be returned:
85
86 0 Successful completion.
87
88 >0 An error occurred.
89
90
92 Default.
93
94 The following sections are informative.
95
97 None.
98
100 None.
101
103 None.
104
106 None.
107
109 link(), rm, the System Interfaces volume of IEEE Std 1003.1-2001,
110 unlink()
111
113 Portions of this text are reprinted and reproduced in electronic form
114 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
115 -- Portable Operating System Interface (POSIX), The Open Group Base
116 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
117 Electrical and Electronics Engineers, Inc and The Open Group. In the
118 event of any discrepancy between this version and the original IEEE and
119 The Open Group Standard, the original IEEE and The Open Group Standard
120 is the referee document. The original Standard can be obtained online
121 at http://www.opengroup.org/unix/online.html .
122
123
124
125IEEE/The Open Group 2003 UNLINK(1P)