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

NAME

4     archive_write_header — functions for creating archives
5

LIBRARY

7     Streaming Archive Library (libarchive, -larchive)
8

SYNOPSIS

10     #include <archive.h>
11
12     int
13     archive_write_header(struct archive *, struct archive_entry *);
14

DESCRIPTION

16     Build and write a header using the data in the provided struct
17     archive_entry structure.  See archive_entry(3) for information on creat‐
18     ing and populating struct archive_entry objects.
19

RETURN VALUES

21     This function returns ARCHIVE_OK on success, or one of the following on
22     error: ARCHIVE_RETRY for operations that might succeed if retried,
23     ARCHIVE_WARN for unusual conditions that do not prevent further opera‐
24     tions, and ARCHIVE_FATAL for serious errors that make remaining opera‐
25     tions impossible.
26

ERRORS

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

SEE ALSO

32     tar(1), libarchive(3), archive_write_set_options(3), cpio(5), mtree(5),
33     tar(5)
34
35BSD                            February 2, 2012                            BSD
Impressum