diff options
author | Ron Yorston <rmy@pobox.com> | 2018-04-02 09:24:14 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2018-04-02 09:24:14 +0100 |
commit | 34a68d327b42c3c700e84cd475496985782290b1 (patch) | |
tree | 99bfe59cca420d26f01e81a7f41763f71b44d22c /include | |
parent | aff3c5bd7b6bdcfb97f63153ab839c5f55f16a12 (diff) | |
parent | e84212f8346741a2d4a04b40639c44fe519cf5a7 (diff) | |
download | busybox-w32-34a68d327b42c3c700e84cd475496985782290b1.tar.gz busybox-w32-34a68d327b42c3c700e84cd475496985782290b1.tar.bz2 busybox-w32-34a68d327b42c3c700e84cd475496985782290b1.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/include/libbb.h b/include/libbb.h index 244d85e84..af234e7b0 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -952,7 +952,7 @@ extern void xprint_and_close_file(FILE *file) FAST_FUNC; | |||
952 | * end of line. If end isn't NULL, length of the chunk is stored in it. | 952 | * end of line. If end isn't NULL, length of the chunk is stored in it. |
953 | * Returns NULL if EOF/error. | 953 | * Returns NULL if EOF/error. |
954 | */ | 954 | */ |
955 | extern char *bb_get_chunk_from_file(FILE *file, int *end) FAST_FUNC; | 955 | extern char *bb_get_chunk_from_file(FILE *file, size_t *end) FAST_FUNC; |
956 | /* Reads up to (and including) TERMINATING_STRING: */ | 956 | /* Reads up to (and including) TERMINATING_STRING: */ |
957 | extern char *xmalloc_fgets_str(FILE *file, const char *terminating_string) FAST_FUNC RETURNS_MALLOC; | 957 | extern char *xmalloc_fgets_str(FILE *file, const char *terminating_string) FAST_FUNC RETURNS_MALLOC; |
958 | /* Same, with limited max size, and returns the length (excluding NUL): */ | 958 | /* Same, with limited max size, and returns the length (excluding NUL): */ |
@@ -1325,20 +1325,21 @@ extern smallint syslog_level; | |||
1325 | extern smallint logmode; | 1325 | extern smallint logmode; |
1326 | extern uint8_t xfunc_error_retval; | 1326 | extern uint8_t xfunc_error_retval; |
1327 | extern void (*die_func)(void); | 1327 | extern void (*die_func)(void); |
1328 | extern void xfunc_die(void) NORETURN FAST_FUNC; | 1328 | void xfunc_die(void) NORETURN FAST_FUNC; |
1329 | extern void bb_show_usage(void) NORETURN FAST_FUNC; | 1329 | void bb_show_usage(void) NORETURN FAST_FUNC; |
1330 | extern void bb_error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC; | 1330 | void bb_error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC; |
1331 | extern void bb_error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))) FAST_FUNC; | 1331 | void bb_error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))) FAST_FUNC; |
1332 | extern void bb_perror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC; | 1332 | void bb_perror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC; |
1333 | extern void bb_simple_perror_msg(const char *s) FAST_FUNC; | 1333 | void bb_simple_perror_msg(const char *s) FAST_FUNC; |
1334 | extern void bb_perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))) FAST_FUNC; | 1334 | void bb_perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))) FAST_FUNC; |
1335 | extern void bb_simple_perror_msg_and_die(const char *s) NORETURN FAST_FUNC; | 1335 | void bb_simple_perror_msg_and_die(const char *s) NORETURN FAST_FUNC; |
1336 | extern void bb_herror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC; | 1336 | void bb_herror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC; |
1337 | extern void bb_herror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))) FAST_FUNC; | 1337 | void bb_herror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))) FAST_FUNC; |
1338 | extern void bb_perror_nomsg_and_die(void) NORETURN FAST_FUNC; | 1338 | void bb_perror_nomsg_and_die(void) NORETURN FAST_FUNC; |
1339 | extern void bb_perror_nomsg(void) FAST_FUNC; | 1339 | void bb_perror_nomsg(void) FAST_FUNC; |
1340 | extern void bb_verror_msg(const char *s, va_list p, const char *strerr) FAST_FUNC; | 1340 | void bb_verror_msg(const char *s, va_list p, const char *strerr) FAST_FUNC; |
1341 | extern void bb_logenv_override(void) FAST_FUNC; | 1341 | void bb_die_memory_exhausted(void) NORETURN FAST_FUNC; |
1342 | void bb_logenv_override(void) FAST_FUNC; | ||
1342 | 1343 | ||
1343 | /* We need to export XXX_main from libbusybox | 1344 | /* We need to export XXX_main from libbusybox |
1344 | * only if we build "individual" binaries | 1345 | * only if we build "individual" binaries |