1 ARCHIVE_ENTRY_PATHS(3) BSD Library Functions Manual ARCHIVE_ENTRY_PATHS(3)
4 archive_entry_hardlink, archive_entry_hardlink_w,
5 archive_entry_set_hardlink, archive_entry_copy_hardlink,
6 archive_entry_copy_hardlink_w, archve_entry_update_hardlink_utf8,
7 archive_entry_set_link, archive_entry_copy_link,
8 archive_entry_copy_link_w, archve_entry_update_link_utf8,
9 archive_entry_pathname, archive_entry_pathname_w,
10 archive_entry_set_pathname, archive_entry_copy_pathname,
11 archive_entry_copy_pathname_w, archve_entry_update_pathname_utf8,
12 archive_entry_sourcepath, archive_entry_copy_sourcepath,
13 archive_entry_symlink, archive_entry_symlink_w,
14 archive_entry_set_symlink, archive_entry_copy_symlink,
15 archive_entry_copy_symlink_w, archve_entry_update_symlink_utf8 — func‐
16 tions for manipulating path names in archive entry descriptions
19 Streaming Archive Library (libarchive, -larchive)
22 #include <archive_entry.h>
25 archive_entry_hardlink(struct archive_entry *a);
28 archive_entry_hardlink_w(struct archive_entry *a);
31 archive_entry_set_hardlink(struct archive_entry *a, const char *path);
34 archive_entry_copy_hardlink(struct archive_entry *a, const char *path);
37 archive_entry_copy_hardlink_w(struct archive_entry *a, const, wchar_t,
41 archive_entry_update_hardlink_utf8(struct archive_entry *a,
45 archive_entry_set_link(struct archive_entry *a, const char *path);
48 archive_entry_copy_link(struct archive_entry *a, const char *path);
51 archive_entry_copy_link_w(struct archive_entry *a, const wchar_t *path);
54 archive_entry_update_link_utf8(struct archive_entry *a,
58 archive_entry_pathname(struct archive_entry *a);
61 archive_entry_pathname_w(struct archive_entry *a);
64 archive_entry_set_pathname(struct archive_entry *a, const char *path);
67 archive_entry_copy_pathname(struct archive_entry *a, const char *path);
70 archive_entry_copy_pathname_w(struct archive_entry *a,
74 archive_entry_update_pathname_utf8(struct archive_entry *a,
78 archive_entry_sourcepath(struct archive_entry *a);
81 archive_entry_copy_sourcepath(struct archive_entry *a, const char *path);
84 archive_entry_symlink(struct archive_entry *a);
87 archive_entry_symlink_w(struct archive_entry *a);
90 archive_entry_set_symlink(struct archive_entry *a, const char *path);
93 archive_entry_copy_symlink(struct archive_entry *a, const char *path);
96 archive_entry_copy_symlink_w(struct archive_entry *a,
100 archive_entry_update_symlink_utf8(struct archive_entry *a,
104 Path names supported by archive_entry(3):
105 hardlink Destination of the hardlink.
106 link Update only. For a symlink, update the destination. Other‐
107 wise, make the entry a hardlink and alter the destination for
109 pathname Path in the archive
110 sourcepath Path on the disk for use by archive_read_disk(3).
111 symlink Destination of the symbolic link.
113 Path names can be provided in one of three different ways:
115 char * Multibyte strings in the current locale.
117 wchar_t * Wide character strings in the current locale. The accessor
118 functions are named XXX_w().
120 UTF-8 Unicode strings encoded as UTF-8. This are convience func‐
121 tions to update both the multibyte and wide character strings
124 The sourcepath is a pure filesystem concept and never stored in an ar‐
127 For that reason, it is only available as multibyte string. The link path
128 is a convience function for conditionally setting hardlink or symlink
129 destination. It doesn't have a corresponding get accessor function.
131 archive_entry_set_XXX() is an alias for archive_entry_copy_XXX().
134 archive_entry(3) libarchive(3),
136 BSD February 2, 2012 BSD