aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 9aff42e67..e332f165a 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -454,8 +454,8 @@ void *xrealloc(void *old, size_t size) FAST_FUNC;
454 xrealloc_vector_helper((vector), (sizeof((vector)[0]) << 8) + (shift), (idx)) 454 xrealloc_vector_helper((vector), (sizeof((vector)[0]) << 8) + (shift), (idx))
455void* xrealloc_vector_helper(void *vector, unsigned sizeof_and_shift, int idx) FAST_FUNC; 455void* xrealloc_vector_helper(void *vector, unsigned sizeof_and_shift, int idx) FAST_FUNC;
456char *xstrdup(const char *s) FAST_FUNC RETURNS_MALLOC; 456char *xstrdup(const char *s) FAST_FUNC RETURNS_MALLOC;
457char *xstrndup(const char *s, int n) FAST_FUNC RETURNS_MALLOC; 457char *xstrndup(const char *s, size_t n) FAST_FUNC RETURNS_MALLOC;
458void *xmemdup(const void *s, int n) FAST_FUNC RETURNS_MALLOC; 458void *xmemdup(const void *s, size_t n) FAST_FUNC RETURNS_MALLOC;
459void *mmap_read(int fd, size_t size) FAST_FUNC; 459void *mmap_read(int fd, size_t size) FAST_FUNC;
460void *mmap_anon(size_t size) FAST_FUNC; 460void *mmap_anon(size_t size) FAST_FUNC;
461void *xmmap_anon(size_t size) FAST_FUNC; 461void *xmmap_anon(size_t size) FAST_FUNC;
@@ -1100,6 +1100,7 @@ void die_if_ferror(FILE *file, const char *msg) FAST_FUNC;
1100void die_if_ferror_stdout(void) FAST_FUNC; 1100void die_if_ferror_stdout(void) FAST_FUNC;
1101int fflush_all(void) FAST_FUNC; 1101int fflush_all(void) FAST_FUNC;
1102void fflush_stdout_and_exit(int retval) NORETURN FAST_FUNC; 1102void fflush_stdout_and_exit(int retval) NORETURN FAST_FUNC;
1103void fflush_stdout_and_exit_SUCCESS(void) NORETURN FAST_FUNC;
1103int fclose_if_not_stdin(FILE *file) FAST_FUNC; 1104int fclose_if_not_stdin(FILE *file) FAST_FUNC;
1104FILE* xfopen(const char *filename, const char *mode) FAST_FUNC; 1105FILE* xfopen(const char *filename, const char *mode) FAST_FUNC;
1105/* Prints warning to stderr and returns NULL on failure: */ 1106/* Prints warning to stderr and returns NULL on failure: */
@@ -1327,6 +1328,8 @@ void set_task_comm(const char *comm) FAST_FUNC;
1327# define re_execed_comm() 0 1328# define re_execed_comm() 0
1328# define set_task_comm(name) ((void)0) 1329# define set_task_comm(name) ((void)0)
1329#endif 1330#endif
1331void exit_SUCCESS(void) NORETURN FAST_FUNC;
1332void _exit_SUCCESS(void) NORETURN FAST_FUNC;
1330 1333
1331/* Helpers for daemonization. 1334/* Helpers for daemonization.
1332 * 1335 *