1UNLINK(P) POSIX Programmer's Manual UNLINK(P)
2
3
4
6 unlink - call the unlink function
7
9 unlink file
10
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
20 None.
21
23 The following operands shall be supported:
24
25 file The pathname of an existing file.
26
27
29 Not used.
30
32 Not used.
33
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
63 Default.
64
66 None.
67
69 The standard error shall be used only for diagnostic messages.
70
72 None.
73
75 None.
76
78 The following exit values shall be returned:
79
80 0 Successful completion.
81
82 >0 An error occurred.
83
84
86 Default.
87
88 The following sections are informative.
89
91 None.
92
94 None.
95
97 None.
98
100 None.
101
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)