1ARCHIVE_WRITE_FILTER(3)  BSD Library Functions Manual  ARCHIVE_WRITE_FILTER(3)
2

NAME

4     archive_write_add_filter_bzip2, archive_write_add_filter_compress,
5     archive_write_add_filter_gzip, archive_write_add_filter_lzip,
6     archive_write_add_filter_lzma, archive_write_add_filter_none,
7     archive_write_add_filter_program, archive_write_add_filter_xz
8

LIBRARY

10     Streaming Archive Library (libarchive, -larchive)
11

SYNOPSIS

13     #include <archive.h>
14
15     int
16     archive_write_add_filter_bzip2(struct archive *);
17
18     int
19     archive_write_add_filter_compress(struct archive *);
20
21     int
22     archive_write_add_filter_gzip(struct archive *);
23
24     int
25     archive_write_add_filter_lzip(struct archive *);
26
27     int
28     archive_write_add_filter_lzma(struct archive *);
29
30     int
31     archive_write_add_filter_none(struct archive *);
32
33     int
34     archive_write_add_filter_program(struct archive *, const char * cmd);
35
36     int
37     archive_write_add_filter_xz(struct archive *);
38

DESCRIPTION

40     archive_write_add_filter_bzip2(), archive_write_add_filter_compress(),
41             archive_write_add_filter_gzip(), archive_write_add_filter_lzip(),
42             archive_write_add_filter_lzma(), archive_write_add_filter_xz(),
43             The resulting archive will be compressed as specified.  Note that
44             the compressed output is always properly blocked.
45
46     archive_write_add_filter_none()
47             This is never necessary.  It is provided only for backwards com‐
48             patibility.
49
50     archive_write_add_filter_program()
51             The archive will be fed into the specified compression program.
52             The output of that program is blocked and written to the client
53             write callbacks.
54

RETURN VALUES

56     These functions return ARCHIVE_OK on success, or ARCHIVE_FATAL.
57

ERRORS

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

SEE ALSO

63     tar(1), libarchive(3), archive_write(3), archive_write_format(3),
64     archive_write_set_options(3), cpio(5), mtree(5), tar(5)
65
66BSD                            February 2, 2012                            BSD
Impressum