aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 671584b43..2bd614c71 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -607,6 +607,8 @@ extern void xopen_xwrite_close(const char* file, const char *str) FAST_FUNC;
607 607
608/* Reads and prints to stdout till eof, then closes FILE. Exits on error: */ 608/* Reads and prints to stdout till eof, then closes FILE. Exits on error: */
609extern void xprint_and_close_file(FILE *file) FAST_FUNC; 609extern void xprint_and_close_file(FILE *file) FAST_FUNC;
610
611extern char *bb_get_chunk_from_file(FILE *file, int *end) FAST_FUNC;
610/* Reads up to (and including) TERMINATING_STRING: */ 612/* Reads up to (and including) TERMINATING_STRING: */
611extern char *xmalloc_fgets_str(FILE *file, const char *terminating_string) FAST_FUNC; 613extern char *xmalloc_fgets_str(FILE *file, const char *terminating_string) FAST_FUNC;
612/* Chops off TERMINATING_STRING from the end: */ 614/* Chops off TERMINATING_STRING from the end: */
@@ -615,7 +617,9 @@ extern char *xmalloc_fgetline_str(FILE *file, const char *terminating_string) FA
615extern char *xmalloc_fgets(FILE *file) FAST_FUNC; 617extern char *xmalloc_fgets(FILE *file) FAST_FUNC;
616/* Chops off '\n' from the end, unlike fgets: */ 618/* Chops off '\n' from the end, unlike fgets: */
617extern char *xmalloc_fgetline(FILE *file) FAST_FUNC; 619extern char *xmalloc_fgetline(FILE *file) FAST_FUNC;
618extern char *bb_get_chunk_from_file(FILE *file, int *end) FAST_FUNC; 620/* Same, but doesn't try to conserve space (may have some slack after the end) */
621extern char *xmalloc_fgetline_fast(FILE *file) FAST_FUNC;
622
619extern void die_if_ferror(FILE *file, const char *msg) FAST_FUNC; 623extern void die_if_ferror(FILE *file, const char *msg) FAST_FUNC;
620extern void die_if_ferror_stdout(void) FAST_FUNC; 624extern void die_if_ferror_stdout(void) FAST_FUNC;
621extern void xfflush_stdout(void) FAST_FUNC; 625extern void xfflush_stdout(void) FAST_FUNC;