logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

archive_entry_hardlink, archive_entry_hardlink_w, archive_entry_set_hardlink,

Description

Path names supported by archive_entry(3): hardlink Destination of the hardlink. link Update only. For a symlink, update the destination. Otherwise, make the entry a hardlink and alter the destination for that. pathname Path in the archive sourcepath Path on the disk for use by archive_read_disk(3). symlink Destination of the symbolic link. Path names can be provided in one of three different ways: char * Multibyte strings in the current locale. wchar_t * Wide character strings in the current locale. The accessor functions are named XXX_w(). UTF-8 Unicode strings encoded as UTF-8. These are convenience functions to update both the multibyte and wide character strings at the same time. The sourcepath is a pure filesystem concept and never stored in an archive directly. For that reason, it is only available as multibyte string. The link path is a convenience function for conditionally setting hardlink or symlink destination. It doesn't have a corresponding get accessor function. archive_entry_set_XXX() is an alias for archive_entry_copy_XXX().

Library

Streaming Archive Library (libarchive, -larchive)

Name

archive_entry_hardlink, archive_entry_hardlink_w, archive_entry_set_hardlink, archive_entry_copy_hardlink, archive_entry_copy_hardlink_w, archive_entry_update_hardlink_utf8, archive_entry_set_link, archive_entry_copy_link, archive_entry_copy_link_w, archive_entry_update_link_utf8, archive_entry_pathname, archive_entry_pathname_w, archive_entry_set_pathname, archive_entry_copy_pathname, archive_entry_copy_pathname_w, archive_entry_update_pathname_utf8, archive_entry_sourcepath, archive_entry_copy_sourcepath, archive_entry_symlink, archive_entry_symlink_w, archive_entry_set_symlink, archive_entry_copy_symlink, archive_entry_copy_symlink_w, archive_entry_update_symlink_utf8 — functions for manipulating path names in archive entry descriptions

See Also

archive_entry(3), libarchive(3) Debian February 2, 2012 ARCHIVE_ENTRY_PATHS(3)

Synopsis

#include<archive_entry.h>constchar*archive_entry_hardlink(structarchive_entry*a); constwchar_t*archive_entry_hardlink_w(structarchive_entry*a); voidarchive_entry_set_hardlink(structarchive_entry*a, constchar*path); voidarchive_entry_copy_hardlink(structarchive_entry*a, constchar*path); voidarchive_entry_copy_hardlink_w(structarchive_entry*a, const, wchar_t, *path"); intarchive_entry_update_hardlink_utf8(structarchive_entry*a, constchar*path); voidarchive_entry_set_link(structarchive_entry*a, constchar*path); voidarchive_entry_copy_link(structarchive_entry*a, constchar*path); voidarchive_entry_copy_link_w(structarchive_entry*a, constwchar_t*path); intarchive_entry_update_link_utf8(structarchive_entry*a, constchar*path); constchar*archive_entry_pathname(structarchive_entry*a); constwchar_t*archive_entry_pathname_w(structarchive_entry*a); voidarchive_entry_set_pathname(structarchive_entry*a, constchar*path); voidarchive_entry_copy_pathname(structarchive_entry*a, constchar*path); voidarchive_entry_copy_pathname_w(structarchive_entry*a, constwchar_t*path); intarchive_entry_update_pathname_utf8(structarchive_entry*a, constchar*path); constchar*archive_entry_sourcepath(structarchive_entry*a); voidarchive_entry_copy_sourcepath(structarchive_entry*a, constchar*path); constchar*archive_entry_symlink(structarchive_entry*a); constwchar_t*archive_entry_symlink_w(structarchive_entry*a); voidarchive_entry_set_symlink(structarchive_entry*a, constchar*path); voidarchive_entry_copy_symlink(structarchive_entry*a, constchar*path); voidarchive_entry_copy_symlink_w(structarchive_entry*a, constwchar_t*path); intarchive_entry_update_symlink_utf8(structarchive_entry*a, constchar*path);

See Also