1.\" Copyright (c) 2003-2011 Tim Kientzle 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. 9.\" 2. Redistributions in binary form must reproduce the above copyright 10.\" notice, this list of conditions and the following disclaimer in the 11.\" documentation and/or other materials provided with the distribution. 12.\" 13.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23.\" SUCH DAMAGE. 24.\" 25.\" $FreeBSD$ 26.\" 27.Dd August 14, 2014 28.Dt ARCHIVE_READ_FILTER 3 29.Os 30.Sh NAME 31.Nm archive_read_support_filter_all , 32.Nm archive_read_support_filter_bzip2 , 33.Nm archive_read_support_filter_compress , 34.Nm archive_read_support_filter_gzip , 35.Nm archive_read_support_filter_lz4 , 36.Nm archive_read_support_filter_lzma , 37.Nm archive_read_support_filter_none , 38.Nm archive_read_support_filter_rpm , 39.Nm archive_read_support_filter_uu , 40.Nm archive_read_support_filter_xz , 41.Nm archive_read_support_filter_zstd , 42.Nm archive_read_support_filter_program , 43.Nm archive_read_support_filter_program_signature 44.Nd functions for reading streaming archives 45.\" 46.Sh LIBRARY 47Streaming Archive Library (libarchive, -larchive) 48.Sh SYNOPSIS 49.In archive.h 50.Ft int 51.Fn archive_read_support_filter_all "struct archive *" 52.Ft int 53.Fn archive_read_support_filter_bzip2 "struct archive *" 54.Ft int 55.Fn archive_read_support_filter_compress "struct archive *" 56.Ft int 57.Fn archive_read_support_filter_grzip "struct archive *" 58.Ft int 59.Fn archive_read_support_filter_gzip "struct archive *" 60.Ft int 61.Fn archive_read_support_filter_lrzip "struct archive *" 62.Ft int 63.Fn archive_read_support_filter_lz4 "struct archive *" 64.Ft int 65.Fn archive_read_support_filter_lzma "struct archive *" 66.Ft int 67.Fn archive_read_support_filter_lzop "struct archive *" 68.Ft int 69.Fn archive_read_support_filter_none "struct archive *" 70.Ft int 71.Fn archive_read_support_filter_rpm "struct archive *" 72.Ft int 73.Fn archive_read_support_filter_uu "struct archive *" 74.Ft int 75.Fn archive_read_support_filter_xz "struct archive *" 76.Ft int 77.Fn archive_read_support_filter_zstd "struct archive *" 78.Ft int 79.Fo archive_read_support_filter_program 80.Fa "struct archive *" 81.Fa "const char *cmd" 82.Fc 83.Ft int 84.Fo archive_read_support_filter_program_signature 85.Fa "struct archive *" 86.Fa "const char *cmd" 87.Fa "const void *signature" 88.Fa "size_t signature_length" 89.Fc 90.\" 91.Sh DESCRIPTION 92.Bl -tag -compact -width indent 93.It Xo 94.Fn archive_read_support_filter_bzip2 , 95.Fn archive_read_support_filter_compress , 96.Fn archive_read_support_filter_grzip , 97.Fn archive_read_support_filter_gzip , 98.Fn archive_read_support_filter_lrzip , 99.Fn archive_read_support_filter_lz4 , 100.Fn archive_read_support_filter_lzma , 101.Fn archive_read_support_filter_lzop , 102.Fn archive_read_support_filter_none , 103.Fn archive_read_support_filter_rpm , 104.Fn archive_read_support_filter_uu , 105.Fn archive_read_support_filter_xz , 106.Fn archive_read_support_filter_zstd , 107.Xc 108Enables auto-detection code and decompression support for the 109specified compression. 110These functions may fall back on external programs if an appropriate 111library was not available at build time. 112Decompression using an external program is usually slower than 113decompression through built-in libraries. 114Note that 115.Dq none 116is always enabled by default. 117.It Fn archive_read_support_filter_all 118Enables all available decompression filters. 119.It Fn archive_read_support_filter_program 120Data is fed through the specified external program before being dearchived. 121Note that this disables automatic detection of the compression format, 122so it makes no sense to specify this in conjunction with any other 123decompression option. 124.It Fn archive_read_support_filter_program_signature 125This feeds data through the specified external program 126but only if the initial bytes of the data match the specified 127signature value. 128.El 129.\" 130.\". Sh EXAMPLE 131.\" 132.Sh RETURN VALUES 133These functions return 134.Cm ARCHIVE_OK 135if the compression is fully supported, 136.Cm ARCHIVE_WARN 137if the compression is supported only through an external program. 138.Pp 139.Fn archive_read_support_filter_none 140always succeeds. 141.\" 142.Sh ERRORS 143Detailed error codes and textual descriptions are available from the 144.Fn archive_errno 145and 146.Fn archive_error_string 147functions. 148.\" 149.Sh SEE ALSO 150.Xr libarchive 3 , 151.Xr archive_read 3 , 152.Xr archive_read_data 3 , 153.Xr archive_read_format 3 , 154.Xr archive_read_format 3 155