Blame doc/text/archive_entry.3.txt

Packit 08bd4c
ARCHIVE_ENTRY(3)	 BSD Library Functions Manual	      ARCHIVE_ENTRY(3)
Packit 08bd4c
Packit 08bd4c
NAME
Packit 08bd4c
     archive_entry_clear, archive_entry_clone, archive_entry_free,
Packit 08bd4c
     archive_entry_new, — functions for managing archive entry descriptions
Packit 08bd4c
Packit 08bd4c
LIBRARY
Packit 08bd4c
     Streaming Archive Library (libarchive, -larchive)
Packit 08bd4c
Packit 08bd4c
SYNOPSIS
Packit 08bd4c
     #include <archive_entry.h>
Packit 08bd4c
Packit 08bd4c
     struct archive_entry *
Packit 08bd4c
     archive_entry_clear(struct archive_entry *);
Packit 08bd4c
Packit 08bd4c
     struct archive_entry *
Packit 08bd4c
     archive_entry_clone(struct archive_entry *);
Packit 08bd4c
Packit 08bd4c
     void
Packit 08bd4c
     archive_entry_free(struct archive_entry *);
Packit 08bd4c
Packit 08bd4c
     struct archive_entry *
Packit 08bd4c
     archive_entry_new(void);
Packit 08bd4c
Packit 08bd4c
DESCRIPTION
Packit 08bd4c
     These functions create and manipulate data objects that represent entries
Packit 08bd4c
     within an archive.  You can think of a struct archive_entry as a heavy-
Packit 08bd4c
     duty version of struct stat: it includes everything from struct stat plus
Packit 08bd4c
     associated pathname, textual group and user names, etc.  These objects
Packit 08bd4c
     are used by libarchive(3) to represent the metadata associated with a
Packit 08bd4c
     particular entry in an archive.
Packit 08bd4c
Packit 08bd4c
   Create and Destroy
Packit 08bd4c
     There are functions to allocate, destroy, clear, and copy archive_entry
Packit 08bd4c
     objects:
Packit 08bd4c
     archive_entry_clear()
Packit 08bd4c
	     Erases the object, resetting all internal fields to the same
Packit 08bd4c
	     state as a newly-created object.  This is provided to allow you
Packit 08bd4c
	     to quickly recycle objects without thrashing the heap.
Packit 08bd4c
     archive_entry_clone()
Packit 08bd4c
	     A deep copy operation; all text fields are duplicated.
Packit 08bd4c
     archive_entry_free()
Packit 08bd4c
	     Releases the struct archive_entry object.
Packit 08bd4c
     archive_entry_new()
Packit 08bd4c
	     Allocate and return a blank struct archive_entry object.
Packit 08bd4c
Packit 08bd4c
   Function groups
Packit 08bd4c
     Due to high number of functions, the accessor functions can be found in
Packit 08bd4c
     man pages grouped by the purpose.
Packit 08bd4c
Packit 08bd4c
     archive_entry_acl(3)    Access Control List manipulation
Packit 08bd4c
Packit 08bd4c
     archive_entry_paths(3)  Path name manipulation
Packit 08bd4c
Packit 08bd4c
     archive_entry_perms(3)  User, group and mode manipulation
Packit 08bd4c
Packit 08bd4c
     archive_entry_stat(3)   Functions not in the other groups and copying
Packit 08bd4c
			     to/from struct stat.
Packit 08bd4c
Packit 08bd4c
     archive_entry_time(3)   Time field manipulation
Packit 08bd4c
Packit 08bd4c
     Most of the functions set or read entries in an object.  Such functions
Packit 08bd4c
     have one of the following forms:
Packit 08bd4c
     archive_entry_set_XXXX()
Packit 08bd4c
	     Stores the provided data in the object.  In particular, for
Packit 08bd4c
	     strings, the pointer is stored, not the referenced string.
Packit 08bd4c
     archive_entry_copy_XXXX()
Packit 08bd4c
	     As above, except that the referenced data is copied into the
Packit 08bd4c
	     object.
Packit 08bd4c
     archive_entry_XXXX()
Packit 08bd4c
	     Returns the specified data.  In the case of strings, a const-
Packit 08bd4c
	     qualified pointer to the string is returned.
Packit 08bd4c
     String data can be set or accessed as wide character strings or normal
Packit 08bd4c
     char strings.  The functions that use wide character strings are suffixed
Packit 08bd4c
     with _w.  Note that these are different representations of the same data:
Packit 08bd4c
     For example, if you store a narrow string and read the corresponding wide
Packit 08bd4c
     string, the object will transparently convert formats using the current
Packit 08bd4c
     locale.  Similarly, if you store a wide string and then store a narrow
Packit 08bd4c
     string for the same data, the previously-set wide string will be dis‐
Packit 08bd4c
     carded in favor of the new data.
Packit 08bd4c
Packit 08bd4c
SEE ALSO
Packit 08bd4c
     archive_entry_acl(3), archive_entry_paths(3), archive_entry_perms(3),
Packit 08bd4c
     archive_entry_time(3) libarchive(3),
Packit 08bd4c
Packit 08bd4c
HISTORY
Packit 08bd4c
     The libarchive library first appeared in FreeBSD 5.3.
Packit 08bd4c
Packit 08bd4c
AUTHORS
Packit 08bd4c
     The libarchive library was written by Tim Kientzle <kientzle@acm.org>.
Packit 08bd4c
Packit 08bd4c
BSD			       February 2, 2012 			   BSD