1 ARCHIVE_ENTRY(3) manual page
3 '''archive_entry_clear''',
4 '''archive_entry_clone''',
5 '''archive_entry_free''',
6 '''archive_entry_new''',
7 - functions for managing archive entry descriptions
9 Streaming Archive Library (libarchive, -larchive)
11 '''<nowiki>#include <archive_entry.h></nowiki>'''
13 ''struct archive_entry *''
15 '''archive_entry_clear'''(''struct archive_entry *'');
17 ''struct archive_entry *''
19 '''archive_entry_clone'''(''struct archive_entry *'');
23 '''archive_entry_free'''(''struct archive_entry *'');
25 ''struct archive_entry *''
27 '''archive_entry_new'''(''void'');
29 These functions create and manipulate data objects that
30 represent entries within an archive.
32 '''struct archive_entry'''
33 as a heavy-duty version of
35 it includes everything from
37 plus associated pathname, textual group and user names, etc.
38 These objects are used by
39 [[ManPageLibarchive3]]
40 to represent the metadata associated with a particular
42 === Create and Destroy===
43 There are functions to allocate, destroy, clear, and copy
47 <dt>'''archive_entry_clear'''()</dt><dd>
48 Erases the object, resetting all internal fields to the
49 same state as a newly-created object.
50 This is provided to allow you to quickly recycle objects
51 without thrashing the heap.
52 </dd><dt>'''archive_entry_clone'''()</dt><dd>
53 A deep copy operation; all text fields are duplicated.
54 </dd><dt>'''archive_entry_free'''()</dt><dd>
56 '''struct archive_entry'''
58 </dd><dt>'''archive_entry_new'''()</dt><dd>
59 Allocate and return a blank
60 '''struct archive_entry'''
63 === Function groups===
64 Due to high number of functions, the accessor functions can be found in
65 man pages grouped by the purpose.
67 <dt>[[ManPageArchiveEntryAcl3]]</dt><dd>
68 Access Control List manipulation
69 </dd><dt>[[ManPageArchiveEntryPaths3]]</dt><dd>
70 Path name manipulation
71 </dd><dt>[[ManPageArchiveEntryPerms3]]</dt><dd>
72 User, group and mode manipulation
73 </dd><dt>[[ManPageArchiveEntryStat3]]</dt><dd>
74 Functions not in the other groups and copying to/from
76 </dd><dt>[[ManPageArchiveEntryTime3]]</dt><dd>
77 Time field manipulation
80 Most of the functions set or read entries in an object.
81 Such functions have one of the following forms:
83 <dt>'''archive_entry_set_XXXX'''()</dt><dd>
84 Stores the provided data in the object.
85 In particular, for strings, the pointer is stored,
86 not the referenced string.
87 </dd><dt>'''archive_entry_copy_XXXX'''()</dt><dd>
88 As above, except that the referenced data is copied
90 </dd><dt>'''archive_entry_XXXX'''()</dt><dd>
91 Returns the specified data.
92 In the case of strings, a const-qualified pointer to
93 the string is returned.
95 String data can be set or accessed as wide character strings
99 The functions that use wide character strings are suffixed with
101 Note that these are different representations of the same data:
102 For example, if you store a narrow string and read the corresponding
103 wide string, the object will transparently convert formats
104 using the current locale.
105 Similarly, if you store a wide string and then store a
106 narrow string for the same data, the previously-set wide string will
107 be discarded in favor of the new data.
110 [[ManPageArchiveEntryAcl3]],
111 [[ManPageArchiveEntryPaths3]],
112 [[ManPageArchiveEntryPerms3]],
113 [[ManPageArchiveEntryTime3]]
114 [[ManPageLibarchive3]],
118 library first appeared in
123 library was written by
124 Tim Kientzle <kientzle@acm.org.>