aboutsummaryrefslogtreecommitdiff
path: root/include/archive.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/archive.h')
-rw-r--r--include/archive.h51
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
162extern archive_handle_t *init_handle(void) FAST_FUNC; 163archive_handle_t *init_handle(void) FAST_FUNC;
163 164
164extern char filter_accept_all(archive_handle_t *archive_handle) FAST_FUNC; 165char filter_accept_all(archive_handle_t *archive_handle) FAST_FUNC;
165extern char filter_accept_list(archive_handle_t *archive_handle) FAST_FUNC; 166char filter_accept_list(archive_handle_t *archive_handle) FAST_FUNC;
166extern char filter_accept_list_reassign(archive_handle_t *archive_handle) FAST_FUNC; 167char filter_accept_list_reassign(archive_handle_t *archive_handle) FAST_FUNC;
167extern char filter_accept_reject_list(archive_handle_t *archive_handle) FAST_FUNC; 168char filter_accept_reject_list(archive_handle_t *archive_handle) FAST_FUNC;
168 169
169extern void unpack_ar_archive(archive_handle_t *ar_archive) FAST_FUNC; 170void unpack_ar_archive(archive_handle_t *ar_archive) FAST_FUNC;
170 171
171extern void data_skip(archive_handle_t *archive_handle) FAST_FUNC; 172void data_skip(archive_handle_t *archive_handle) FAST_FUNC;
172extern void data_extract_all(archive_handle_t *archive_handle) FAST_FUNC; 173void data_extract_all(archive_handle_t *archive_handle) FAST_FUNC;
173extern void data_extract_to_stdout(archive_handle_t *archive_handle) FAST_FUNC; 174void data_extract_to_stdout(archive_handle_t *archive_handle) FAST_FUNC;
174extern void data_extract_to_command(archive_handle_t *archive_handle) FAST_FUNC; 175void data_extract_to_command(archive_handle_t *archive_handle) FAST_FUNC;
175 176
176extern void header_skip(const file_header_t *file_header) FAST_FUNC; 177void header_skip(const file_header_t *file_header) FAST_FUNC;
177extern void header_list(const file_header_t *file_header) FAST_FUNC; 178void header_list(const file_header_t *file_header) FAST_FUNC;
178extern void header_verbose_list(const file_header_t *file_header) FAST_FUNC; 179void header_verbose_list(const file_header_t *file_header) FAST_FUNC;
179 180
180extern char get_header_ar(archive_handle_t *archive_handle) FAST_FUNC; 181char get_header_ar(archive_handle_t *archive_handle) FAST_FUNC;
181extern char get_header_cpio(archive_handle_t *archive_handle) FAST_FUNC; 182char get_header_cpio(archive_handle_t *archive_handle) FAST_FUNC;
182extern char get_header_tar(archive_handle_t *archive_handle) FAST_FUNC; 183char get_header_tar(archive_handle_t *archive_handle) FAST_FUNC;
183extern char get_header_tar_gz(archive_handle_t *archive_handle) FAST_FUNC; 184char get_header_tar_gz(archive_handle_t *archive_handle) FAST_FUNC;
184extern char get_header_tar_bz2(archive_handle_t *archive_handle) FAST_FUNC; 185char get_header_tar_bz2(archive_handle_t *archive_handle) FAST_FUNC;
185extern char get_header_tar_lzma(archive_handle_t *archive_handle) FAST_FUNC; 186char get_header_tar_lzma(archive_handle_t *archive_handle) FAST_FUNC;
186 187
187extern void seek_by_jump(int fd, off_t amount) FAST_FUNC; 188void seek_by_jump(int fd, off_t amount) FAST_FUNC;
188extern void seek_by_read(int fd, off_t amount) FAST_FUNC; 189void seek_by_read(int fd, off_t amount) FAST_FUNC;
189 190
190extern void data_align(archive_handle_t *archive_handle, unsigned boundary) FAST_FUNC; 191const char *strip_unsafe_prefix(const char *str) FAST_FUNC;
191extern const llist_t *find_list_entry(const llist_t *list, const char *filename) FAST_FUNC; 192
192extern const llist_t *find_list_entry2(const llist_t *list, const char *filename) FAST_FUNC; 193void data_align(archive_handle_t *archive_handle, unsigned boundary) FAST_FUNC;
194const llist_t *find_list_entry(const llist_t *list, const char *filename) FAST_FUNC;
195const 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: */
195typedef struct bunzip_data bunzip_data; 198typedef struct bunzip_data bunzip_data;