/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_write_set_format_zip.c | 145 struct zip { struct 193 /* ZIP's XZ format (id 95) is easy enough: copy Deflate, mutatis 194 * mutandis the library changes. ZIP's LZMA format (id 14), 241 static struct archive_string_conv *get_sconv(struct archive_write *, struct zip *); argument 251 /* ZIP's LZMA format requires the use of a alas not exposed in LibLZMA 252 * function to write the ZIP header. Given our internal version never 289 cd_alloc(struct zip *zip, size_t length) in cd_alloc() argument 293 if (zip->central_directory == NULL in cd_alloc() 294 || (zip->central_directory_last->p + length in cd_alloc() 295 > zip->central_directory_last->buff + zip->central_directory_last->buff_size)) { in cd_alloc() [all …]
|
H A D | archive_read_support_format_zip.c | 31 * The definitive documentation of the Zip file format is: 34 * The Info-Zip project has pioneered various extensions to better 35 * support Zip on Unix, including the 0x5455 "UT", 0x5855 "UX", 0x7855 39 * History of this code: The streaming Zip reader was first added to 144 struct zip { struct 153 /* List of entries (seekable Zip only) */ 270 * streams inside ZIP files. It has 2 purposes: one is to fetch the next 277 struct zip *zip = (struct zip*) a->format->data; in ppmd_read() local 283 zip->ppmd8_stream_failed = 1; in ppmd_read() 290 ++zip->zipx_ppmd_read_compressed; in ppmd_read() [all …]
|
H A D | archive_read_support_format_7zip.c | 97 #define _7Z_CRYPTO_MAIN_ZIP 0x06F10101 /* Main Zip crypto algo */ 112 #define _7Z_ZSTD 0x4F71101 /* Copied from https://github.com/mcmilk/7-Zip-zstd.git */ 115 * 7-Zip header property IDs. 160 // This value is defined in 7zip with the comment "trick for Unix". 394 * corrupted 7-zip files on assuming there are not so many entries in 470 struct _7zip *zip; in archive_read_support_format_7zip() local 476 zip = calloc(1, sizeof(*zip)); in archive_read_support_format_7zip() 477 if (zip == NULL) { in archive_read_support_format_7zip() 479 "Can't allocate 7zip data"); in archive_read_support_format_7zip() 487 zip->has_encrypted_entries = ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW; in archive_read_support_format_7zip() [all …]
|
H A D | archive_write_set_format_7zip.c | 75 #define _7Z_ZSTD 0x4F71101 /* Copied from https://github.com/mcmilk/7-Zip-zstd.git */ 78 * 7-Zip header property IDs. 118 // This value is defined in 7zip with the comment "trick for Unix". 351 struct _7zip *zip; in archive_write_set_format_7zip() local 360 zip = calloc(1, sizeof(*zip)); in archive_write_set_format_7zip() 361 if (zip == NULL) { in archive_write_set_format_7zip() 363 "Can't allocate 7-Zip data"); in archive_write_set_format_7zip() 366 zip->temp_fd = -1; in archive_write_set_format_7zip() 367 __archive_rb_tree_init(&(zip->rbtree), &rb_ops); in archive_write_set_format_7zip() 368 file_init_register(zip); in archive_write_set_format_7zip() [all …]
|
H A D | libarchive-formats.5 | 326 .Ss Zip format 327 Libarchive can read and write zip format archives that have 339 Libarchive can also read, but not write, zip format archives that 343 Other zip compression algorithms are not supported. 346 ZIP encryption, Info-ZIP's Unix extra fields, extra time, and 349 for OS X, and self-extracting zip archives. 351 reading Zip archives: 354 process self-extracting Zip archives and archives with 357 The streaming reader processes Zip archives as they are read. 359 network sockets, and can decode Zip archives that have [all …]
|
/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_fuzz.c | 458 "test_compat_zip_1.zip", in DEFINE_TEST() 462 "test_compat_zip_2.zip", in DEFINE_TEST() 466 "test_compat_zip_3.zip", in DEFINE_TEST() 470 "test_compat_zip_4.zip", in DEFINE_TEST() 474 "test_compat_zip_5.zip", in DEFINE_TEST() 478 "test_compat_zip_6.zip", in DEFINE_TEST() 482 "test_read_format_zip.zip", in DEFINE_TEST() 486 "test_read_format_zip_comment_stored_1.zip", in DEFINE_TEST() 490 "test_read_format_zip_comment_stored_2.zip", in DEFINE_TEST() 494 "test_read_format_zip_encryption_data.zip", in DEFINE_TEST() [all...] |
H A D | test_read_format_zip.c | 112 assertEqualString("ZIP 1.0 (uncompressed)", archive_format_name(a)); in verify_basic() 125 assertEqualString("ZIP 2.0 (deflation)", archive_format_name(a)); in verify_basic() 140 "Unsupported ZIP compression method (8: deflation)"); in verify_basic() 145 assertEqualString("ZIP 2.0 (deflation)", archive_format_name(a)); in verify_basic() 163 "Unsupported ZIP compression method (8: deflation)"); in verify_basic() 167 assertEqualString("ZIP 2.0 (deflation)", archive_format_name(a)); in verify_basic() 180 const char *refname = "test_read_format_zip.zip"; in test_basic() 205 * Read Info-ZIP New Unix Extra Field 0x7875 "ux". 222 failure("zip reader should read Info-ZIP New Unix Extra Field"); in verify_info_zip_ux() 232 "Unsupported ZIP compression method (8: deflation)"); in verify_info_zip_ux() [all …]
|
H A D | test_write_format_7zip_large.c | 55 ARCHIVE_OK != archive_write_set_format_option(a, "7zip", in test_large() 139 /* Test that making a 7-Zip archive file with bzip2 compression. */ in DEFINE_TEST() 145 /* Test that making a 7-Zip archive file without compression. */ in DEFINE_TEST() 151 /* Test that making a 7-Zip archive file with deflate compression. */ in DEFINE_TEST() 157 /* Test that making a 7-Zip archive file with lzma1 compression. */ in DEFINE_TEST() 163 /* Test that making a 7-Zip archive file with lzma2 compression. */ in DEFINE_TEST() 169 /* Test that making a 7-Zip archive file with PPMd compression. */ in DEFINE_TEST() 175 /* Test that making a 7-Zip archive file with zstd compression. */ in DEFINE_TEST()
|
H A D | test_write_format_zip_compression_lzmaxz.c | 96 p = buffend - 22; /* Assumes there is no zip comment field. */ in verify_xz_lzma() 108 failure("no zip comment"); in verify_xz_lzma() 193 /* Verify data of file entry, using our own zip reader to test. */ in verify_xz_lzma() 327 /* Create new ZIP archive in memory without padding. */ in DEFINE_TEST() 333 archive_write_set_options(a, "zip:experimental")); in DEFINE_TEST() 344 dumpfile("constructed.zip", buff, used); in DEFINE_TEST() 348 /* Create new ZIP archive in memory without padding. */ in DEFINE_TEST() 354 archive_write_set_options(a, "zip:compression=lzma")); in DEFINE_TEST() 356 archive_write_set_options(a, "zip:compression-level=9")); in DEFINE_TEST() 358 archive_write_set_options(a, "zip:experimental")); in DEFINE_TEST() [all …]
|
H A D | test_compat_zip.c | 30 char name[] = "test_compat_zip_1.zip"; in DEFINE_TEST() 48 skipping("Skipping ZIP compression check: %s", in DEFINE_TEST() 66 * Verify that we skip junk between entries. The compat_zip_2.zip file 68 * junk is routinely introduced by some Zip writers when they manipulate 69 * existing zip archives. 73 char name[] = "test_compat_zip_2.zip"; in DEFINE_TEST() 98 * broke extraction of Zip entries with length-at-end. 102 const char *refname = "test_compat_zip_3.zip"; in DEFINE_TEST() 138 skipping("Skipping ZIP compression check, no libz support"); in DEFINE_TEST() 151 const char *refname = "test_compat_zip_4.zip"; in DEFINE_TEST() [all...] |
H A D | test_read_format_zip_padded.c | 60 * Read a zip file with padding in front. 68 const char *refname = "test_read_format_zip_padded1.zip"; in DEFINE_TEST() 73 * Read a zip file with padding at end. 79 const char *refname = "test_read_format_zip_padded2.zip"; in DEFINE_TEST() 84 * Read a zip file with padding at front and end. 88 const char *refname = "test_read_format_zip_padded3.zip"; in DEFINE_TEST()
|
H A D | test_read_format_zip_nested.c | 29 const char *refname = "test_read_format_zip_nested.zip"; in DEFINE_TEST() 38 /* Inspect outer Zip */ in DEFINE_TEST() 44 assertEqualString("small.zip", archive_entry_pathname(ae)); in DEFINE_TEST() 50 /* Save contents of inner Zip. */ in DEFINE_TEST() 62 /* Close outer Zip */ in DEFINE_TEST() 69 /* Inspect inner Zip. */ in DEFINE_TEST()
|
H A D | test_write_format_zip_empty_zip64.c | 39 /* Zip format: Create a new archive in memory. */ in DEFINE_TEST() 45 /* Force zip writer to use Zip64 extensions. */ in DEFINE_TEST() 46 assertEqualIntA(a, ARCHIVE_OK, archive_write_set_format_option(a, "zip", "zip64", "1")); in DEFINE_TEST() 53 /* Verify the correct format for an empty Zip archive with Zip64 extensions forced. */ in DEFINE_TEST() 58 "\x2d\0" /* Created by Zip 4.5 */ in DEFINE_TEST() 59 "\x2d\0" /* Extract with Zip 4.5 or later */ in DEFINE_TEST() 72 "PK\005\006" /* Regular Zip end-of-central-directory record */ in DEFINE_TEST()
|
H A D | test_read_format_zip_winzip_aes.c | 40 "zip:encryption=aes256")) { in test_winzip_aes() 51 * Extract a zip file without password. in test_winzip_aes() 86 * Extract a zip file with password. in test_winzip_aes() 117 "Unsupported ZIP compression method (8: deflation)"); in test_winzip_aes() 138 test_winzip_aes("test_read_format_zip_winzip_aes128.zip", 1); in DEFINE_TEST() 144 test_winzip_aes("test_read_format_zip_winzip_aes256.zip", 1); in DEFINE_TEST() 150 test_winzip_aes("test_read_format_zip_winzip_aes256_stored.zip", 0); in DEFINE_TEST()
|
H A D | test_read_format_zip_winzip_aes_large.c | 30 const char *refname = "test_read_format_zip_winzip_aes256_large.zip"; in DEFINE_TEST() 41 "zip:encryption=aes256")) { in DEFINE_TEST() 52 * Extract a zip file without password. in DEFINE_TEST() 118 * Extract a zip file with password. in DEFINE_TEST() 145 "Unsupported ZIP compression method (8: deflation)"); in DEFINE_TEST() 163 "Unsupported ZIP compression method (8: deflation)"); in DEFINE_TEST() 181 "Unsupported ZIP compression method (8: deflation)"); in DEFINE_TEST() 199 "Unsupported ZIP compression method (8: deflation)"); in DEFINE_TEST()
|
/freebsd/contrib/sqlite3/tea/ |
H A D | Makefile.in | 411 # Temp dir for dist.zip. Must be different than dist.tgz or else 413 teaish__dist.tmp.zip = teaish__dist_zip 415 # Make a distribution zip file... 418 dist.zip = $(dist.basename).zip 419 .PHONY: dist.zip dist.zip-core dist.zip-post 420 #dist.zip-pre: 423 $(dist.zip): $(tx.dist.files) 424 @rm -fr $(teaish__dist.tmp.zip) 425 @mkdir -p $(teaish__dist.tmp.zip)/$(dist.basename) 426 @tar cf $(teaish__dist.tmp.zip)/tmp.tar $(tx.dist.files) [all …]
|
/freebsd/lib/libarchive/tests/ |
H A D | Makefile | 417 ${PACKAGE}FILES+= test_compat_zip_1.zip.uu 418 ${PACKAGE}FILES+= test_compat_zip_2.zip.uu 419 ${PACKAGE}FILES+= test_compat_zip_3.zip.uu 420 ${PACKAGE}FILES+= test_compat_zip_4.zip.uu 421 ${PACKAGE}FILES+= test_compat_zip_5.zip.uu 422 ${PACKAGE}FILES+= test_compat_zip_6.zip.uu 424 ${PACKAGE}FILES+= test_compat_zip_8.zip.uu 668 ${PACKAGE}FILES+= test_read_format_zip.zip.uu 669 ${PACKAGE}FILES+= test_read_format_zip_7075_utf8_paths.zip.uu 670 ${PACKAGE}FILES+= test_read_format_zip_7z_deflate.zip.uu [all …]
|
/freebsd/contrib/expat/ |
H A D | Makefile.am | 145 .PHONY: download-xmlts-zip 146 download-xmlts-zip: 148 wget --output-document=tests/xmlts.zip \ 149 https://www.w3.org/XML/Test/xmlts20080827.zip; \ 151 cp $(XMLTS_ZIP) tests/xmlts.zip; \ 154 tests/xmlts.zip: 155 $(MAKE) download-xmlts-zip 157 .PHONY: extract-xmlts-zip 158 extract-xmlts-zip: tests/xmlts.zip 159 [ -f $(builddir)/tests/xmlts.zip ] || $(MAKE) download-xmlts-zip # vpath workaround [all …]
|
/freebsd/contrib/file/magic/Magdir/ |
H A D | zip | 2 # $File: zip,v 1.8 2021/10/24 15:53:56 christos Exp $ 3 # zip: file(1) magic for zip files; this is not use 8 # Zip Central Directory record 10 >0 string PK\001\002 Zip archive data 11 !:mime application/zip 31 # Zip known compressions 60 # Zip known versions 62 # The lower byte indicates the ZIP version of this file. The value/10 indicates 84 # display compatible host system name of ZIP archive 112 # Zip End Of Central Directory record [all …]
|
H A D | mozilla | 14 # Reference: https://github.com/avih/dejsonlz4/archive/master.zip/ 30 # Note: Most ZIP utilities are able to extract such archives 32 # zip -FF omni.ja --out omni.zip 34 !:mime application/x-zip 37 #>4 use zip-dir-entry
|
/freebsd/contrib/unbound/contrib/android/ |
H A D | install_ndk.sh | 19 …l -L -k -s -o "$HOME/android-sdk.zip" https://dl.google.com/android/repository/commandlinetools-li… 26 … curl -L -k -s -o "$HOME/android-ndk.zip" https://dl.google.com/android/repository/android-ndk-r20… 33 if ! unzip -qq "$HOME/android-sdk.zip" -d "$ANDROID_SDK_ROOT"; 40 if ! unzip -qq "$HOME/android-ndk.zip" -d "$HOME"; 52 rm -f "$HOME/android-sdk.zip" 53 rm -f "$HOME/android-ndk.zip"
|
/freebsd/contrib/llvm-project/lldb/source/Host/common/ |
H A D | ZipFileResolver.cpp | 23 // When bionic loads .so file from APK or zip file, this file_spec will be in ResolveSharedLibraryPath() 30 // When the file_spec is resolved as a Windows path, the zip .so path will be in ResolveSharedLibraryPath() 38 // This file_spec does not contain the zip separator. in ResolveSharedLibraryPath() 48 // This file_spec is a zip .so path. Extract the zip path and the .so path. in ResolveSharedLibraryPath() 54 // the zip file. in ResolveSharedLibraryPath() 58 // Try to find the .so file from the zip file. in ResolveSharedLibraryPath() 64 // Found the .so file from the zip file and got the file offset and size. in ResolveSharedLibraryPath() 65 // Return the zip path. so_file_offset and so_file_size are already set. in ResolveSharedLibraryPath()
|
/freebsd/contrib/libpcap/msdos/ |
H A D | readme.dos | 13 Note: the files in the libpcap.zip contains short truncated filenames. 27 https://www.watt-32.net/pcap/libpcap.zip 52 file and other <netdb.h> features. Get 'watt32s*.zip' at: 59 https://www.watt-32.net/misc/exc_dx07.zip 63 ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/flx254b.zip 64 ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/bsn241b.zip 72 ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/sed422b.zip 75 ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/grep29b.zip 134 (click on the 'Download ZIP' on the right side of that page.)
|
/freebsd/contrib/file/tests/ |
H A D | json2.testfile | 3 "precision": "zip", 9 "Zip": "94107", 13 "precision": "zip", 19 "Zip": "94085",
|
/freebsd/usr.bin/unzip/tests/ |
H A D | Makefile | 69 ${PACKAGE}FILES+= test_I.zip.uu 70 ${PACKAGE}FILES+= test_basic.zip.uu 71 ${PACKAGE}FILES+= test_encrypted.zip.uu 72 ${PACKAGE}FILES+= test_singlefile.zip.uu 73 ${PACKAGE}FILES+= test_t_bad.zip.uu
|