summaryrefslogtreecommitdiff
path: root/archivers/libarchive/files/doc/wiki/ManPageArchiveReadFree3.wiki
blob: 90b094922ac8d699c7a93a6bfa6b3695a193754b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
ARCHIVE_READ_FREE(3) manual page 
== NAME == 
'''archive_read_close''', 
'''archive_read_finish''', 
'''archive_read_free''' 
- functions for reading streaming archives 
== LIBRARY == 
Streaming Archive Library (libarchive, -larchive) 
== SYNOPSIS == 
'''<nowiki>#include <archive.h></nowiki>''' 
<br> 
''int'' 
<br> 
'''archive_read_close'''(''struct archive *''); 
<br> 
''int'' 
<br> 
'''archive_read_finish'''(''struct archive *''); 
<br> 
''int'' 
<br> 
'''archive_read_free'''(''struct archive *''); 
== DESCRIPTION == 
<dl> 
<dt>'''archive_read_close'''()</dt><dd> 
Complete the archive and invoke the close callback. 
</dd><dt>'''archive_read_finish'''()</dt><dd> 
This is a deprecated synonym for 
'''archive_read_free'''(). 
The new name was introduced with libarchive 3.0. 
Applications that need to compile with either libarchive 2 
or libarchive 3 should continue to use the 
'''archive_read_finish'''() 
name. 
Both names will be supported until libarchive 4.0 is 
released, which is not expected to occur earlier 
than 2013. 
</dd><dt>'''archive_read_free'''()</dt><dd> 
Invokes 
'''archive_read_close'''() 
if it was not invoked manually, then release all resources. 
Note: In libarchive 1.x, this function was declared to return 
''void ,'' 
which made it impossible to detect certain errors when 
'''archive_read_close'''() 
was invoked implicitly from this function. 
The declaration is corrected beginning with libarchive 2.0. 
</dd></dl> 
== RETURN VALUES == 
These functions return 
'''ARCHIVE_OK''' 
on success, or 
'''ARCHIVE_FATAL'''. 
== ERRORS == 
Detailed error codes and textual descriptions are available from the 
'''archive_errno'''() 
and 
'''archive_error_string'''() 
functions. 
== SEE ALSO == 
[[ManPageLibarchive3]], 
[[ManPageArchiveReadNew3]], 
[[ManPageArchiveReadData3]], 
[[ManPageArchiveReadFilter3]], 
[[ManPageArchiveReadFormat3]], 
[[ManPageArchiveReadOpen3]], 
[[ManPageArchiveReadSetOptions3]], 
[[ManPageArchiveUtil3]]