ARCHIVE_ENTRY(3)
π ARCHIVE_ENTRY π
okay bestie, welcome to the archive_entry page from the Library Functions Manual β aka the libarchive girlies' guide to managing archive entry descriptions. she's giving very important, she's giving fundamental, and honestly? she ate. π
π LIBRARY π
Streaming Archive Library (libarchive, -larchive) β yup, that's the one, that's the queen. π
β¨ SYNOPSIS β¨
#include <archive_entry.h>
struct archive_entry *
archive_entry_clear(struct archive_entry *);
struct archive_entry *
archive_entry_clone(struct archive_entry *);
void
archive_entry_free(struct archive_entry *);
struct archive_entry *
archive_entry_new(void);
π¦ DESCRIPTION π¦
So these functions create and manipulate data objects that represent entries within an archive. Think of a struct archive_entry as a heavy-duty version of struct stat: it's got everything from struct stat plus associated pathname, textual group and user names, etc. π
These objects get used by libarchive(3) to represent the metadata associated with a particular entry in an archive. iconic behavior, no notes. πΈ
π Create and Destroy π
There are functions to allocate, destroy, clear, and copy archive_entry objects:
archive_entry_clear()β Erases the object, resetting all internal fields to the same state as a newly-created object. It's literally there so you can quickly recycle objects without thrashing the heap. sustainable queen β»οΈarchive_entry_clone()β A deep copy operation; all text fields are duplicated. not a shallow little thing, she goes deep. πarchive_entry_free()β Releases thestruct archive_entryobject. bye bestie π«Άarchive_entry_new()β Allocate and return a blankstruct archive_entryobject. fresh out the box, blank slate energy β¨
π Function groups π
Due to the high number of functions, the accessor functions can be found in man pages grouped by purpose:
archive_entry_acl(3)β Access Control List manipulationarchive_entry_paths(3)β Path name manipulationarchive_entry_perms(3)β User, group and mode manipulationarchive_entry_stat(3)β Functions not in the other groups and copying to/fromstruct stat.archive_entry_time(3)β Time field manipulation
Most of the functions set or read entries in an object. Such functions have one of the following forms:
archive_entry_set_XXXX()β Stores the provided data in the object. In particular, for strings, the pointer is stored, not the referenced string. β οΈ (read that twice bestie, that's a real one)archive_entry_copy_XXXX()β As above, except that the referenced data is copied into the object. the responsible sibling fr fr π«Άarchive_entry_XXXX()β Returns the specified data. In the case of strings, aconst-qualified pointer to the string is returned.
String data can be set or accessed as wide character strings or normal char strings. The functions that use wide character strings are suffixed with _w. π
Note that these are different representations of the same data: for example, if you store a narrow string and read the corresponding wide string, the object will transparently convert formats using the current locale. Similarly, if you store a wide string and then store a narrow string for the same data, the previously-set wide string will be discarded in favor of the new data. the way she just swaps them out?? main character energy, honestly π
π SEE ALSO π
archive_entry_acl(3)archive_entry_paths(3)archive_entry_perms(3)archive_entry_time(3)libarchive(3)
π HISTORY π
The libarchive library first appeared in FreeBSD 5.3. a whole era. β
π«Ά AUTHORS π«Ά
The libarchive library was written by Tim Kientzle <kientzle@acm.org>. thank you king π
and that's the whole page, bestie!! this one came from the Debian build, dated February 2, 2012 β vintage but still absolutely serving πβ¨π
π¦ where this page comes from
- arch rolling: libarchive 3.8.9-1
- centos-stream 10: libarchive-devel 3.7.7-11.el10 Β· BSD-2-Clause AND FSFULLR AND GPL-2.0-or-later WITH Libtool-exception AND BSD-3-Clause AND FSFUL
- debian trixie: libarchive-dev 3.7.4-4+deb13u1 Β· BSD-2-Clause
- fedora 43: libarchive-devel 3.8.1-3.fc43 Β· BSD-2-Clause AND FSFULLR AND GPL-2.0-or-later WITH Libtool-exception AND BSD-3-Clause AND FSFUL
- fedora 43: libarchive-devel 3.8.1-3.fc43 Β· BSD-2-Clause AND FSFULLR AND GPL-2.0-or-later WITH Libtool-exception AND BSD-3-Clause AND FSFUL
- fedora 43: libarchive-devel 3.8.4-1.fc43 Β· BSD-2-Clause AND FSFULLR AND GPL-2.0-or-later WITH Libtool-exception AND BSD-3-Clause AND FSFUL
- fedora 43: libarchive-devel 3.8.4-1.fc43 Β· BSD-2-Clause AND FSFULLR AND GPL-2.0-or-later WITH Libtool-exception AND BSD-3-Clause AND FSFUL
- fedora 44: libarchive-devel 3.8.4-2.fc44 Β· BSD-2-Clause AND FSFULLR AND GPL-2.0-or-later WITH Libtool-exception AND BSD-3-Clause AND FSFUL
- fedora 44: libarchive-devel 3.8.4-2.fc44 Β· BSD-2-Clause AND FSFULLR AND GPL-2.0-or-later WITH Libtool-exception AND BSD-3-Clause AND FSFUL
- fedora 44: libarchive-devel 3.8.7-1.fc44 Β· BSD-2-Clause AND FSFULLR AND GPL-2.0-or-later WITH Libtool-exception AND BSD-3-Clause AND FSFUL
- fedora 44: libarchive-devel 3.8.7-1.fc44 Β· BSD-2-Clause AND FSFULLR AND GPL-2.0-or-later WITH Libtool-exception AND BSD-3-Clause AND FSFUL
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixos 26.05: libarchive 3.8.9
- nixpkgs unstable: libarchive 3.8.9
- opensuse-leap 16.0: libarchive-devel 3.8.1-160000.4.1 Β· BSD-2-Clause
- opensuse-leap 16.0: libarchive-devel 3.8.1-160000.4.1 Β· BSD-2-Clause
- opensuse-leap 16.0: libarchive-devel 3.8.1-160000.4.1 Β· BSD-2-Clause
- opensuse-leap 16.0: libarchive-devel 3.8.1-160000.4.1 Β· BSD-2-Clause
- ubuntu questing: libarchive-dev 3.7.7-0ubuntu3
- ubuntu questing: libarchive-dev 3.7.7-0ubuntu3.2
- ubuntu resolute: libarchive-dev 3.8.5-1ubuntu2 Β· BSD-2-Clause
- ubuntu resolute: libarchive-dev 3.8.5-1ubuntu2.3 Β· BSD-2-Clause
- ubuntu stonking: libarchive-dev 3.8.9-1 Β· BSD-2-Clause
- Copyright (c) 2003-2007 Tim Kientzle
- Copyright (c) 2010 Joerg Sonnenberger
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms