ARCHIVE_ENTRY - Online Linux Manual PageSection : 3
Updated : February 2, 2012
NAME archive_entry_clear, archive_entry_clone, archive_entry_free, archive_entry_new —functions for managing archive entry descriptions
LIBRARYStreaming Archive Library (libarchive, -larchive)
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);
DESCRIPTIONThese functions create and manipulate data objects that represent entries within an archive. You can think of a struct archive_entry as a heavy-duty version of struct stat: it includes everything from struct stat plus associated pathname, textual group and user names, etc. These objects are used by libarchive(3) to represent the metadata associated with a particular entry in an archive.
Create and DestroyThere 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. This is provided to allow you to quickly recycle objects without thrashing the heap. archive_entry_clone() A deep copy operation; all text fields are duplicated. archive_entry_free() Releases the struct archive_entry object. archive_entry_new() Allocate and return a blank struct archive_entry object.
Function groupsDue to high number of functions, the accessor functions can be found in man pages grouped by the purpose. archive_entry_acl 3 Access Control List manipulation archive_entry_paths 3 Path name manipulation archive_entry_perms 3 User, group and mode manipulation archive_entry_stat 3 Functions not in the other groups and copying to/from struct 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. archive_entry_copy_XXXX() As above, except that the referenced data is copied into the object. archive_entry_XXXX() Returns the specified data. In the case of strings, a const-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.
SEE ALSOarchive_entry_acl(3), archive_entry_paths(3), archive_entry_perms(3), archive_entry_time(3), libarchive(3)
HISTORYThe libarchive library first appeared in FreeBSD 5.3.
AUTHORS -nosplit The libarchive library was written by Tim Kientzle ⟨kientzle@acm.org⟩. 0
Johanes Gumabo
Data Size : 11,033 byte
man-archive_entry.3Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 2 / 203,075
Visitor ID : :
Visitor IP : 18.226.98.244 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.