Home
last modified time | relevance | path

Searched refs:archive_read (Results 1 – 25 of 42) sorted by relevance

12

/freebsd/contrib/libarchive/libarchive/
H A Darchive_read_private.h39 struct archive_read;
96 struct archive_read *archive; /* Associated archive. */
158 struct archive_read { struct
207 int (*bid)(struct archive_read *, int best_bid); argument
208 int (*options)(struct archive_read *, const char *key,
210 int (*read_header)(struct archive_read *, struct archive_entry *);
211 int (*read_data)(struct archive_read *, const void **, size_t *, int64_t *);
212 int (*read_data_skip)(struct archive_read *);
213 int64_t (*seek_data)(struct archive_read *, int64_t, int);
214 int (*cleanup)(struct archive_read *);
[all …]
H A Darchive_read_support_format_raw.c47 static int archive_read_format_raw_bid(struct archive_read *, int);
48 static int archive_read_format_raw_cleanup(struct archive_read *);
49 static int archive_read_format_raw_read_data(struct archive_read *,
51 static int archive_read_format_raw_read_data_skip(struct archive_read *);
52 static int archive_read_format_raw_read_header(struct archive_read *,
58 struct archive_read *a = (struct archive_read *)_a; in archive_read_support_format_raw()
97 archive_read_format_raw_bid(struct archive_read *a, int best_bid) in archive_read_format_raw_bid()
108 archive_read_format_raw_read_header(struct archive_read *a, in archive_read_format_raw_read_header()
128 archive_read_format_raw_read_data(struct archive_read *a, in archive_read_format_raw_read_data()
173 archive_read_format_raw_read_data_skip(struct archive_read *a) in archive_read_format_raw_read_data_skip()
[all …]
H A Darchive_read.c61 static int choose_filters(struct archive_read *);
62 static int choose_format(struct archive_read *);
63 static int close_filters(struct archive_read *);
97 struct archive_read *a; in archive_read_new()
125 struct archive_read *a = (struct archive_read *)_a; in archive_read_extract_set_skip_file()
249 read_client_close_proxy(struct archive_read *a) in read_client_close_proxy()
275 struct archive_read *a; in client_switch_proxy()
313 struct archive_read *a = (struct archive_read *)_a; in archive_read_set_open_callback()
324 struct archive_read *a = (struct archive_read *)_a; in archive_read_set_read_callback()
335 struct archive_read *a = (struct archive_read *)_a; in archive_read_set_skip_callback()
[all …]
H A Darchive_read_support_format_empty.c33 static int archive_read_format_empty_bid(struct archive_read *, int);
34 static int archive_read_format_empty_read_data(struct archive_read *,
36 static int archive_read_format_empty_read_header(struct archive_read *,
41 struct archive_read *a = (struct archive_read *)_a; in archive_read_support_format_empty()
65 archive_read_format_empty_bid(struct archive_read *a, int best_bid)
73 archive_read_format_empty_read_header(struct archive_read *a,
86 archive_read_format_empty_read_data(struct archive_read *a,
H A Darchive_read_add_passphrase.c34 add_passphrase_to_tail(struct archive_read *a,
43 remove_passphrases_from_head(struct archive_read *a)
54 insert_passphrase_to_head(struct archive_read *a,
66 new_read_passphrase(struct archive_read *a, const char *passphrase)
89 struct archive_read *a = (struct archive_read *)_a; in archive_read_add_passphrase()
113 struct archive_read *a = (struct archive_read *)_a; in archive_read_set_passphrase_callback()
128 __archive_read_reset_passphrase(struct archive_read *a)
138 __archive_read_next_passphrase(struct archive_read *
[all...]
H A Darchive_read_extract2.c44 static int archive_read_extract_cleanup(struct archive_read *);
51 __archive_read_get_extract(struct archive_read *a) in __archive_read_get_extract()
68 archive_read_extract_cleanup(struct archive_read *a) in archive_read_extract_cleanup()
84 struct archive_read *a = (struct archive_read *)_a; in archive_read_extract2()
116 struct archive_read *a = (struct archive_read *)_a; in archive_read_extract_set_progress_callback()
133 extract = __archive_read_get_extract((struct archive_read *)ar); in copy_data()
H A Darchive_read_support_format_ar.c84 static int archive_read_format_ar_bid(struct archive_read *, int);
85 static int archive_read_format_ar_cleanup(struct archive_read *);
86 static int archive_read_format_ar_read_data(struct archive_read *,
88 static int archive_read_format_ar_skip(struct archive_read *);
89 static int archive_read_format_ar_read_header(struct archive_read *,
93 static int ar_parse_gnu_filename_table(struct archive_read *);
100 struct archive_read *a = (struct archive_read *)_a; in archive_read_support_format_ar()
136 archive_read_format_ar_cleanup(struct archive_read *a) in archive_read_format_ar_cleanup()
148 archive_read_format_ar_bid(struct archive_read *a, int best_bid) in archive_read_format_ar_bid()
167 _ar_read_header(struct archive_read *a, struct archive_entry *entry, in _ar_read_header()
[all …]
H A Darchive_read_support_format_cpio.c179 int (*read_header)(struct archive_read *, struct cpio *,
197 static int archive_read_format_cpio_bid(struct archive_read *, int);
198 static int archive_read_format_cpio_options(struct archive_read *,
200 static int archive_read_format_cpio_cleanup(struct archive_read *);
201 static int archive_read_format_cpio_read_data(struct archive_read *,
203 static int archive_read_format_cpio_read_header(struct archive_read *,
205 static int archive_read_format_cpio_skip(struct archive_read *);
207 static int find_odc_header(struct archive_read *);
208 static int find_newc_header(struct archive_read *);
209 static int header_bin_be(struct archive_read *, struct cpio *,
[all …]
H A Darchive_read_support_format_tar.c170 static int gnu_add_sparse_entry(struct archive_read *, struct tar *,
174 static int gnu_sparse_old_read(struct archive_read *, struct tar *,
176 static int gnu_sparse_old_parse(struct archive_read *, struct tar *,
178 static int gnu_sparse_01_parse(struct archive_read *, struct tar *,
180 static int64_t gnu_sparse_10_read(struct archive_read *, struct tar *,
182 static int header_Solaris_ACL(struct archive_read *, struct tar *,
184 static int header_common(struct archive_read *, struct tar *,
186 static int header_old_tar(struct archive_read *, struct tar *,
188 static int header_pax_extension(struct archive_read *, struct tar *,
190 static int header_pax_global(struct archive_read *, struct tar *,
[all …]
H A Darchive_read_support_format_xar.c79 struct archive_read *a = (struct archive_read *)_a; in archive_read_support_format_xar()
389 static int xar_bid(struct archive_read *, int);
390 static int xar_read_header(struct archive_read *,
392 static int xar_read_data(struct archive_read *,
394 static int xar_read_data_skip(struct archive_read *);
395 static int xar_cleanup(struct archive_read *);
396 static int move_reading_point(struct archive_read *, uint64_t);
397 static int rd_contents_init(struct archive_read *,
399 static int rd_contents(struct archive_read *, const void **,
404 static int heap_add_entry(struct archive_read *a,
[all …]
H A Darchive_read_support_format_rar5.c374 static int verify_global_checksums(struct archive_read* a);
375 static int rar5_read_data_skip(struct archive_read *a);
376 static int push_data_ready(struct archive_read* a, struct rar5 *rar5,
665 static int run_filter(struct archive_read* a, struct filter_info* flt) { in run_filter()
725 static void push_data(struct archive_read* a, struct rar5 *rar5, in push_data()
769 static void push_window_data(struct archive_read* a, struct rar5 *rar5, in push_window_data()
775 static int apply_filters(struct archive_read* a) { in apply_filters()
893 struct archive_read** ar) in get_archive_read()
895 *ar = (struct archive_read*) a; in get_archive_read()
902 static int read_ahead(struct archive_read* a, size_t how_many, in read_ahead()
[all …]
H A Darchive_read_support_format_7zip.c399 static int archive_read_format_7zip_has_encrypted_entries(struct archive_read *);
400 static int archive_read_support_format_7zip_capabilities(struct archive_read *);
401 static int archive_read_format_7zip_bid(struct archive_read *, int);
402 static int archive_read_format_7zip_cleanup(struct archive_read *);
403 static int archive_read_format_7zip_read_data(struct archive_read *,
405 static int archive_read_format_7zip_read_data_skip(struct archive_read *);
406 static int archive_read_format_7zip_read_header(struct archive_read *,
410 static int decode_encoded_header_info(struct archive_read *,
412 static int decompress(struct archive_read *, struct _7zip *,
414 static ssize_t extract_pack_stream(struct archive_read *, size_t);
[all …]
H A Darchive_read_support_format_mtree.c123 static int cleanup(struct archive_read *);
124 static int detect_form(struct archive_read *, int *);
125 static int mtree_bid(struct archive_read *, int);
126 static int parse_file(struct archive_read *, struct archive_entry *,
129 static int parse_line(struct archive_read *, struct archive_entry *,
131 static int parse_keyword(struct archive_read *, struct mtree *,
133 static int read_data(struct archive_read *a,
135 static ssize_t readline(struct archive_read *, struct mtree *, char **, ssize_t);
136 static int skip(struct archive_read *a);
137 static int read_header(struct archive_read *,
[all …]
H A Darchive_read_support_format_rar.c396 static int archive_read_support_format_rar_capabilities(struct archive_read *);
397 static int archive_read_format_rar_has_encrypted_entries(struct archive_read *);
398 static int archive_read_format_rar_bid(struct archive_read *, int);
399 static int archive_read_format_rar_options(struct archive_read *,
401 static int archive_read_format_rar_read_header(struct archive_read *,
403 static int archive_read_format_rar_read_data(struct archive_read *,
405 static int archive_read_format_rar_read_data_skip(struct archive_read *a);
406 static int64_t archive_read_format_rar_seek_data(struct archive_read *, int64_t,
408 static int archive_read_format_rar_cleanup(struct archive_read *);
411 static int read_header(struct archive_read *, struct archive_entry *, char);
[all …]
H A Darchive_read_support_format_warc.c124 static int archive_read_format_warc_bid(struct archive_read *, int);
125 static int archive_read_format_warc_cleanup(struct archive_read *);
126 static int archive_read_format_warc_read_data(struct archive_read *,
128 static int archive_read_format_warc_skip(struct archive_read *);
129 static int archive_read_format_warc_read_header(struct archive_read *,
145 struct archive_read *a = (struct archive_read *)_a; in archive_read_support_format_warc()
179 archive_read_format_warc_cleanup(struct archive_read *a) in archive_read_format_warc_cleanup()
193 archive_read_format_warc_bid(struct archive_read *a, int best_bid) in archive_read_format_warc_bid()
219 archive_read_format_warc_read_header(struct archive_read *a, in archive_read_format_warc_read_header()
399 archive_read_format_warc_read_data(struct archive_read *a, const void **buf, in archive_read_format_warc_read_data()
[all …]
H A Darchive_read_support_format_lha.c213 static int archive_read_format_lha_bid(struct archive_read *, int);
214 static int archive_read_format_lha_options(struct archive_read *,
216 static int archive_read_format_lha_read_header(struct archive_read *,
218 static int archive_read_format_lha_read_data(struct archive_read *,
220 static int archive_read_format_lha_read_data_skip(struct archive_read *);
221 static int archive_read_format_lha_cleanup(struct archive_read *);
225 static int lha_read_file_header_0(struct archive_read *, struct lha *);
226 static int lha_read_file_header_1(struct archive_read *, struct lha *);
227 static int lha_read_file_header_2(struct archive_read *, struct lha *);
228 static int lha_read_file_header_3(struct archive_read *, struct lha *);
[all …]
H A Darchive_read_support_format_cab.c407 static int archive_read_format_cab_bid(struct archive_read *, int);
408 static int archive_read_format_cab_options(struct archive_read *,
410 static int archive_read_format_cab_read_header(struct archive_read *,
412 static int archive_read_format_cab_read_data(struct archive_read *,
414 static int archive_read_format_cab_read_data_skip(struct archive_read *);
415 static int archive_read_format_cab_cleanup(struct archive_read *);
417 static int cab_skip_sfx(struct archive_read *);
419 static int cab_read_data(struct archive_read *, const void **,
421 static int cab_read_header(struct archive_read *);
424 static void cab_checksum_update(struct archive_read *, size_t);
[all …]
H A Darchive_read_append_filter.c43 struct archive_read *a = (struct archive_read *)_a; in archive_read_append_filter()
168 struct archive_read *a = (struct archive_read *)_a; in archive_read_append_filter_program_signature()
H A Darchive_read_support_format_zip.c273 zip_read_data_deflate(struct archive_read *a, const void **buff,
278 zip_read_data_zipx_lzma_alone(struct archive_read *a, const void **buff,
293 struct archive_read *a = ((IByteIn*)p)->a; in ppmd_read()
437 zipx_read_header_and_decrypt(struct archive_read *a, const void **buf, size_t in_len, in zipx_read_header_and_decrypt()
656 process_extra(struct archive_read *a, struct archive_entry *entry, in process_extra()
1103 zip_read_local_file_header(struct archive_read *a, struct archive_entry *entry, in zip_read_local_file_header()
1484 check_authentication_code(struct archive_read *a, const void *_p) in check_authentication_code()
1589 consume_end_of_file_marker(struct archive_read *a, struct zip *zip) in consume_end_of_file_marker()
1807 zip_read_data_none(struct archive_read *a, const void **_buff, in zip_read_data_none()
1923 zipx_xz_init(struct archive_read *a, struct zip *zip) in zipx_xz_init()
[all …]
H A Darchive_read_support_format_iso9660.c385 static int archive_read_format_iso9660_bid(struct archive_read *, int);
386 static int archive_read_format_iso9660_options(struct archive_read *,
388 static int archive_read_format_iso9660_cleanup(struct archive_read *);
389 static int archive_read_format_iso9660_read_data(struct archive_read *,
391 static int archive_read_format_iso9660_read_data_skip(struct archive_read *);
392 static int archive_read_format_iso9660_read_header(struct archive_read *,
415 static int next_cache_entry(struct archive_read *, struct iso9660 *,
417 static int next_entry_seek(struct archive_read *, struct iso9660 *,
420 parse_file_info(struct archive_read *a,
423 static int parse_rockridge(struct archive_read *a,
[all …]
H A Darchive_read_extract.c41 struct archive_read * a = (struct archive_read *)_a; in archive_read_extract()
H A Darchive_read_support_filter_grzip.c63 struct archive_read *a = (struct archive_read *)_a; in archive_read_support_filter_grzip()
H A Darchive_read_support_filter_lrzip.c62 struct archive_read *a = (struct archive_read *)_a; in archive_read_support_filter_lrzip()
/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_archive_read_add_passphrase.c29 struct archive_read;
30 extern void __archive_read_reset_passphrase(struct archive_read *);
31 extern const char * __archive_read_next_passphrase(struct archive_read *);
61 struct archive_read *ar = (struct archive_read *)a; in DEFINE_TEST()
75 struct archive_read *ar = (struct archive_read *)a; in DEFINE_TEST()
92 struct archive_read *ar = (struct archive_read *)a; in DEFINE_TEST()
120 struct archive_read *a in DEFINE_TEST()
[all...]
H A Dtest_archive_read.c36 struct archive_read *ar; in DEFINE_TEST()
41 ar = (struct archive_read *)a; in DEFINE_TEST()

12