Blame doc/text/archive_entry.3.txt

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