diff options
author | Ron Yorston <rmy@pobox.com> | 2018-04-09 08:50:34 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2018-04-09 08:50:34 +0100 |
commit | 921c1ab66bad54d4ad8591bb74e41ac985248496 (patch) | |
tree | 552a04c691e78e78570e4ec2c83fbc0e59953924 /include | |
parent | 5b6f06f5eb8628955262508d153627fe6f2d1c8b (diff) | |
parent | a1870f4807a75663a085c9f5e92870fa7554f0ad (diff) | |
download | busybox-w32-921c1ab66bad54d4ad8591bb74e41ac985248496.tar.gz busybox-w32-921c1ab66bad54d4ad8591bb74e41ac985248496.tar.bz2 busybox-w32-921c1ab66bad54d4ad8591bb74e41ac985248496.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'include')
-rw-r--r-- | include/bb_archive.h | 2 | ||||
-rw-r--r-- | include/libbb.h | 13 |
2 files changed, 9 insertions, 6 deletions
diff --git a/include/bb_archive.h b/include/bb_archive.h index 91d5561fc..084ba9470 100644 --- a/include/bb_archive.h +++ b/include/bb_archive.h | |||
@@ -224,7 +224,7 @@ const llist_t *find_list_entry2(const llist_t *list, const char *filename) FAST_ | |||
224 | 224 | ||
225 | /* A bit of bunzip2 internals are exposed for compressed help support: */ | 225 | /* A bit of bunzip2 internals are exposed for compressed help support: */ |
226 | typedef struct bunzip_data bunzip_data; | 226 | typedef struct bunzip_data bunzip_data; |
227 | int start_bunzip(bunzip_data **bdp, int in_fd, const void *inbuf, int len) FAST_FUNC; | 227 | int start_bunzip(void *, bunzip_data **bdp, int in_fd, const void *inbuf, int len) FAST_FUNC; |
228 | /* NB: read_bunzip returns < 0 on error, or the number of *unfilled* bytes | 228 | /* NB: read_bunzip returns < 0 on error, or the number of *unfilled* bytes |
229 | * in outbuf. IOW: on EOF returns len ("all bytes are not filled"), not 0: */ | 229 | * in outbuf. IOW: on EOF returns len ("all bytes are not filled"), not 0: */ |
230 | int read_bunzip(bunzip_data *bd, char *outbuf, int len) FAST_FUNC; | 230 | int read_bunzip(bunzip_data *bd, char *outbuf, int len) FAST_FUNC; |
diff --git a/include/libbb.h b/include/libbb.h index d948f88f3..876875045 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -41,6 +41,7 @@ | |||
41 | #include <poll.h> | 41 | #include <poll.h> |
42 | #include <sys/ioctl.h> | 42 | #include <sys/ioctl.h> |
43 | #include <sys/mman.h> | 43 | #include <sys/mman.h> |
44 | #include <sys/resource.h> | ||
44 | #include <sys/socket.h> | 45 | #include <sys/socket.h> |
45 | #include <sys/stat.h> | 46 | #include <sys/stat.h> |
46 | #include <sys/time.h> | 47 | #include <sys/time.h> |
@@ -1456,11 +1457,13 @@ extern int set_loop(char **devname, const char *file, unsigned long long offset, | |||
1456 | #define BB_LO_FLAGS_READ_ONLY 1 | 1457 | #define BB_LO_FLAGS_READ_ONLY 1 |
1457 | #define BB_LO_FLAGS_AUTOCLEAR 4 | 1458 | #define BB_LO_FLAGS_AUTOCLEAR 4 |
1458 | 1459 | ||
1459 | /* Like bb_ask below, but asks on stdin with no timeout. */ | 1460 | /* Returns malloced str */ |
1460 | char *bb_ask_stdin(const char * prompt) FAST_FUNC; | 1461 | char *bb_ask_noecho(int fd, int timeout, const char *prompt) FAST_FUNC; |
1461 | //TODO: pass buf pointer or return allocated buf (avoid statics)? | 1462 | /* Like bb_ask_noecho, but asks on stdin with no timeout. */ |
1462 | char *bb_ask(const int fd, int timeout, const char * prompt) FAST_FUNC; | 1463 | char *bb_ask_noecho_stdin(const char *prompt) FAST_FUNC; |
1463 | int bb_ask_confirmation(void) FAST_FUNC; | 1464 | |
1465 | int bb_ask_y_confirmation_FILE(FILE *fp) FAST_FUNC; | ||
1466 | int bb_ask_y_confirmation(void) FAST_FUNC; | ||
1464 | 1467 | ||
1465 | /* Returns -1 if input is invalid. current_mode is a base for e.g. "u+rw" */ | 1468 | /* Returns -1 if input is invalid. current_mode is a base for e.g. "u+rw" */ |
1466 | int bb_parse_mode(const char* s, unsigned cur_mode) FAST_FUNC; | 1469 | int bb_parse_mode(const char* s, unsigned cur_mode) FAST_FUNC; |