aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 05a0c575c..9da94638b 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -920,6 +920,7 @@ extern ssize_t open_read_close(const char *filename, void *buf, size_t maxsz) FA
920extern char *xmalloc_reads(int fd, size_t *maxsz_p) FAST_FUNC; 920extern char *xmalloc_reads(int fd, size_t *maxsz_p) FAST_FUNC;
921/* Reads block up to *maxsz_p (default: INT_MAX - 4095) */ 921/* Reads block up to *maxsz_p (default: INT_MAX - 4095) */
922extern void *xmalloc_read(int fd, size_t *maxsz_p) FAST_FUNC RETURNS_MALLOC; 922extern void *xmalloc_read(int fd, size_t *maxsz_p) FAST_FUNC RETURNS_MALLOC;
923extern void *xmalloc_read_with_initial_buf(int fd, size_t *maxsz_p, char *buf, size_t total) FAST_FUNC;
923/* Returns NULL if file can't be opened (default max size: INT_MAX - 4095) */ 924/* Returns NULL if file can't be opened (default max size: INT_MAX - 4095) */
924extern void *xmalloc_open_read_close(const char *filename, size_t *maxsz_p) FAST_FUNC RETURNS_MALLOC; 925extern void *xmalloc_open_read_close(const char *filename, size_t *maxsz_p) FAST_FUNC RETURNS_MALLOC;
925/* Never returns NULL */ 926/* Never returns NULL */
@@ -1359,7 +1360,6 @@ enum {
1359 LOGMODE_BOTH = LOGMODE_SYSLOG + LOGMODE_STDIO, 1360 LOGMODE_BOTH = LOGMODE_SYSLOG + LOGMODE_STDIO,
1360}; 1361};
1361extern const char *msg_eol; 1362extern const char *msg_eol;
1362extern smallint syslog_level;
1363extern smallint logmode; 1363extern smallint logmode;
1364extern uint8_t xfunc_error_retval; 1364extern uint8_t xfunc_error_retval;
1365extern void (*die_func)(void); 1365extern void (*die_func)(void);
@@ -1379,6 +1379,14 @@ void bb_verror_msg(const char *s, va_list p, const char *strerr) FAST_FUNC;
1379void bb_die_memory_exhausted(void) NORETURN FAST_FUNC; 1379void bb_die_memory_exhausted(void) NORETURN FAST_FUNC;
1380void bb_logenv_override(void) FAST_FUNC; 1380void bb_logenv_override(void) FAST_FUNC;
1381 1381
1382#if ENABLE_FEATURE_SYSLOG_INFO
1383void bb_info_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC;
1384void bb_vinfo_msg(const char *s, va_list p) FAST_FUNC;
1385#else
1386#define bb_info_msg bb_error_msg
1387#define bb_vinfo_msg(s,p) bb_verror_msg(s,p,NULL)
1388#endif
1389
1382/* We need to export XXX_main from libbusybox 1390/* We need to export XXX_main from libbusybox
1383 * only if we build "individual" binaries 1391 * only if we build "individual" binaries
1384 */ 1392 */