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

NAME

4     archive_read_next_header, archive_read_next_header2 — functions for read‐
5     ing streaming archives
6

LIBRARY

8     Streaming Archive Library (libarchive, -larchive)
9

SYNOPSIS

11     #include <archive.h>
12
13     int
14     archive_read_next_header(struct archive *, struct archive_entry **);
15
16     int
17     archive_read_next_header2(struct archive *, struct archive_entry *);
18

DESCRIPTION

20     archive_read_next_header()
21             Read the header for the next entry and return a pointer to a
22             struct archive_entry.  This is a convenience wrapper around
23             archive_read_next_header2() that reuses an internal struct
24             archive_entry object for each request.
25     archive_read_next_header2()
26             Read the header for the next entry and populate the provided
27             struct archive_entry.
28

RETURN VALUES

30     These functions return ARCHIVE_OK (the operation succeeded), ARCHIVE_WARN
31     (the operation succeeded but a non-critical error was encountered),
32     ARCHIVE_EOF (end-of-archive was encountered), ARCHIVE_RETRY (the opera‐
33     tion failed but can be retried), and ARCHIVE_FATAL (there was a fatal
34     error; the archive should be closed immediately).
35

ERRORS

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

SEE ALSO

41     tar(1), libarchive(3), archive_read(3), archive_read_data(3),
42     archive_read_extract(3), archive_read_filter(3), archive_read_format(3),
43     archive_read_open(3), archive_read_set_options(3), archive_util(3),
44     tar(5)
45
46BSD                            February 2, 2012                            BSD
Impressum