mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 10:52:50 +00:00
8349d0ebaa
* Formats are now only bid once per file, not once per entry (Affects archive_read.c, most format readers, internals manpage) * Correct tar/cpio history in libarchive_formats manpage * Avoid unnecessary copies in {write,read}_compression_none (significant performance boost for uncompressed archives!) * Protect against zero-length writes in gzip/bzip2 compressors * Tar reader: improve hardlink length heuristics, GNU tar --posix --sparse support, related fixes to SCHILY.realsize handling * Cpio reader: recover from sync errors * Cpio writer: pad symlinks properly in newc format * Ar writer: close out empty archive correctly * Zip reader: ignore PK00 header, code cleanups from des@ * Iso9660 reader: support device node entries * archive_write_disk: support hardlinks with bodies, enforce maximum file size * Reconnect progress callback from archive_read_extract() * New: archive_entry_strmode() * New: mtree reader * New: "linkresolver" makes it easier to do hardlink resolution * UUencode test reference files (be nice to CVS) * New test: exercise very large entries (2G up to 1T) in tar archives * New test: Detailed verification of cpio odc and newc formats * New test: Various strategies for restoring multiple links to a file * New tests: Various compatibility checks against gzip, zip, old tar, etc. * New test: cpio recovery from damaged archives * New test: mtree reading * Improved statistics reporting from test harness * Plus minor portability improvements
43 lines
1.7 KiB
C
43 lines
1.7 KiB
C
/*-
|
|
* Copyright (c) 2003-2007 Tim Kientzle
|
|
* All rights reserved.
|
|
*
|
|
* Redistribution and use in source and binary forms, with or without
|
|
* modification, are permitted provided that the following conditions
|
|
* are met:
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
* notice, this list of conditions and the following disclaimer.
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
* documentation and/or other materials provided with the distribution.
|
|
*
|
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
|
|
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
* IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
*/
|
|
|
|
#include "archive_platform.h"
|
|
__FBSDID("$FreeBSD$");
|
|
|
|
#include "archive.h"
|
|
|
|
int
|
|
archive_read_support_format_all(struct archive *a)
|
|
{
|
|
archive_read_support_format_ar(a);
|
|
archive_read_support_format_cpio(a);
|
|
archive_read_support_format_empty(a);
|
|
archive_read_support_format_iso9660(a);
|
|
archive_read_support_format_mtree(a);
|
|
archive_read_support_format_tar(a);
|
|
archive_read_support_format_zip(a);
|
|
return (ARCHIVE_OK);
|
|
}
|