aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/bb_archive.h6
-rw-r--r--include/libbb.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/include/bb_archive.h b/include/bb_archive.h
index 561dd0c9d..9b1db5b3e 100644
--- a/include/bb_archive.h
+++ b/include/bb_archive.h
@@ -235,6 +235,12 @@ typedef struct transformer_state_t {
235 off_t bytes_in; /* used in unzip code only: needs to know packed size */ 235 off_t bytes_in; /* used in unzip code only: needs to know packed size */
236 uint32_t crc32; 236 uint32_t crc32;
237 time_t mtime; /* gunzip code may set this on exit */ 237 time_t mtime; /* gunzip code may set this on exit */
238
239 union { /* if we read magic, it's saved here */
240 uint8_t b[8];
241 uint16_t b16[4];
242 uint32_t b32[2];
243 } magic;
238} transformer_state_t; 244} transformer_state_t;
239 245
240void init_transformer_state(transformer_state_t *xstate) FAST_FUNC; 246void init_transformer_state(transformer_state_t *xstate) FAST_FUNC;
diff --git a/include/libbb.h b/include/libbb.h
index 57cfce385..33766e989 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -881,6 +881,7 @@ extern ssize_t open_read_close(const char *filename, void *buf, size_t maxsz) FA
881extern char *xmalloc_reads(int fd, size_t *maxsz_p) FAST_FUNC; 881extern char *xmalloc_reads(int fd, size_t *maxsz_p) FAST_FUNC;
882/* Reads block up to *maxsz_p (default: INT_MAX - 4095) */ 882/* Reads block up to *maxsz_p (default: INT_MAX - 4095) */
883extern void *xmalloc_read(int fd, size_t *maxsz_p) FAST_FUNC RETURNS_MALLOC; 883extern void *xmalloc_read(int fd, size_t *maxsz_p) FAST_FUNC RETURNS_MALLOC;
884extern void *xmalloc_read_with_initial_buf(int fd, size_t *maxsz_p, char *buf, size_t total) FAST_FUNC;
884/* Returns NULL if file can't be opened (default max size: INT_MAX - 4095) */ 885/* Returns NULL if file can't be opened (default max size: INT_MAX - 4095) */
885extern void *xmalloc_open_read_close(const char *filename, size_t *maxsz_p) FAST_FUNC RETURNS_MALLOC; 886extern void *xmalloc_open_read_close(const char *filename, size_t *maxsz_p) FAST_FUNC RETURNS_MALLOC;
886/* Never returns NULL */ 887/* Never returns NULL */