diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 12 | ||||
-rw-r--r-- | include/unarchive.h | 1 |
2 files changed, 7 insertions, 6 deletions
diff --git a/include/libbb.h b/include/libbb.h index 549b4fc0c..ddf965fbf 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -133,9 +133,9 @@ extern DIR *bb_xopendir(const char *path); | |||
133 | extern int remove_file(const char *path, int flags); | 133 | extern int remove_file(const char *path, int flags); |
134 | extern int copy_file(const char *source, const char *dest, int flags); | 134 | extern int copy_file(const char *source, const char *dest, int flags); |
135 | extern ssize_t safe_read(int fd, void *buf, size_t count); | 135 | extern ssize_t safe_read(int fd, void *buf, size_t count); |
136 | extern ssize_t bb_full_read(int fd, void *buf, size_t len); | 136 | extern ssize_t full_read(int fd, void *buf, size_t len); |
137 | extern ssize_t safe_write(int fd, const void *buf, size_t count); | 137 | extern ssize_t safe_write(int fd, const void *buf, size_t count); |
138 | extern ssize_t bb_full_write(int fd, const void *buf, size_t len); | 138 | extern ssize_t full_write(int fd, const void *buf, size_t len); |
139 | extern int recursive_action(const char *fileName, int recurse, | 139 | extern int recursive_action(const char *fileName, int recurse, |
140 | int followLinks, int depthFirst, | 140 | int followLinks, int depthFirst, |
141 | int (*fileAction) (const char *fileName, struct stat* statbuf, void* userData), | 141 | int (*fileAction) (const char *fileName, struct stat* statbuf, void* userData), |
@@ -187,6 +187,7 @@ extern void itoa_to_buf(int n, char *buf, unsigned buflen); | |||
187 | extern char *itoa(int n); | 187 | extern char *itoa(int n); |
188 | extern void xsetgid(gid_t gid); | 188 | extern void xsetgid(gid_t gid); |
189 | extern void xsetuid(uid_t uid); | 189 | extern void xsetuid(uid_t uid); |
190 | extern off_t fdlength(int fd); | ||
190 | 191 | ||
191 | #define BB_GETOPT_ERROR 0x80000000UL | 192 | #define BB_GETOPT_ERROR 0x80000000UL |
192 | extern const char *bb_opt_complementally; | 193 | extern const char *bb_opt_complementally; |
@@ -477,9 +478,10 @@ extern int obscure(const char *old, const char *newval, const struct passwd *pwd | |||
477 | 478 | ||
478 | extern int bb_xopen(const char *pathname, int flags); | 479 | extern int bb_xopen(const char *pathname, int flags); |
479 | extern int bb_xopen3(const char *pathname, int flags, int mode); | 480 | extern int bb_xopen3(const char *pathname, int flags, int mode); |
480 | extern ssize_t bb_xread(int fd, void *buf, size_t count); | 481 | extern void xread(int fd, void *buf, size_t count); |
481 | extern void bb_xread_all(int fd, void *buf, size_t count); | 482 | extern unsigned char xread_char(int fd); |
482 | extern unsigned char bb_xread_char(int fd); | 483 | extern void xlseek(int fd, off_t offset, int whence); |
484 | extern void xwrite(int fd, void *buf, size_t count); | ||
483 | 485 | ||
484 | #ifndef COMM_LEN | 486 | #ifndef COMM_LEN |
485 | #ifdef TASK_COMM_LEN | 487 | #ifdef TASK_COMM_LEN |
diff --git a/include/unarchive.h b/include/unarchive.h index 752a05c86..05ab0c16a 100644 --- a/include/unarchive.h +++ b/include/unarchive.h | |||
@@ -96,7 +96,6 @@ extern char get_header_tar_gz(archive_handle_t *archive_handle); | |||
96 | extern void seek_by_jump(const archive_handle_t *archive_handle, const unsigned int amount); | 96 | extern void seek_by_jump(const archive_handle_t *archive_handle, const unsigned int amount); |
97 | extern void seek_by_char(const archive_handle_t *archive_handle, const unsigned int amount); | 97 | extern void seek_by_char(const archive_handle_t *archive_handle, const unsigned int amount); |
98 | 98 | ||
99 | extern void archive_xread_all(const archive_handle_t *archive_handle, void *buf, const size_t count); | ||
100 | extern ssize_t archive_xread_all_eof(archive_handle_t *archive_handle, unsigned char *buf, size_t count); | 99 | extern ssize_t archive_xread_all_eof(archive_handle_t *archive_handle, unsigned char *buf, size_t count); |
101 | 100 | ||
102 | extern void data_align(archive_handle_t *archive_handle, const unsigned short boundary); | 101 | extern void data_align(archive_handle_t *archive_handle, const unsigned short boundary); |