Home
last modified time | relevance | path

Searched full:zip (Results 1 – 25 of 436) sorted by relevance

12345678910>>...18

/freebsd/contrib/libarchive/libarchive/
H A Darchive_write_set_format_zip.c121 struct zip { struct
191 static struct archive_string_conv *get_sconv(struct archive_write *, struct zip *); argument
201 cd_alloc(struct zip *zip, size_t length) in cd_alloc() argument
205 if (zip->central_directory == NULL in cd_alloc()
206 || (zip->central_directory_last->p + length in cd_alloc()
207 > zip->central_directory_last->buff + zip->central_directory_last->buff_size)) { in cd_alloc()
219 if (zip->central_directory == NULL) { in cd_alloc()
220 zip->central_directory in cd_alloc()
221 = zip->central_directory_last in cd_alloc()
224 zip->central_directory_last->next = segment; in cd_alloc()
[all …]
H A Darchive_read_support_format_zip.c31 * 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
143 struct zip { struct
152 /* List of entries (seekable Zip only) */
269 * streams inside ZIP files. It has 2 purposes: one is to fetch the next
276 struct zip *zip = (struct zip*) a->format->data; in ppmd_read() local
282 zip->ppmd8_stream_failed = 1; in ppmd_read()
289 ++zip->zipx_ppmd_read_compressed; in ppmd_read()
[all …]
H A Darchive_read_support_format_7zip.c74 #define _7Z_CRYPTO_MAIN_ZIP 0x06F10101 /* Main Zip crypto algo */
88 #define _7Z_ZSTD 0x4F71101 /* Copied from https://github.com/mcmilk/7-Zip-zstd.git */
91 * 7-Zip header property IDs.
136 // This value is defined in 7zip with the comment "trick for Unix".
371 * corrupted 7-zip files on assuming there are not so many entries in
444 struct _7zip *zip; in archive_read_support_format_7zip() local
450 zip = calloc(1, sizeof(*zip)); in archive_read_support_format_7zip()
451 if (zip == NULL) { in archive_read_support_format_7zip()
453 "Can't allocate 7zip data"); in archive_read_support_format_7zip()
461 zip->has_encrypted_entries = ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW; in archive_read_support_format_7zip()
[all …]
H A Darchive_write_set_format_7zip.c67 * 7-Zip header property IDs.
107 // This value is defined in 7zip with the comment "trick for Unix".
311 struct _7zip *zip; in archive_write_set_format_7zip() local
320 zip = calloc(1, sizeof(*zip)); in archive_write_set_format_7zip()
321 if (zip == NULL) { in archive_write_set_format_7zip()
323 "Can't allocate 7-Zip data"); in archive_write_set_format_7zip()
326 zip->temp_fd = -1; in archive_write_set_format_7zip()
327 __archive_rb_tree_init(&(zip->rbtree), &rb_ops); in archive_write_set_format_7zip()
328 file_init_register(zip); in archive_write_set_format_7zip()
329 file_init_register_empty(zip); in archive_write_set_format_7zip()
[all …]
H A Dlibarchive-formats.5326 .Ss Zip format
327 Libarchive can read and write zip format archives that have
331 Other zip compression algorithms are not supported.
333 self-extracting zip archives.
335 reading Zip archives:
338 process self-extracting Zip archives and archives with
341 The streaming reader processes Zip archives as they are read.
343 network sockets, and can decode Zip archives that have
345 However, self-extracting Zip archives and archives with
350 at the end of a Zip archiv
[all...]
/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_fuzz.c458 "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 Dtest_read_format_zip.c113 assertEqualString("ZIP 1.0 (uncompressed)", archive_format_name(a)); in verify_basic()
126 assertEqualString("ZIP 2.0 (deflation)", archive_format_name(a)); in verify_basic()
141 "Unsupported ZIP compression method (8: deflation)"); in verify_basic()
146 assertEqualString("ZIP 2.0 (deflation)", archive_format_name(a)); in verify_basic()
164 "Unsupported ZIP compression method (8: deflation)"); in verify_basic()
168 assertEqualString("ZIP 2.0 (deflation)", archive_format_name(a)); in verify_basic()
181 const char *refname = "test_read_format_zip.zip"; in test_basic()
206 * Read Info-ZIP New Unix Extra Field 0x7875 "ux".
223 failure("zip reader should read Info-ZIP Ne in verify_info_zip_ux()
[all...]
H A Dtest_read_format_zip_padded.c60 * 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 Dtest_compat_zip.c30 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 Dtest_read_format_zip_nested.c29 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 Dtest_write_format_zip_empty_zip64.c39 /* 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 Dtest_read_format_zip_winzip_aes.c40 "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 Dtest_write_format_7zip_large.c55 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()
H A Dtest_read_format_zip_winzip_aes_large.c30 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/lib/libarchive/tests/
H A DMakefile404 ${PACKAGE}FILES+= test_compat_zip_1.zip.uu
405 ${PACKAGE}FILES+= test_compat_zip_2.zip.uu
406 ${PACKAGE}FILES+= test_compat_zip_3.zip.uu
407 ${PACKAGE}FILES+= test_compat_zip_4.zip.uu
408 ${PACKAGE}FILES+= test_compat_zip_5.zip.uu
409 ${PACKAGE}FILES+= test_compat_zip_6.zip.uu
411 ${PACKAGE}FILES+= test_compat_zip_8.zip.uu
637 ${PACKAGE}FILES+= test_read_format_zip.zip.uu
638 ${PACKAGE}FILES+= test_read_format_zip_7075_utf8_paths.zip.uu
639 ${PACKAGE}FILES+= test_read_format_zip_7z_deflate.zip.uu
[all …]
/freebsd/contrib/expat/
H A DMakefile.am143 .PHONY: download-xmlts-zip
144 download-xmlts-zip:
146 wget --output-document=tests/xmlts.zip \
147 https://www.w3.org/XML/Test/xmlts20080827.zip; \
149 cp $(XMLTS_ZIP) tests/xmlts.zip; \
152 tests/xmlts.zip:
153 $(MAKE) download-xmlts-zip
155 .PHONY: extract-xmlts-zip
156 extract-xmlts-zip: tests/xmlts.zip
157 [ -f $(builddir)/tests/xmlts.zip ] || $(MAKE) download-xmlts-zip # vpath workaround
[all …]
/freebsd/contrib/unbound/contrib/android/
H A Dinstall_ndk.sh19 …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/file/magic/Magdir/
H A Dzip2 # $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 Dmozilla14 # 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
H A Darchive6 # cpio, ar, arc, arj, hpack, lha/lharc, rar, squish, uc2, zip, zoo, etc.
199 # verified by 7-Zip `7z l -ttar Mint-21.1.nvram` and
217 # Note: there exist also RAR, ZIP, ACE and 7Z packed variants
249 # Note: verified by 7-Zip `7z l -ttar FRITZ.Box_4040-07.57.image`
280 # most verfied by 7-Zip `7z l -ttar *.wbm | grep "\module.info"` and
344 # Note: called "CPIO archive (binary)" by TrID, "cpio/Binary LE" by 7-Zip and "CPIO" by DROID via …
355 # Note: called "CPIO archive (byte swapped binary)" by TrID and "Cpio/Binary BE" by 7-Zip
362 # Note: called "CPIO archive (portable)" by TrID, "cpio/Portable ASCII" by 7-Zip and "cpio/odc" by…
367 # Note: called "CPIO archive (portable)" by TrID, "cpio/New ASCII" by 7-Zip and "cpio/newc" by GNU…
372 # Note: called "CPIO archive (portable)" by TrID, "cpio/New CRC" by 7-Zip and "cpio/crc" by GNU cp…
[all …]
/freebsd/contrib/llvm-project/lldb/source/Host/common/
H A DZipFileResolver.cpp23 // 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 Dreadme.dos13 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 Djson2.testfile3 "precision": "zip",
9 "Zip": "94107",
13 "precision": "zip",
19 "Zip": "94085",
/freebsd/usr.bin/unzip/tests/
H A DMakefile69 ${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
/freebsd/contrib/libarchive/
H A DNEWS67 Jan 20, 2019: Support for xz, lzma, ppmd8 and bzip2 decompression in ZIP files
123 Oct 13, 2014: Zip encryption and decryption support
129 May 3, 2014: Add experimental Zip streaming extension
135 Dec 1, 2013: Rewrite Zip write logic
152 Nov 11, 2012: Add support for __MACOSX directory in Zip archives, which resource
179 Dec 23, 2011: Symlink support in Zip reader and writer
180 Dec 23, 2011: Robustness fixes to 7Zip reader
184 Nov 26, 2011: 7Zip reader
185 Nov 26, 2011: Small fixes to ISO and Zip to improve robustness with corrupted input
186 Nov 24, 2011: Improve streaming Zip reader's support for uncompressed entries
[all …]

12345678910>>...18