from small one page howto to huge articles all in one place
 

search text in:





Poll
Which kernel version do you use?





poll results

Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

90761

userrating:

average rating: 1.7 (82 votes) (1=very good 6=terrible)


May 25th. 2007:
Words

486

Views

206650

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

88213

userrating:

average rating: 1.3 (28 votes) (1=very good 6=terrible)


April, 26th. 2006:

Druckversion
You are here: manpages





ARCHIVE_ENTRY

Section: C Library Functions (3)
Index Return to Main Contents

BSD mandoc
 

NAME

archive_entry_clear archive_entry_clone archive_entry_free archive_entry_new - functions for managing archive entry descriptions  

LIBRARY

Streaming Archive Library (libarchive, -larchive)  

SYNOPSIS

In archive_entry.h Ft struct archive_entry * Fn archive_entry_clear struct archive_entry * Ft struct archive_entry * Fn archive_entry_clone struct archive_entry * Ft void Fn archive_entry_free struct archive_entry * Ft struct archive_entry * Fn archive_entry_new void  

DESCRIPTION

These 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 Destroy

There are functions to allocate, destroy, clear, and copy archive_entry objects:

Fn 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.
Fn archive_entry_clone
A deep copy operation; all text fields are duplicated.
Fn archive_entry_free
Releases the struct archive_entry object.
Fn archive_entry_new
Allocate and return a blank struct archive_entry object.

 

Function groups

Due to high number of functions, the accessor functions can be found in man pages grouped by the purpose.

archive_entry_acl3
Access Control List manipulation
archive_entry_paths3
Path name manipulation
archive_entry_perms3
User, group and mode manipulation
archive_entry_stat3
Functions not in the other groups and copying to/from Vt struct stat .
archive_entry_time3
Time field manipulation

Most of the functions set or read entries in an object. Such functions have one of the following forms:

Fn archive_entry_set_XXXX
Stores the provided data in the object. In particular, for strings, the pointer is stored, not the referenced string.
Fn archive_entry_copy_XXXX
As above, except that the referenced data is copied into the object.
Fn 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 ALSO

archive(3), archive_entry_acl3, archive_entry_paths3, archive_entry_perms3, archive_entry_time3  

HISTORY

The libarchive library first appeared in Fx 5.3 .  

AUTHORS

An -nosplit The libarchive library was written by An Tim Kientzle Aq kientzle@acm.org .


 

Index

NAME
LIBRARY
SYNOPSIS
DESCRIPTION
Create and Destroy
Function groups
SEE ALSO
HISTORY
AUTHORS


Please read "Why adblockers are bad".



Other free services
toURL.org
Shorten long
URLs to short
links like
http://tourl.org/2
tourl.org
.
Reverse DNS lookup
Find out which hostname(s)
resolve to a
given IP or other hostnames for the server
www.reversednslookup.org
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2013 Sascha Nitsch Unternehmensberatung UG(haftungsbeschränkt)
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 3.5 ms