diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 7 |
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)) |
455 | void* xrealloc_vector_helper(void *vector, unsigned sizeof_and_shift, int idx) FAST_FUNC; | 455 | void* xrealloc_vector_helper(void *vector, unsigned sizeof_and_shift, int idx) FAST_FUNC; |
456 | char *xstrdup(const char *s) FAST_FUNC RETURNS_MALLOC; | 456 | char *xstrdup(const char *s) FAST_FUNC RETURNS_MALLOC; |
457 | char *xstrndup(const char *s, int n) FAST_FUNC RETURNS_MALLOC; | 457 | char *xstrndup(const char *s, size_t n) FAST_FUNC RETURNS_MALLOC; |
458 | void *xmemdup(const void *s, int n) FAST_FUNC RETURNS_MALLOC; | 458 | void *xmemdup(const void *s, size_t n) FAST_FUNC RETURNS_MALLOC; |
459 | void *mmap_read(int fd, size_t size) FAST_FUNC; | 459 | void *mmap_read(int fd, size_t size) FAST_FUNC; |
460 | void *mmap_anon(size_t size) FAST_FUNC; | 460 | void *mmap_anon(size_t size) FAST_FUNC; |
461 | void *xmmap_anon(size_t size) FAST_FUNC; | 461 | void *xmmap_anon(size_t size) FAST_FUNC; |
@@ -1100,6 +1100,7 @@ void die_if_ferror(FILE *file, const char *msg) FAST_FUNC; | |||
1100 | void die_if_ferror_stdout(void) FAST_FUNC; | 1100 | void die_if_ferror_stdout(void) FAST_FUNC; |
1101 | int fflush_all(void) FAST_FUNC; | 1101 | int fflush_all(void) FAST_FUNC; |
1102 | void fflush_stdout_and_exit(int retval) NORETURN FAST_FUNC; | 1102 | void fflush_stdout_and_exit(int retval) NORETURN FAST_FUNC; |
1103 | void fflush_stdout_and_exit_SUCCESS(void) NORETURN FAST_FUNC; | ||
1103 | int fclose_if_not_stdin(FILE *file) FAST_FUNC; | 1104 | int fclose_if_not_stdin(FILE *file) FAST_FUNC; |
1104 | FILE* xfopen(const char *filename, const char *mode) FAST_FUNC; | 1105 | FILE* 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 |
1331 | void exit_SUCCESS(void) NORETURN FAST_FUNC; | ||
1332 | void _exit_SUCCESS(void) NORETURN FAST_FUNC; | ||
1330 | 1333 | ||
1331 | /* Helpers for daemonization. | 1334 | /* Helpers for daemonization. |
1332 | * | 1335 | * |