aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2018-04-02 09:24:14 +0100
committerRon Yorston <rmy@pobox.com>2018-04-02 09:24:14 +0100
commit34a68d327b42c3c700e84cd475496985782290b1 (patch)
tree99bfe59cca420d26f01e81a7f41763f71b44d22c /include
parentaff3c5bd7b6bdcfb97f63153ab839c5f55f16a12 (diff)
parente84212f8346741a2d4a04b40639c44fe519cf5a7 (diff)
downloadbusybox-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.h31
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 */
955extern char *bb_get_chunk_from_file(FILE *file, int *end) FAST_FUNC; 955extern 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: */
957extern char *xmalloc_fgets_str(FILE *file, const char *terminating_string) FAST_FUNC RETURNS_MALLOC; 957extern 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;
1325extern smallint logmode; 1325extern smallint logmode;
1326extern uint8_t xfunc_error_retval; 1326extern uint8_t xfunc_error_retval;
1327extern void (*die_func)(void); 1327extern void (*die_func)(void);
1328extern void xfunc_die(void) NORETURN FAST_FUNC; 1328void xfunc_die(void) NORETURN FAST_FUNC;
1329extern void bb_show_usage(void) NORETURN FAST_FUNC; 1329void bb_show_usage(void) NORETURN FAST_FUNC;
1330extern void bb_error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC; 1330void bb_error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC;
1331extern void bb_error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))) FAST_FUNC; 1331void bb_error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))) FAST_FUNC;
1332extern void bb_perror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC; 1332void bb_perror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC;
1333extern void bb_simple_perror_msg(const char *s) FAST_FUNC; 1333void bb_simple_perror_msg(const char *s) FAST_FUNC;
1334extern void bb_perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))) FAST_FUNC; 1334void bb_perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))) FAST_FUNC;
1335extern void bb_simple_perror_msg_and_die(const char *s) NORETURN FAST_FUNC; 1335void bb_simple_perror_msg_and_die(const char *s) NORETURN FAST_FUNC;
1336extern void bb_herror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC; 1336void bb_herror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC;
1337extern void bb_herror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))) FAST_FUNC; 1337void bb_herror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))) FAST_FUNC;
1338extern void bb_perror_nomsg_and_die(void) NORETURN FAST_FUNC; 1338void bb_perror_nomsg_and_die(void) NORETURN FAST_FUNC;
1339extern void bb_perror_nomsg(void) FAST_FUNC; 1339void bb_perror_nomsg(void) FAST_FUNC;
1340extern void bb_verror_msg(const char *s, va_list p, const char *strerr) FAST_FUNC; 1340void bb_verror_msg(const char *s, va_list p, const char *strerr) FAST_FUNC;
1341extern void bb_logenv_override(void) FAST_FUNC; 1341void bb_die_memory_exhausted(void) NORETURN FAST_FUNC;
1342void 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