diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/include/libbb.h b/include/libbb.h index 767a3378b..0bcabf17b 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -205,12 +205,22 @@ extern int is_directory(const char *name, int followLinks, struct stat *statBuf) | |||
205 | extern DIR *warn_opendir(const char *path); | 205 | extern DIR *warn_opendir(const char *path); |
206 | extern DIR *xopendir(const char *path); | 206 | extern DIR *xopendir(const char *path); |
207 | 207 | ||
208 | extern int remove_file(const char *path, int flags); | ||
209 | extern int copy_file(const char *source, const char *dest, int flags); | ||
210 | extern ssize_t safe_read(int fd, void *buf, size_t count); | 208 | extern ssize_t safe_read(int fd, void *buf, size_t count); |
211 | extern ssize_t full_read(int fd, void *buf, size_t len); | 209 | extern ssize_t full_read(int fd, void *buf, size_t count); |
210 | extern void xread(int fd, void *buf, size_t count); | ||
211 | extern unsigned char xread_char(int fd); | ||
212 | extern char *reads(int fd, char *buf, size_t count); | ||
213 | ssize_t read_close(int fd, void *buf, size_t count); | ||
214 | ssize_t open_read_close(const char *filename, void *buf, size_t count); | ||
215 | void *xmalloc_open_read_close(const char *filename, size_t *sizep); | ||
216 | |||
212 | extern ssize_t safe_write(int fd, const void *buf, size_t count); | 217 | extern ssize_t safe_write(int fd, const void *buf, size_t count); |
213 | extern ssize_t full_write(int fd, const void *buf, size_t len); | 218 | extern ssize_t full_write(int fd, const void *buf, size_t count); |
219 | extern void xwrite(int fd, void *buf, size_t count); | ||
220 | |||
221 | extern int remove_file(const char *path, int flags); | ||
222 | extern int copy_file(const char *source, const char *dest, int flags); | ||
223 | |||
214 | extern int recursive_action(const char *fileName, int recurse, | 224 | extern int recursive_action(const char *fileName, int recurse, |
215 | int followLinks, int depthFirst, | 225 | int followLinks, int depthFirst, |
216 | int (*fileAction) (const char *fileName, struct stat* statbuf, void* userData), | 226 | int (*fileAction) (const char *fileName, struct stat* statbuf, void* userData), |
@@ -592,10 +602,7 @@ extern int obscure(const char *old, const char *newval, const struct passwd *pwd | |||
592 | extern void xsetenv(const char *key, const char *value); | 602 | extern void xsetenv(const char *key, const char *value); |
593 | extern int xopen(const char *pathname, int flags); | 603 | extern int xopen(const char *pathname, int flags); |
594 | extern int xopen3(const char *pathname, int flags, int mode); | 604 | extern int xopen3(const char *pathname, int flags, int mode); |
595 | extern void xread(int fd, void *buf, size_t count); | 605 | extern off_t xlseek(int fd, off_t offset, int whence); |
596 | extern unsigned char xread_char(int fd); | ||
597 | extern void xlseek(int fd, off_t offset, int whence); | ||
598 | extern void xwrite(int fd, void *buf, size_t count); | ||
599 | 606 | ||
600 | extern const char bb_uuenc_tbl_base64[]; | 607 | extern const char bb_uuenc_tbl_base64[]; |
601 | extern const char bb_uuenc_tbl_std[]; | 608 | extern const char bb_uuenc_tbl_std[]; |