1 <!-- Creator : groff version 1.22.3 -->
2 <!-- CreationDate: Sun Jun 19 19:54:06 2016 -->
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_ENTRY_PATHS(3) BSD Library Functions Manual
24 ARCHIVE_ENTRY_PATHS(3)</p>
26 <p style="margin-top: 1em"><b>NAME</b></p>
28 <p style="margin-left:6%;"><b>archive_entry_hardlink</b>,
29 <b>archive_entry_hardlink_w</b>,
30 <b>archive_entry_set_hardlink</b>,
31 <b>archive_entry_copy_hardlink</b>,
32 <b>archive_entry_copy_hardlink_w</b>,
33 <b>archve_entry_update_hardlink_utf8</b>,
34 <b>archive_entry_set_link</b>,
35 <b>archive_entry_copy_link</b>,
36 <b>archive_entry_copy_link_w</b>,
37 <b>archve_entry_update_link_utf8</b>,
38 <b>archive_entry_pathname</b>,
39 <b>archive_entry_pathname_w</b>,
40 <b>archive_entry_set_pathname</b>,
41 <b>archive_entry_copy_pathname</b>,
42 <b>archive_entry_copy_pathname_w</b>,
43 <b>archve_entry_update_pathname_utf8</b>,
44 <b>archive_entry_sourcepath</b>,
45 <b>archive_entry_copy_sourcepath</b>,
46 <b>archive_entry_symlink, archive_entry_symlink_w,
47 archive_entry_set_symlink</b>,
48 <b>archive_entry_copy_symlink</b>,
49 <b>archive_entry_copy_symlink_w</b>,
50 <b>archve_entry_update_symlink_utf8</b> — functions
51 for manipulating path names in archive entry
54 <p style="margin-top: 1em"><b>LIBRARY</b></p>
56 <p style="margin-left:6%;">Streaming Archive Library
57 (libarchive, -larchive)</p>
59 <p style="margin-top: 1em"><b>SYNOPSIS</b></p>
61 <p style="margin-left:6%;"><b>#include
62 <archive_entry.h></b></p>
64 <p style="margin-left:6%; margin-top: 1em"><i>const char
68 <p style="margin-left:12%;"><b>archive_entry_hardlink</b>(<i>struct archive_entry *a</i>);</p>
70 <p style="margin-left:6%; margin-top: 1em"><i>const wchar_t
74 <p style="margin-left:12%;"><b>archive_entry_hardlink_w</b>(<i>struct archive_entry *a</i>);</p>
76 <p style="margin-left:6%; margin-top: 1em"><i>void</i></p>
79 <p style="margin-left:12%;"><b>archive_entry_set_hardlink</b>(<i>struct archive_entry *a</i>,
80 <i>const char *path</i>);</p>
82 <p style="margin-left:6%; margin-top: 1em"><i>void</i></p>
85 <p style="margin-left:12%;"><b>archive_entry_copy_hardlink</b>(<i>struct archive_entry *a</i>,
86 <i>const char *path</i>);</p>
88 <p style="margin-left:6%; margin-top: 1em"><i>void</i></p>
91 <p style="margin-left:12%;"><b>archive_entry_copy_hardlink_w</b>(<i>struct archive_entry *a</i>,
92 <i>const</i>, <i>wchar_t</i>, <i>*path"</i>);</p>
94 <p style="margin-left:6%; margin-top: 1em"><i>int</i></p>
97 <p style="margin-left:12%;"><b>archive_entry_update_hardlink_utf8</b>(<i>struct archive_entry *a</i>,
98 <i>const char *path</i>);</p>
100 <p style="margin-left:6%; margin-top: 1em"><i>void</i></p>
103 <p style="margin-left:12%;"><b>archive_entry_set_link</b>(<i>struct archive_entry *a</i>,
104 <i>const char *path</i>);</p>
106 <p style="margin-left:6%; margin-top: 1em"><i>void</i></p>
109 <p style="margin-left:12%;"><b>archive_entry_copy_link</b>(<i>struct archive_entry *a</i>,
110 <i>const char *path</i>);</p>
112 <p style="margin-left:6%; margin-top: 1em"><i>void</i></p>
115 <p style="margin-left:12%;"><b>archive_entry_copy_link_w</b>(<i>struct archive_entry *a</i>,
116 <i>const wchar_t *path</i>);</p>
118 <p style="margin-left:6%; margin-top: 1em"><i>int</i></p>
121 <p style="margin-left:12%;"><b>archive_entry_update_link_utf8</b>(<i>struct archive_entry *a</i>,
122 <i>const char *path</i>);</p>
124 <p style="margin-left:6%; margin-top: 1em"><i>const char
128 <p style="margin-left:12%;"><b>archive_entry_pathname</b>(<i>struct archive_entry *a</i>);</p>
130 <p style="margin-left:6%; margin-top: 1em"><i>const wchar_t
134 <p style="margin-left:12%;"><b>archive_entry_pathname_w</b>(<i>struct archive_entry *a</i>);</p>
136 <p style="margin-left:6%; margin-top: 1em"><i>void</i></p>
139 <p style="margin-left:12%;"><b>archive_entry_set_pathname</b>(<i>struct archive_entry *a</i>,
140 <i>const char *path</i>);</p>
142 <p style="margin-left:6%; margin-top: 1em"><i>void</i></p>
145 <p style="margin-left:12%;"><b>archive_entry_copy_pathname</b>(<i>struct archive_entry *a</i>,
146 <i>const char *path</i>);</p>
148 <p style="margin-left:6%; margin-top: 1em"><i>void</i></p>
151 <p style="margin-left:12%;"><b>archive_entry_copy_pathname_w</b>(<i>struct archive_entry *a</i>,
152 <i>const wchar_t *path</i>);</p>
154 <p style="margin-left:6%; margin-top: 1em"><i>int</i></p>
157 <p style="margin-left:12%;"><b>archive_entry_update_pathname_utf8</b>(<i>struct archive_entry *a</i>,
158 <i>const char *path</i>);</p>
160 <p style="margin-left:6%; margin-top: 1em"><i>const char
164 <p style="margin-left:12%;"><b>archive_entry_sourcepath</b>(<i>struct archive_entry *a</i>);</p>
166 <p style="margin-left:6%; margin-top: 1em"><i>void</i></p>
169 <p style="margin-left:12%;"><b>archive_entry_copy_sourcepath</b>(<i>struct archive_entry *a</i>,
170 <i>const char *path</i>);</p>
172 <p style="margin-left:6%; margin-top: 1em"><i>const char
176 <p style="margin-left:12%;"><b>archive_entry_symlink</b>(<i>struct archive_entry *a</i>);</p>
178 <p style="margin-left:6%; margin-top: 1em"><i>const wchar_t
182 <p style="margin-left:12%;"><b>archive_entry_symlink_w</b>(<i>struct archive_entry *a</i>);</p>
184 <p style="margin-left:6%; margin-top: 1em"><i>void</i></p>
187 <p style="margin-left:12%;"><b>archive_entry_set_symlink</b>(<i>struct archive_entry *a</i>,
188 <i>const char *path</i>);</p>
190 <p style="margin-left:6%; margin-top: 1em"><i>void</i></p>
193 <p style="margin-left:12%;"><b>archive_entry_copy_symlink</b>(<i>struct archive_entry *a</i>,
194 <i>const char *path</i>);</p>
196 <p style="margin-left:6%; margin-top: 1em"><i>void</i></p>
199 <p style="margin-left:12%;"><b>archive_entry_copy_symlink_w</b>(<i>struct archive_entry *a</i>,
200 <i>const wchar_t *path</i>);</p>
202 <p style="margin-left:6%; margin-top: 1em"><i>int</i></p>
205 <p style="margin-left:12%;"><b>archive_entry_update_symlink_utf8</b>(<i>struct archive_entry *a</i>,
206 <i>const char *path</i>);</p>
208 <p style="margin-top: 1em"><b>DESCRIPTION</b></p>
210 <p style="margin-left:6%;">Path names supported by
211 archive_entry(3):</p>
215 <p style="margin-left:22%; margin-top: 1em">Destination of
220 <p style="margin-left:22%; margin-top: 1em">Update only.
221 For a symlink, update the destination. Otherwise, make the
222 entry a hardlink and alter the destination for that.</p>
226 <p style="margin-left:22%; margin-top: 1em">Path in the
231 <p style="margin-left:22%; margin-top: 1em">Path on the
232 disk for use by archive_read_disk(3).</p>
236 <p style="margin-left:22%; margin-top: 1em">Destination of
237 the symbolic link.</p>
239 <p style="margin-left:6%; margin-top: 1em">Path names can
240 be provided in one of three different ways:</p>
242 <p style="margin-top: 1em">char *</p>
244 <p style="margin-left:21%; margin-top: 1em">Multibyte
245 strings in the current locale.</p>
247 <p style="margin-top: 1em">wchar_t *</p>
249 <p style="margin-left:21%; margin-top: 1em">Wide character
250 strings in the current locale. The accessor functions are
251 named <b>XXX_w</b>().</p>
253 <p style="margin-top: 1em">UTF-8</p>
255 <p style="margin-left:21%; margin-top: 1em">Unicode strings
256 encoded as UTF-8. This are convience functions to update
257 both the multibyte and wide character strings at the same
260 <p style="margin-left:6%; margin-top: 1em">The sourcepath
261 is a pure filesystem concept and never stored in an archive
264 <p style="margin-left:6%; margin-top: 1em">For that reason,
265 it is only available as multibyte string. The link path is a
266 convience function for conditionally setting hardlink or
267 symlink destination. It doesn’t have a corresponding
268 get accessor function.</p>
271 <p style="margin-left:6%; margin-top: 1em"><b>archive_entry_set_XXX</b>()
272 is an alias for <b>archive_entry_copy_XXX</b>().</p>
274 <p style="margin-top: 1em"><b>SEE ALSO</b></p>
276 <p style="margin-left:6%;">archive_entry(3)
279 <p style="margin-left:6%; margin-top: 1em">BSD
280 February 2, 2012 BSD</p>