Home
last modified time | relevance | path

Searched refs:i4le (Results 1 – 13 of 13) sorted by relevance

/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_write_format_zip_compression_store.c118 i4le(p + 12), i4le(p + 16)); in verify_uncompressed_contents()
119 assertEqualInt(i4le(p + 12) + i4le(p + 16), used - 22); in verify_uncompressed_contents()
124 p = buff + i4le(buffend - 6); in verify_uncompressed_contents()
127 i4le(buffend - 10)); in verify_uncompressed_contents()
139 assertEqualInt(i4le(p + 16), crc); /* CRC-32 */ in verify_uncompressed_contents()
140 assertEqualInt(i4le(p + 20), sizeof(file_data1) + sizeof(file_data2)); /* Compressed size */ in verify_uncompressed_contents()
141 assertEqualInt(i4le(p + 24), sizeof(file_data1) + sizeof(file_data2)); /* Uncompressed size */ in verify_uncompressed_contents()
147 assertEqualInt(i4le(p + 38) >> 16 & 01777, file_perm); /* External file attrs */ in verify_uncompressed_contents()
148 assertEqualInt(i4le(p + 42), 0); /* Offset of local header */ in verify_uncompressed_contents()
160 assertEqualInt(i4le(p + 5), now); /* 'UT' mtime */ in verify_uncompressed_contents()
[all …]
H A Dtest_write_format_zip_stream.c96 eocd = buff + i4le(p + 12) + i4le(p + 16); in DEFINE_TEST()
101 central_header = p = buff + i4le(buffend - 6); in DEFINE_TEST()
104 i4le(buffend - 10)); in DEFINE_TEST()
115 assertEqualInt(i4le(p + 16), crc); /* CRC-32 */ in DEFINE_TEST()
116 compressed_size = i4le(p + 20); /* Compressed size */ in DEFINE_TEST()
117 assertEqualInt(i4le(p + 24), sizeof(file_data)); /* Uncompressed size */ in DEFINE_TEST()
123 assertEqualInt(i4le(p + 38) >> 16 & 01777, file_perm); /* External file attrs */ in DEFINE_TEST()
124 assertEqualInt(i4le(p + 42), 0); /* Offset of local header */ in DEFINE_TEST()
133 assertEqualInt(i4le(p + 6), file_uid); /* 'Ux' UID */ in DEFINE_TEST()
135 assertEqualInt(i4le(p + 11), file_gid); /* 'Ux' GID */ in DEFINE_TEST()
[all …]
H A Dtest_write_format_zip_compression_zstd.c105 i4le(p + 12), i4le(p + 16)); in verify_zstd_contents()
106 assertEqualInt(i4le(p + 12) + i4le(p + 16), used - 22); in verify_zstd_contents()
111 p = buff + i4le(buffend - 6); in verify_zstd_contents()
114 i4le(buffend - 10)); in verify_zstd_contents()
126 assertEqualInt(i4le(p + 16), crc); /* CRC-32 */ in verify_zstd_contents()
127 assertEqualInt(i4le(p + 24), sizeof(file_data1) + sizeof(file_data2)); /* Uncompressed size */ in verify_zstd_contents()
133 assertEqualInt(i4le(p + 38) >> 16 & 01777, file_perm); /* External file attrs */ in verify_zstd_contents()
134 assertEqualInt(i4le(p + 42), 0); /* Offset of local header */ in verify_zstd_contents()
146 assertEqualInt(i4le(p + 5), now); /* 'UT' mtime */ in verify_zstd_contents()
157 assertEqualInt(i4le(q + 14), 0); /* CRC-32 */ in verify_zstd_contents()
[all …]
H A Dtest_write_format_zip_compression_bzip2.c105 i4le(p + 12), i4le(p + 16)); in verify_bzip2_contents()
106 assertEqualInt(i4le(p + 12) + i4le(p + 16), used - 22); in verify_bzip2_contents()
111 p = buff + i4le(buffend - 6); in verify_bzip2_contents()
114 i4le(buffend - 10)); in verify_bzip2_contents()
126 assertEqualInt(i4le(p + 16), crc); /* CRC-32 */ in verify_bzip2_contents()
127 assertEqualInt(i4le(p + 24), sizeof(file_data1) + sizeof(file_data2)); /* Uncompressed size */ in verify_bzip2_contents()
133 assertEqualInt(i4le(p + 38) >> 16 & 01777, file_perm); /* External file attrs */ in verify_bzip2_contents()
134 assertEqualInt(i4le(p + 42), 0); /* Offset of local header */ in verify_bzip2_contents()
146 assertEqualInt(i4le(p + 5), now); /* 'UT' mtime */ in verify_bzip2_contents()
157 assertEqualInt(i4le(q + 14), 0); /* CRC-32 */ in verify_bzip2_contents()
[all …]
H A Dtest_write_format_zip64_stream.c93 eocd = buff + i4le(p + 12) + i4le(p + 16); in DEFINE_TEST()
98 central_header = p = buff + i4le(buffend - 6); in DEFINE_TEST()
101 i4le(buffend - 10)); in DEFINE_TEST()
112 assertEqualInt(i4le(p + 16), crc); /* CRC-32 */ in DEFINE_TEST()
113 compressed_size = i4le(p + 20); /* Compressed size */ in DEFINE_TEST()
114 assertEqualInt(i4le(p + 24), sizeof(file_data)); /* Uncompressed size */ in DEFINE_TEST()
120 assertEqualInt(i4le(p + 38) >> 16 & 01777, file_perm); /* External file attrs */ in DEFINE_TEST()
121 assertEqualInt(i4le(p + 42), 0); /* Offset of local header */ in DEFINE_TEST()
134 assertEqualInt(i4le(p + 5), 0); /* 'UT' mtime */ in DEFINE_TEST()
160 assertEqualInt(i4le(p + 16), 0); /* This is disk #0 */ in DEFINE_TEST()
[all …]
H A Dtest_write_format_zip_compression_lzmaxz.c106 i4le(p + 12), i4le(p + 16)); in verify_xz_lzma()
107 assertEqualInt(i4le(p + 12) + i4le(p + 16), used - 22); in verify_xz_lzma()
112 p = buff + i4le(buffend - 6); in verify_xz_lzma()
115 i4le(buffend - 10)); in verify_xz_lzma()
127 assertEqualInt(i4le(p + 16), crc); /* CRC-32 */ in verify_xz_lzma()
128 assertEqualInt(i4le(p + 24), sizeof(file_data1) + sizeof(file_data2)); /* Uncompressed size */ in verify_xz_lzma()
134 assertEqualInt(i4le(p + 38) >> 16 & 01777, file_perm); /* External file attrs */ in verify_xz_lzma()
135 assertEqualInt(i4le(p + 42), 0); /* Offset of local header */ in verify_xz_lzma()
147 assertEqualInt(i4le(p + 5), now); /* 'UT' mtime */ in verify_xz_lzma()
158 assertEqualInt(i4le(q + 14), 0); /* CRC-32 */ in verify_xz_lzma()
[all …]
H A Dtest_write_format_zip_file_zip64.c108 eocd = buff + i4le(p + 12) + i4le(p + 16); in DEFINE_TEST()
113 central_header = p = buff + i4le(buffend - 6); in DEFINE_TEST()
116 i4le(buffend - 10)); in DEFINE_TEST()
127 assertEqualInt(i4le(p + 16), crc); /* CRC-32 */ in DEFINE_TEST()
129 assertEqualInt(i4le(p + 24), sizeof(file_data)); /* Uncompressed size */ in DEFINE_TEST()
135 assertEqualInt(i4le(p + 38) >> 16 & 01777, file_perm); /* External file attrs */ in DEFINE_TEST()
136 assertEqualInt(i4le(p + 42), 0); /* Offset of local header */ in DEFINE_TEST()
149 assertEqualInt(i4le(p + 5), t); /* 'UT' mtime */ in DEFINE_TEST()
175 assertEqualInt(i4le(p + 16), 0); /* This is disk #0 */ in DEFINE_TEST()
176 assertEqualInt(i4le(p + 20), 0); /* Dir starts on disk #0 */ in DEFINE_TEST()
[all …]
H A Dtest_write_format_zip_entry_size_unset.c92 …assertEqualInt(i4le(end_of_central_dir + 12) + i4le(end_of_central_dir + 16), end_of_central_dir -… in verify_contents()
97 const char *central_directory = zip_buff + i4le(end_of_central_dir + 16); in verify_contents()
110 assertEqualInt(i4le(central_directory + 16), crc); in verify_contents()
112 assertEqualInt(i4le(central_directory + 20), sizeof(file_data1) + sizeof(file_data2)); in verify_contents()
114 assertEqualInt(i4le(central_directory + 24), sizeof(file_data1) + sizeof(file_data2)); in verify_contents()
126 assertEqualInt(i4le(central_directory + 38) >> 16 & 01777, file_perm); in verify_contents()
128 assertEqualInt(i4le(central_directory + 42), 0); in verify_contents()
144 assertEqualInt(i4le(local_file_header + 14), 0); in verify_contents()
147 assertEqualInt(i4le(local_file_header + 18), 0); in verify_contents()
150 assertEqualInt(i4le(local_file_header + 22), 0); in verify_contents()
[all …]
H A Dtest_write_format_zip_file.c107 eocd = buff + i4le(p + 12) + i4le(p + 16); in DEFINE_TEST()
112 central_header = p = buff + i4le(buffend - 6); in DEFINE_TEST()
115 i4le(buffend - 10)); in DEFINE_TEST()
126 assertEqualInt(i4le(p + 16), crc); /* CRC-32 */ in DEFINE_TEST()
128 assertEqualInt(i4le(p + 24), sizeof(file_data)); /* Uncompressed size */ in DEFINE_TEST()
134 assertEqualInt(i4le(p + 38) >> 16 & 01777, file_perm); /* External file attrs */ in DEFINE_TEST()
135 assertEqualInt(i4le(p + 42), 0); /* Offset of local header */ in DEFINE_TEST()
148 assertEqualInt(i4le(p + 5), t); /* 'UT' mtime */ in DEFINE_TEST()
174 assertEqualInt(i4le(p + 14), 0); /* CRC-32 stored as zero because we're using length-at-end */ in DEFINE_TEST()
175 …assertEqualInt(i4le(p + 18), 0); /* Compressed size stored as zero because we're using length-at-e… in DEFINE_TEST()
[all …]
H A Dtest_write_format_zip_large.c420 cd_size = i4le(eocd + 12); in DEFINE_TEST()
H A Dtest_read_format_rar5.c84 if(i4le(lptr) != (uint32_t) val) in verify_data()
/freebsd/contrib/libarchive/test_utils/
H A Dtest_utils.c149 i4le(const void* p_) in i4le() function
158 return (i4le(p) | ((unsigned long long)i4le(p + 4) << 32)); in i8le()
H A Dtest_utils.h39 unsigned int i4le(const void*);