aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-04-01 19:59:37 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2018-04-01 19:59:37 +0200
commit899ae5337acc2d24edcd64e570adfc5f3c1a8a8a (patch)
tree9ec3de6ffce8df5f82d1428d595ffe4028905a3d /include
parente2afae6303e871a31a061d03359cfcd5dd86c088 (diff)
downloadbusybox-w32-899ae5337acc2d24edcd64e570adfc5f3c1a8a8a.tar.gz
busybox-w32-899ae5337acc2d24edcd64e570adfc5f3c1a8a8a.tar.bz2
busybox-w32-899ae5337acc2d24edcd64e570adfc5f3c1a8a8a.zip
libbb: new function bb_die_memory_exhausted
function old new delta bb_die_memory_exhausted - 10 +10 xstrdup 28 23 -5 xsetenv 27 22 -5 xrealloc 32 27 -5 xputenv 22 17 -5 xmalloc 30 25 -5 xfdopen_helper 40 35 -5 xasprintf 44 39 -5 wget_main 2387 2382 -5 open_socket 54 49 -5 glob_brace 419 414 -5 bb_get_chunk_from_file 146 141 -5 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/11 up/down: 10/-55) Total: -45 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 309c58734..ad1c7346f 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1277,20 +1277,21 @@ extern smallint syslog_level;
1277extern smallint logmode; 1277extern smallint logmode;
1278extern uint8_t xfunc_error_retval; 1278extern uint8_t xfunc_error_retval;
1279extern void (*die_func)(void); 1279extern void (*die_func)(void);
1280extern void xfunc_die(void) NORETURN FAST_FUNC; 1280void xfunc_die(void) NORETURN FAST_FUNC;
1281extern void bb_show_usage(void) NORETURN FAST_FUNC; 1281void bb_show_usage(void) NORETURN FAST_FUNC;
1282extern void bb_error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC; 1282void bb_error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC;
1283extern void bb_error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))) FAST_FUNC; 1283void bb_error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))) FAST_FUNC;
1284extern void bb_perror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC; 1284void bb_perror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC;
1285extern void bb_simple_perror_msg(const char *s) FAST_FUNC; 1285void bb_simple_perror_msg(const char *s) FAST_FUNC;
1286extern void bb_perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))) FAST_FUNC; 1286void bb_perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))) FAST_FUNC;
1287extern void bb_simple_perror_msg_and_die(const char *s) NORETURN FAST_FUNC; 1287void bb_simple_perror_msg_and_die(const char *s) NORETURN FAST_FUNC;
1288extern void bb_herror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC; 1288void bb_herror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC;
1289extern void bb_herror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))) FAST_FUNC; 1289void bb_herror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))) FAST_FUNC;
1290extern void bb_perror_nomsg_and_die(void) NORETURN FAST_FUNC; 1290void bb_perror_nomsg_and_die(void) NORETURN FAST_FUNC;
1291extern void bb_perror_nomsg(void) FAST_FUNC; 1291void bb_perror_nomsg(void) FAST_FUNC;
1292extern void bb_verror_msg(const char *s, va_list p, const char *strerr) FAST_FUNC; 1292void bb_verror_msg(const char *s, va_list p, const char *strerr) FAST_FUNC;
1293extern void bb_logenv_override(void) FAST_FUNC; 1293void bb_die_memory_exhausted(void) NORETURN FAST_FUNC;
1294void bb_logenv_override(void) FAST_FUNC;
1294 1295
1295/* We need to export XXX_main from libbusybox 1296/* We need to export XXX_main from libbusybox
1296 * only if we build "individual" binaries 1297 * only if we build "individual" binaries