archive_write_add_filter_bzip2(3) archive_write_add_filter_compress

LIBRARY

Streaming Archive Library (libarchive, -larchive)

SYNOPSIS

In archive.h Ft int Fn archive_write_add_filter_bzip2 struct archive * Ft int Fn archive_write_add_filter_compress struct archive * Ft int Fn archive_write_add_filter_gzip struct archive * Ft int Fn archive_write_add_filter_lzip struct archive * Ft int Fn archive_write_add_filter_lzma struct archive * Ft int Fn archive_write_add_filter_none struct archive * Ft int Fn archive_write_add_filter_program struct archive * const char * cmd Ft int Fn archive_write_add_filter_xz struct archive *

DESCRIPTION

Fn archive_write_add_filter_bzip2 , Fn archive_write_add_filter_compress , Fn archive_write_add_filter_gzip , Fn archive_write_add_filter_lzip , Fn archive_write_add_filter_lzma , Fn archive_write_add_filter_xz ,
The resulting archive will be compressed as specified. Note that the compressed output is always properly blocked.
Fn archive_write_add_filter_none
This is never necessary. It is provided only for backwards compatibility.
Fn archive_write_add_filter_program
The archive will be fed into the specified compression program. The output of that program is blocked and written to the client write callbacks.

RETURN VALUES

These functions return ARCHIVE_OK on success, or ARCHIVE_FATAL

ERRORS

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