73 The unlink() and unlinkat() functions will fail if:
74
75 EACCES
76 Search permission is denied for a component of the path
77 prefix, or write permission is denied on the directory
78 containing the link to be removed.
79
80
81 EACCES
82 The parent directory has the sticky bit set and the
83 file is not writable by the user, the user does not own
84 the parent directory, the user does not own the file,
85 and the user is not a privileged user.
86
87
88 EBUSY
89 The entry to be unlinked is the mount point for a
90 mounted file system.
91
92
93 EFAULT
94 The path argument points to an illegal address.
95
96
97 EILSEQ
98 The path argument includes non-UTF8 characters and the
99 file system accepts only file names where all
100 characters are part of the UTF-8 character codeset.
101
102
103 EINTR
104 A signal was caught during the execution of the
105 unlink() function.
106
107
108 ELOOP
109 Too many symbolic links were encountered in translating
110 path.
111
112
163 ATTRIBUTES
164 See attributes(5) for descriptions of the following attributes:
165
166
167
168
169 +--------------------+----------------------------------------------+
170 | ATTRIBUTE TYPE | ATTRIBUTE VALUE |
171 +--------------------+----------------------------------------------+
172 |Interface Stability | unlink() is Standard; unlinkat() is Evolving |
173 +--------------------+----------------------------------------------+
174 |MT-Level | Async-Signal-Safe |
175 +--------------------+----------------------------------------------+
176
177 SEE ALSO
178 rm(1), close(2), link(2), open(2), rmdir(2), remove(3C), attributes(5),
179 privileges(5), fsattr(5)
180
181
182
183 May 18, 2007 UNLINK(2)
|
73 The unlink() and unlinkat() functions will fail if:
74
75 EACCES
76 Search permission is denied for a component of the path
77 prefix, or write permission is denied on the directory
78 containing the link to be removed.
79
80
81 EACCES
82 The parent directory has the sticky bit set and the
83 file is not writable by the user, the user does not own
84 the parent directory, the user does not own the file,
85 and the user is not a privileged user.
86
87
88 EBUSY
89 The entry to be unlinked is the mount point for a
90 mounted file system.
91
92
93 EEXIST
94 The entry to be unlinked is a directory which is not
95 empty.
96
97
98 EFAULT
99 The path argument points to an illegal address.
100
101
102 EILSEQ
103 The path argument includes non-UTF8 characters and the
104 file system accepts only file names where all
105 characters are part of the UTF-8 character codeset.
106
107
108 EINTR
109 A signal was caught during the execution of the
110 unlink() function.
111
112
113 ELOOP
114 Too many symbolic links were encountered in translating
115 path.
116
117
168 ATTRIBUTES
169 See attributes(5) for descriptions of the following attributes:
170
171
172
173
174 +--------------------+----------------------------------------------+
175 | ATTRIBUTE TYPE | ATTRIBUTE VALUE |
176 +--------------------+----------------------------------------------+
177 |Interface Stability | unlink() is Standard; unlinkat() is Evolving |
178 +--------------------+----------------------------------------------+
179 |MT-Level | Async-Signal-Safe |
180 +--------------------+----------------------------------------------+
181
182 SEE ALSO
183 rm(1), close(2), link(2), open(2), rmdir(2), remove(3C), attributes(5),
184 privileges(5), fsattr(5)
185
186
187
188 December 7, 2016 UNLINK(2)
|