aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h23
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)
205extern DIR *warn_opendir(const char *path); 205extern DIR *warn_opendir(const char *path);
206extern DIR *xopendir(const char *path); 206extern DIR *xopendir(const char *path);
207 207
208extern int remove_file(const char *path, int flags);
209extern int copy_file(const char *source, const char *dest, int flags);
210extern ssize_t safe_read(int fd, void *buf, size_t count); 208extern ssize_t safe_read(int fd, void *buf, size_t count);
211extern ssize_t full_read(int fd, void *buf, size_t len); 209extern ssize_t full_read(int fd, void *buf, size_t count);
210extern void xread(int fd, void *buf, size_t count);
211extern unsigned char xread_char(int fd);
212extern char *reads(int fd, char *buf, size_t count);
213ssize_t read_close(int fd, void *buf, size_t count);
214ssize_t open_read_close(const char *filename, void *buf, size_t count);
215void *xmalloc_open_read_close(const char *filename, size_t *sizep);
216
212extern ssize_t safe_write(int fd, const void *buf, size_t count); 217extern ssize_t safe_write(int fd, const void *buf, size_t count);
213extern ssize_t full_write(int fd, const void *buf, size_t len); 218extern ssize_t full_write(int fd, const void *buf, size_t count);
219extern void xwrite(int fd, void *buf, size_t count);
220
221extern int remove_file(const char *path, int flags);
222extern int copy_file(const char *source, const char *dest, int flags);
223
214extern int recursive_action(const char *fileName, int recurse, 224extern 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
592extern void xsetenv(const char *key, const char *value); 602extern void xsetenv(const char *key, const char *value);
593extern int xopen(const char *pathname, int flags); 603extern int xopen(const char *pathname, int flags);
594extern int xopen3(const char *pathname, int flags, int mode); 604extern int xopen3(const char *pathname, int flags, int mode);
595extern void xread(int fd, void *buf, size_t count); 605extern off_t xlseek(int fd, off_t offset, int whence);
596extern unsigned char xread_char(int fd);
597extern void xlseek(int fd, off_t offset, int whence);
598extern void xwrite(int fd, void *buf, size_t count);
599 606
600extern const char bb_uuenc_tbl_base64[]; 607extern const char bb_uuenc_tbl_base64[];
601extern const char bb_uuenc_tbl_std[]; 608extern const char bb_uuenc_tbl_std[];