diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-05 21:25:15 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-05 21:25:15 +0000 |
commit | 1bb552b1d9da749050274e0a9cb10b672db22d77 (patch) | |
tree | a638c7bbef95bd2c9d72c2e16a5cf4f7b6298458 /include | |
parent | 9020d850bf2b0fd547b545e5e366c7ed284a33cb (diff) | |
download | busybox-w32-1bb552b1d9da749050274e0a9cb10b672db22d77.tar.gz busybox-w32-1bb552b1d9da749050274e0a9cb10b672db22d77.tar.bz2 busybox-w32-1bb552b1d9da749050274e0a9cb10b672db22d77.zip |
libbb: add xunlink()
patch: do not try to delete same file twice
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/include/libbb.h b/include/libbb.h index 91715c16a..b56352626 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -293,14 +293,15 @@ extern void sig_pause(void); | |||
293 | 293 | ||
294 | 294 | ||
295 | 295 | ||
296 | extern void xsetgid(gid_t gid); | 296 | void xsetgid(gid_t gid); |
297 | extern void xsetuid(uid_t uid); | 297 | void xsetuid(uid_t uid); |
298 | extern void xchdir(const char *path); | 298 | void xchdir(const char *path); |
299 | extern void xsetenv(const char *key, const char *value); | 299 | void xsetenv(const char *key, const char *value); |
300 | extern int xopen(const char *pathname, int flags); | 300 | void xunlink(const char *pathname); |
301 | extern int xopen3(const char *pathname, int flags, int mode); | 301 | int xopen(const char *pathname, int flags); |
302 | extern off_t xlseek(int fd, off_t offset, int whence); | 302 | int xopen3(const char *pathname, int flags, int mode); |
303 | extern off_t fdlength(int fd); | 303 | off_t xlseek(int fd, off_t offset, int whence); |
304 | off_t fdlength(int fd); | ||
304 | 305 | ||
305 | 306 | ||
306 | int xsocket(int domain, int type, int protocol); | 307 | int xsocket(int domain, int type, int protocol); |