/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_archive_read.c | 47 assert(NULL != __archive_read_ahead(ar, sizeof(buf) - 1, &avail)); in DEFINE_TEST() 51 assert(NULL == __archive_read_ahead(ar, sizeof(buf) + 1, &avail)); in DEFINE_TEST() 55 assert(NULL == __archive_read_ahead(ar, sizeof(buf) + 1, &avail)); in DEFINE_TEST() 59 assert(NULL != __archive_read_ahead(ar, sizeof(buf), &avail)); in DEFINE_TEST()
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_read_support_format_zip.c | 280 const uint8_t* data = __archive_read_ahead(a, 1, &bytes_avail); in ppmd_read() 956 if ((p = __archive_read_ahead(a, 30, NULL)) == NULL) { in zip_read_local_file_header() 995 if ((h = __archive_read_ahead(a, filename_length, NULL)) == NULL) { in zip_read_local_file_header() 1032 if ((h = __archive_read_ahead(a, extra_length, NULL)) == NULL) { in zip_read_local_file_header() 1238 p = __archive_read_ahead(a, linkname_length, NULL); in zip_read_local_file_header() 1324 p = __archive_read_ahead(a, AUTH_CODE_SIZE, NULL); in check_authentication_code() 1435 if (NULL == (marker = __archive_read_ahead(a, 24, NULL))) { in consume_end_of_file_marker() 1632 buff = __archive_read_ahead(a, grabbing_bytes, &bytes_avail); in zip_read_data_none() 1689 buff = __archive_read_ahead(a, 1, &bytes_avail); in zip_read_data_none() 1842 if(zip->entry_bytes_remaining < 9 || (p = __archive_read_ahead(a, 9, NULL)) == NULL) { in zipx_lzma_alone_init() [all …]
|
H A D | archive_read_support_format_cpio.c | 268 if ((p = __archive_read_ahead(a, 6, NULL)) == NULL) in archive_read_format_cpio_bid() 388 h = __archive_read_ahead(a, namelength + name_pad, NULL); in archive_read_format_cpio_read_header() 414 hl = __archive_read_ahead(a, in archive_read_format_cpio_read_header() 472 *buff = __archive_read_ahead(a, 1, &bytes_read); in archive_read_format_cpio_read_data() 540 h = __archive_read_ahead(a, newc_header_size, &bytes); in find_newc_header() 604 h = __archive_read_ahead(a, newc_header_size, NULL); in header_newc() 709 h = __archive_read_ahead(a, odc_header_size, &bytes); in find_odc_header() 791 h = __archive_read_ahead(a, odc_header_size, NULL); in header_odc() 845 h = __archive_read_ahead(a, afiol_header_size, NULL); in header_afiol() 896 h = __archive_read_ahead(a, bin_header_size, NULL); in header_bin_le() [all …]
|
H A D | archive_read_support_format_ar.c | 157 if ((h = __archive_read_ahead(a, 8, NULL)) == NULL) in archive_read_format_ar_bid() 292 if ((b = __archive_read_ahead(a, entry_size, NULL)) == NULL) in _ar_read_header() 365 if ((b = __archive_read_ahead(a, bsd_name_length, NULL)) == NULL) { in _ar_read_header() 439 if ((header_data = __archive_read_ahead(a, 60, NULL)) == NULL) in archive_read_format_ar_read_header() 494 *buff = __archive_read_ahead(a, 1, &bytes_read); in archive_read_format_ar_read_data()
|
H A D | archive_read_support_format_raw.c | 98 if (best_bid < 1 && __archive_read_ahead(a, 1, NULL) != NULL) in archive_read_format_raw_bid() 146 *buff = __archive_read_ahead(a, 1, &avail); in archive_read_format_raw_read_data()
|
H A D | archive_read_support_format_tar.c | 369 h = __archive_read_ahead(a, 512, NULL); in archive_read_format_tar_bid() 629 *buff = __archive_read_ahead(a, 1, &bytes_read); in archive_read_format_tar_read_data() 746 h = __archive_read_ahead(a, 512, &bytes); in tar_read_header() 779 h = __archive_read_ahead(a, 512, NULL); in tar_read_header() 1233 src = __archive_read_ahead(a, size, NULL); in read_bytes_to_string() 1638 data = __archive_read_ahead(a, msize, NULL); in read_mac_metadata_blob() 1829 p = __archive_read_ahead(a, to_read, &did_read); in header_pax_extension() 1930 p = __archive_read_ahead(a, 1, &did_read); in header_pax_extension() 2129 p = __archive_read_ahead(a, value_length, NULL); in pax_attribute_SCHILY_acl() 2311 p = __archive_read_ahead(a, value_length, &bytes_read); in pax_attribute() [all …]
|
H A D | archive_read_support_format_lha.c | 360 if ((p = __archive_read_ahead(a, H_SIZE, NULL)) == NULL) in archive_read_format_lha_bid() 371 buff = __archive_read_ahead(a, offset + window, in archive_read_format_lha_bid() 432 h = __archive_read_ahead(a, window, &bytes); in lha_skip_sfx() 499 if ((p = __archive_read_ahead(a, H_SIZE, NULL)) == NULL) { in archive_read_format_lha_read_header() 504 signature = __archive_read_ahead(a, sizeof(signature[0]), NULL); in archive_read_format_lha_read_header() 518 if ((p = __archive_read_ahead(a, sizeof(*p), NULL)) == NULL) in archive_read_format_lha_read_header() 816 if ((p = __archive_read_ahead(a, H0_FIXED_SIZE, NULL)) == NULL) in lha_read_file_header_0() 830 if ((p = __archive_read_ahead(a, lha->header_size, NULL)) == NULL) in lha_read_file_header_0() 914 if ((p = __archive_read_ahead(a, H1_FIXED_SIZE, NULL)) == NULL) in lha_read_file_header_1() 930 if ((p = __archive_read_ahead(a, lha->header_size, NULL)) == NULL) in lha_read_file_header_1() [all …]
|
H A D | archive_read_support_format_cab.c | 420 if ((p = __archive_read_ahead(a, 8, NULL)) == NULL) in archive_read_format_cab_bid() 435 const char *h = __archive_read_ahead(a, offset + window, in archive_read_format_cab_bid() 495 const char *h = __archive_read_ahead(a, window, &bytes); in cab_skip_sfx() 557 p = __archive_read_ahead(a, min, avail); in cab_read_ahead_remaining() 633 if ((p = __archive_read_ahead(a, 42, NULL)) == NULL) in cab_read_header() 645 if ((p = __archive_read_ahead(a, 42, NULL)) == NULL) in cab_read_header() 687 if ((p = __archive_read_ahead(a, used+256, NULL)) == NULL) in cab_read_header() 693 if ((p = __archive_read_ahead(a, used+256, NULL)) == NULL) in cab_read_header() 701 if ((p = __archive_read_ahead(a, used+256, NULL)) == NULL) in cab_read_header() 707 if ((p = __archive_read_ahead(a, used+256, NULL)) == NULL) in cab_read_header() [all …]
|
H A D | archive_read_support_format_empty.c | 67 if (best_bid < 1 && __archive_read_ahead(a, 1, NULL) == NULL) in archive_read_format_empty_bid()
|
H A D | archive_read_support_format_warc.c | 190 if ((hdr = __archive_read_ahead(a, 12U, &nrd)) == NULL) { in _warc_bid() 234 buf = __archive_read_ahead(a, HDR_PROBE_LEN, &nrd); in _warc_rdhdr() 417 rab = __archive_read_ahead(a, 1U, &nrd); in _warc_read()
|
H A D | archive_read_private.h | 247 const void *__archive_read_ahead(struct archive_read *, size_t, ssize_t *);
|
H A D | archive_read_support_format_rar.c | 798 if ((p = __archive_read_ahead(a, 7, NULL)) == NULL) in archive_read_format_rar_bid() 810 const char *buff = __archive_read_ahead(a, offset + window, &bytes_avail); in archive_read_format_rar_bid() 841 h = __archive_read_ahead(a, window, &bytes); in skip_sfx() 939 if ((h = __archive_read_ahead(a, 7, NULL)) == NULL) in archive_read_format_rar_read_header() 956 if ((h = __archive_read_ahead(a, 7, NULL)) == NULL) in archive_read_format_rar_read_header() 980 if ((h = __archive_read_ahead(a, skip, NULL)) == NULL) in archive_read_format_rar_read_header() 1042 if ((h = __archive_read_ahead(a, skip, NULL)) == NULL) in archive_read_format_rar_read_header() 1059 if ((h = __archive_read_ahead(a, to_read, NULL)) == NULL) { in archive_read_format_rar_read_header() 1394 if ((h = __archive_read_ahead(a, 7, NULL)) == NULL) in read_header() 1435 if ((h = __archive_read_ahead(a, (size_t)header_size - 7, NULL)) == NULL) in read_header() [all …]
|
H A D | archive_read_support_format_mtree.c | 399 *b = __archive_read_ahead(a, nbytes_req, avail); in next_line() 404 *b = __archive_read_ahead(a, *avail, avail); in next_line() 676 p = __archive_read_ahead(a, strlen(signature), NULL); in mtree_bid() 701 p = __archive_read_ahead(a, 1, &avail); in detect_form() 2102 t = __archive_read_ahead(a, 1, &bytes_read); in readline()
|
H A D | archive_read_support_format_7zip.c | 513 if ((p = __archive_read_ahead(a, 6, NULL)) == NULL) in archive_read_format_7zip_bid() 534 const char *buff = __archive_read_ahead(a, in archive_read_format_7zip_bid() 603 h = __archive_read_ahead(a, window, &bytes); in skip_sfx() 1073 const uint8_t* data = __archive_read_ahead(a, in ppmd_read() 2973 p = __archive_read_ahead(a, rbytes, NULL); in header_bytes() 3005 if ((p = __archive_read_ahead(a, 32, &bytes_avail)) == NULL) in slurp_central_directory() 3013 if ((p = __archive_read_ahead(a, 32, &bytes_avail)) == NULL) in slurp_central_directory() 3167 *buff = __archive_read_ahead(a, minimum, &bytes_avail); in get_uncompressed_data() 3220 if (__archive_read_ahead(a, minimum, &bytes_avail) == NULL in extract_pack_stream() 3307 buff_in = __archive_read_ahead(a, 1, &bytes_avail); in extract_pack_stream()
|
H A D | archive_read_support_format_iso9660.c | 524 p = __archive_read_ahead(a, in archive_read_format_iso9660_bid() 1075 b = __archive_read_ahead(a, step, NULL); in read_children() 1181 block = __archive_read_ahead(a, vd->size, NULL); in choose_volume() 1220 block = __archive_read_ahead(a, vd->size, NULL); in choose_volume() 1513 p = __archive_read_ahead(a, 1, &bytes_read); in zisofs_read_data() 1788 *buff = __archive_read_ahead(a, 1, &bytes_read); in archive_read_format_iso9660_read_data() 2493 b = __archive_read_ahead(a, step, NULL); in read_CE()
|
H A D | archive_read_support_format_rar5.c | 904 *ptr = __archive_read_ahead(a, how_many, &avail); in read_ahead() 1140 if ((p = __archive_read_ahead(a, 7, NULL)) == NULL) in bid_sfx() 1153 const char *buff = __archive_read_ahead(a, offset + window, &bytes_avail); in bid_sfx() 2394 if ((p = __archive_read_ahead(a, 7, NULL)) == NULL) in try_skip_sfx() 2408 h = __archive_read_ahead(a, window, &bytes); in try_skip_sfx()
|
H A D | archive_read_support_format_xar.c | 490 b = __archive_read_ahead(a, HEADER_SIZE, NULL); in xar_bid() 546 b = __archive_read_ahead(a, HEADER_SIZE, &bytes); in read_toc() 611 b = __archive_read_ahead(a, in read_toc() 1033 b = __archive_read_ahead(a, 1, &bytes); in rd_contents()
|
H A D | archive_read.c | 1319 __archive_read_ahead(struct archive_read *a, size_t min, ssize_t *avail) in __archive_read_ahead() function
|