aboutsummaryrefslogtreecommitdiff
path: root/include/bb_archive.h
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2019-05-24 17:03:28 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2019-05-24 17:03:28 +0200
commitdff2bd733fc2dac08d34f2cfad0e68aeb8e7a7a2 (patch)
tree0085fabf15b8ca5034636f39e97e9ba306ca7671 /include/bb_archive.h
parent309f5e3775ed9cc0837c6d93482735bc4f117d5b (diff)
downloadbusybox-w32-dff2bd733fc2dac08d34f2cfad0e68aeb8e7a7a2.tar.gz
busybox-w32-dff2bd733fc2dac08d34f2cfad0e68aeb8e7a7a2.tar.bz2
busybox-w32-dff2bd733fc2dac08d34f2cfad0e68aeb8e7a7a2.zip
libarchive: treat one "FIXME: avoid seek"
function old new delta xmalloc_read_with_initial_buf - 205 +205 setup_transformer_on_fd 154 150 -4 xmalloc_open_zipped_read_close 143 135 -8 xmalloc_read 201 10 -191 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/3 up/down: 205/-203) Total: 2 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/bb_archive.h')
-rw-r--r--include/bb_archive.h6
1 files changed, 6 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;