logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

archive_read_support_filter_all, archive_read_support_filter_bzip2, archive_read_support_filter_compress,

Description

archive_read_support_filter_bzip2(), archive_read_support_filter_compress(), archive_read_support_filter_grzip(), archive_read_support_filter_gzip(), archive_read_support_filter_lrzip(), archive_read_support_filter_lz4(), archive_read_support_filter_lzma(), archive_read_support_filter_lzop(), archive_read_support_filter_none(), archive_read_support_filter_rpm(), archive_read_support_filter_uu(), archive_read_support_filter_xz(), archive_read_support_filter_zstd(), Enables auto-detection code and decompression support for the specified compression. These functions may fall back on external programs if an appropriate library was not available at build time. Decompression using an external program is usually slower than decompression through built-in libraries. Note that “none” is always enabled by default. archive_read_support_filter_all() Enables all available decompression filters. archive_read_support_filter_by_code() Enables a single filter specified by the filter code. This function does not work with ARCHIVE_FILTER_PROGRAM. Note: In statically-linked executables, this will cause your program to include support for every filter. If executable size is a concern, you may wish to avoid using this function. archive_read_support_filter_program() Data is fed through the specified external program before being dearchived. Note that this disables automatic detection of the compression format, so it makes no sense to specify this in conjunction with any other decompression option. archive_read_support_filter_program_signature() This feeds data through the specified external program but only if the initial bytes of the data match the specified signature value.

Errors

Detailed error codes and textual descriptions are available from the archive_errno() and archive_error_string() functions.

Library

Streaming Archive Library (libarchive, -larchive)

Name

archive_read_support_filter_all, archive_read_support_filter_bzip2, archive_read_support_filter_compress, archive_read_support_filter_gzip, archive_read_support_filter_lz4, archive_read_support_filter_lzma, archive_read_support_filter_none, archive_read_support_filter_rpm, archive_read_support_filter_uu, archive_read_support_filter_xz, archive_read_support_filter_zstd, archive_read_support_filter_program, archive_read_support_filter_program_signature — functions for reading streaming archives

Return Values

These functions return ARCHIVE_OK if the compression is fully supported, ARCHIVE_WARN if the compression is supported only through an external program. archive_read_support_filter_none() always succeeds.

See Also

archive_read(3), archive_read_data(3), archive_read_format(3), archive_read_format(3), libarchive(3) Debian June 9, 2020 ARCHIVE_READ_FILTER(3)

Synopsis

#include<archive.h>intarchive_read_support_filter_all(structarchive*); intarchive_read_support_filter_by_code(structarchive*, int); intarchive_read_support_filter_bzip2(structarchive*); intarchive_read_support_filter_compress(structarchive*); intarchive_read_support_filter_grzip(structarchive*); intarchive_read_support_filter_gzip(structarchive*); intarchive_read_support_filter_lrzip(structarchive*); intarchive_read_support_filter_lz4(structarchive*); intarchive_read_support_filter_lzma(structarchive*); intarchive_read_support_filter_lzop(structarchive*); intarchive_read_support_filter_none(structarchive*); intarchive_read_support_filter_rpm(structarchive*); intarchive_read_support_filter_uu(structarchive*); intarchive_read_support_filter_xz(structarchive*); intarchive_read_support_filter_zstd(structarchive*); intarchive_read_support_filter_program(structarchive*, constchar*cmd); intarchive_read_support_filter_program_signature(structarchive*, constchar*cmd, constvoid*signature, size_tsignature_length);

See Also