1 <!-- Creator : groff version 1.22.3 -->
2 <!-- CreationDate: Tue Feb 11 22:58:44 2020 -->
3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
4 "http://www.w3.org/TR/html4/loose.dtd">
7 <meta name="generator" content="groff -Thtml, see www.gnu.org">
8 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
9 <meta name="Content-Style" content="text/css">
10 <style type="text/css">
11 p { margin-top: 0; margin-bottom: 0; vertical-align: top }
12 pre { margin-top: 0; margin-bottom: 0; vertical-align: top }
13 table { margin-top: 0; margin-bottom: 0; vertical-align: top }
14 h1 { text-align: center }
23 <p>ARCHIVE_READ_FREE(3) BSD Library Functions Manual
24 ARCHIVE_READ_FREE(3)</p>
26 <p style="margin-top: 1em"><b>NAME</b></p>
28 <p style="margin-left:6%;"><b>archive_read_close</b>,
29 <b>archive_read_finish</b>, <b>archive_read_free</b> —
30 functions for reading streaming archives</p>
32 <p style="margin-top: 1em"><b>LIBRARY</b></p>
34 <p style="margin-left:6%;">Streaming Archive Library
35 (libarchive, -larchive)</p>
37 <p style="margin-top: 1em"><b>SYNOPSIS</b></p>
39 <p style="margin-left:6%;"><b>#include
40 <archive.h></b></p>
42 <p style="margin-left:6%; margin-top: 1em"><i>int</i></p>
45 <p style="margin-left:12%;"><b>archive_read_close</b>(<i>struct archive *</i>);</p>
47 <p style="margin-left:6%; margin-top: 1em"><i>int</i></p>
50 <p style="margin-left:12%;"><b>archive_read_finish</b>(<i>struct archive *</i>);</p>
52 <p style="margin-left:6%; margin-top: 1em"><i>int</i></p>
55 <p style="margin-left:12%;"><b>archive_read_free</b>(<i>struct archive *</i>);</p>
57 <p style="margin-top: 1em"><b>DESCRIPTION <br>
58 archive_read_close</b>()</p>
60 <p style="margin-left:17%;">Complete the archive and invoke
61 the close callback.</p>
63 <p><b>archive_read_finish</b>()</p>
65 <p style="margin-left:17%;">This is a deprecated synonym
66 for <b>archive_read_free</b>(). The new name was introduced
67 with libarchive 3.0. Applications that need to compile with
68 either libarchive 2 or libarchive 3 should continue to use
69 the <b>archive_read_finish</b>() name. Both names will be
70 supported until libarchive 4.0 is released, which is not
71 expected to occur earlier than 2013.</p>
73 <p><b>archive_read_free</b>()</p>
75 <p style="margin-left:17%;">Invokes
76 <b>archive_read_close</b>() if it was not invoked manually,
77 then release all resources. Note: In libarchive 1.x, this
78 function was declared to return <i>void</i>, which made it
79 impossible to detect certain errors when
80 <b>archive_read_close</b>() was invoked implicitly from this
81 function. The declaration is corrected beginning with
84 <p style="margin-top: 1em"><b>RETURN VALUES</b></p>
86 <p style="margin-left:6%;">These functions return
87 <b>ARCHIVE_OK</b> on success, or <b>ARCHIVE_FATAL</b>.</p>
89 <p style="margin-top: 1em"><b>ERRORS</b></p>
91 <p style="margin-left:6%;">Detailed error codes and textual
92 descriptions are available from the <b>archive_errno</b>()
93 and <b>archive_error_string</b>() functions.</p>
95 <p style="margin-top: 1em"><b>SEE ALSO</b></p>
97 <p style="margin-left:6%;">archive_read_data(3),
98 archive_read_filter(3), archive_read_format(3),
99 archive_read_new(3), archive_read_open(3),
100 archive_read_set_options(3), archive_util(3),
103 <p style="margin-left:6%; margin-top: 1em">BSD
104 February 2, 2012 BSD</p>