diff options
Diffstat (limited to 'include/archive.h')
-rw-r--r-- | include/archive.h | 51 |
1 files changed, 27 insertions, 24 deletions
diff --git a/include/archive.h b/include/archive.h index 49c478728..b139dc5be 100644 --- a/include/archive.h +++ b/include/archive.h | |||
@@ -84,6 +84,7 @@ typedef struct archive_handle_t { | |||
84 | # endif | 84 | # endif |
85 | #if ENABLE_FEATURE_TAR_TO_COMMAND | 85 | #if ENABLE_FEATURE_TAR_TO_COMMAND |
86 | char* tar__to_command; | 86 | char* tar__to_command; |
87 | const char* tar__to_command_shell; | ||
87 | #endif | 88 | #endif |
88 | # if ENABLE_FEATURE_TAR_SELINUX | 89 | # if ENABLE_FEATURE_TAR_SELINUX |
89 | char* tar__global_sctx; | 90 | char* tar__global_sctx; |
@@ -159,37 +160,39 @@ typedef struct unpack_info_t { | |||
159 | time_t mtime; | 160 | time_t mtime; |
160 | } unpack_info_t; | 161 | } unpack_info_t; |
161 | 162 | ||
162 | extern archive_handle_t *init_handle(void) FAST_FUNC; | 163 | archive_handle_t *init_handle(void) FAST_FUNC; |
163 | 164 | ||
164 | extern char filter_accept_all(archive_handle_t *archive_handle) FAST_FUNC; | 165 | char filter_accept_all(archive_handle_t *archive_handle) FAST_FUNC; |
165 | extern char filter_accept_list(archive_handle_t *archive_handle) FAST_FUNC; | 166 | char filter_accept_list(archive_handle_t *archive_handle) FAST_FUNC; |
166 | extern char filter_accept_list_reassign(archive_handle_t *archive_handle) FAST_FUNC; | 167 | char filter_accept_list_reassign(archive_handle_t *archive_handle) FAST_FUNC; |
167 | extern char filter_accept_reject_list(archive_handle_t *archive_handle) FAST_FUNC; | 168 | char filter_accept_reject_list(archive_handle_t *archive_handle) FAST_FUNC; |
168 | 169 | ||
169 | extern void unpack_ar_archive(archive_handle_t *ar_archive) FAST_FUNC; | 170 | void unpack_ar_archive(archive_handle_t *ar_archive) FAST_FUNC; |
170 | 171 | ||
171 | extern void data_skip(archive_handle_t *archive_handle) FAST_FUNC; | 172 | void data_skip(archive_handle_t *archive_handle) FAST_FUNC; |
172 | extern void data_extract_all(archive_handle_t *archive_handle) FAST_FUNC; | 173 | void data_extract_all(archive_handle_t *archive_handle) FAST_FUNC; |
173 | extern void data_extract_to_stdout(archive_handle_t *archive_handle) FAST_FUNC; | 174 | void data_extract_to_stdout(archive_handle_t *archive_handle) FAST_FUNC; |
174 | extern void data_extract_to_command(archive_handle_t *archive_handle) FAST_FUNC; | 175 | void data_extract_to_command(archive_handle_t *archive_handle) FAST_FUNC; |
175 | 176 | ||
176 | extern void header_skip(const file_header_t *file_header) FAST_FUNC; | 177 | void header_skip(const file_header_t *file_header) FAST_FUNC; |
177 | extern void header_list(const file_header_t *file_header) FAST_FUNC; | 178 | void header_list(const file_header_t *file_header) FAST_FUNC; |
178 | extern void header_verbose_list(const file_header_t *file_header) FAST_FUNC; | 179 | void header_verbose_list(const file_header_t *file_header) FAST_FUNC; |
179 | 180 | ||
180 | extern char get_header_ar(archive_handle_t *archive_handle) FAST_FUNC; | 181 | char get_header_ar(archive_handle_t *archive_handle) FAST_FUNC; |
181 | extern char get_header_cpio(archive_handle_t *archive_handle) FAST_FUNC; | 182 | char get_header_cpio(archive_handle_t *archive_handle) FAST_FUNC; |
182 | extern char get_header_tar(archive_handle_t *archive_handle) FAST_FUNC; | 183 | char get_header_tar(archive_handle_t *archive_handle) FAST_FUNC; |
183 | extern char get_header_tar_gz(archive_handle_t *archive_handle) FAST_FUNC; | 184 | char get_header_tar_gz(archive_handle_t *archive_handle) FAST_FUNC; |
184 | extern char get_header_tar_bz2(archive_handle_t *archive_handle) FAST_FUNC; | 185 | char get_header_tar_bz2(archive_handle_t *archive_handle) FAST_FUNC; |
185 | extern char get_header_tar_lzma(archive_handle_t *archive_handle) FAST_FUNC; | 186 | char get_header_tar_lzma(archive_handle_t *archive_handle) FAST_FUNC; |
186 | 187 | ||
187 | extern void seek_by_jump(int fd, off_t amount) FAST_FUNC; | 188 | void seek_by_jump(int fd, off_t amount) FAST_FUNC; |
188 | extern void seek_by_read(int fd, off_t amount) FAST_FUNC; | 189 | void seek_by_read(int fd, off_t amount) FAST_FUNC; |
189 | 190 | ||
190 | extern void data_align(archive_handle_t *archive_handle, unsigned boundary) FAST_FUNC; | 191 | const char *strip_unsafe_prefix(const char *str) FAST_FUNC; |
191 | extern const llist_t *find_list_entry(const llist_t *list, const char *filename) FAST_FUNC; | 192 | |
192 | extern const llist_t *find_list_entry2(const llist_t *list, const char *filename) FAST_FUNC; | 193 | void data_align(archive_handle_t *archive_handle, unsigned boundary) FAST_FUNC; |
194 | const llist_t *find_list_entry(const llist_t *list, const char *filename) FAST_FUNC; | ||
195 | const llist_t *find_list_entry2(const llist_t *list, const char *filename) FAST_FUNC; | ||
193 | 196 | ||
194 | /* A bit of bunzip2 internals are exposed for compressed help support: */ | 197 | /* A bit of bunzip2 internals are exposed for compressed help support: */ |
195 | typedef struct bunzip_data bunzip_data; | 198 | typedef struct bunzip_data bunzip_data; |