Archive-Libarchive-XS
view release on metacpan or search on metacpan
lib/Archive/Libarchive/XS/Function.pod view on Meta::CPAN
Get the UID (user id) property for the archive entry.
=head2 archive_entry_uname
my $string = archive_entry_uname($entry);
Retrieve the uname for the archive entry object.
=head2 archive_entry_unset_atime
my $status = archive_entry_unset_atime($entry);
Removes the value for the atime property on the archive.
=head2 archive_entry_unset_birthtime
my $status = archive_entry_unset_birthtime($entry);
Unset the birthtime (creation time) property for the archive entry.
=head2 archive_entry_unset_ctime
my $status = archive_entry_set_ctime($entry);
Unsets the ctime (last time an inode property was changed) property for the archive entry.
=head2 archive_entry_unset_mtime
my $status = archive_entry_unset_mtime($entry);
Unset the mtime (modify time) for the entry object.
=head2 archive_entry_unset_size
my $status = archive_entry_unset_size($entry);
Unsets the size property for the archive entry.
=head2 archive_entry_xattr_add_entry
my $status = archive_entry_xattr_add_entry($entry, $name, $buffer);
Add an extended attribute (xattr) to the archive entry.
=head2 archive_entry_xattr_clear
my $status = archive_entry_xattr_clear($entry);
Remove all extended attributes (xattr) to the archive entry.
=head2 archive_entry_xattr_count
my $count = archive_entry_xattr_count($entry);
Returns the number of extended attributes (xattr) for the archive entry.
=head2 archive_entry_xattr_next
my $status = archive_entry_xattr_next($entry, $name, $buffer);
Retrieve the extended attribute (xattr) at the extended attributes (xattr) cursor, and
increment the cursor. If the cursor is already at the end, it will return ARCHIVE_WARN,
$name and $buffer will be undef. Here is an example which loops through all extended
attributes (xattr) for an archive entry:
archive_entry_xattr_reset($entry);
while(my $r = archive_entry_xattr_next($entry, my $name, my $value))
{
last if $r == ARCHIVE_WARN;
die archive_error_string($a) if $r < ARCHIVE_OK;
# do something with $name and $value
}
=head2 archive_entry_xattr_reset
my $status = archive_entry_xattr_reset($entry);
Reset the internal extended attributes (xattr) cursor for the archive entry.
=head2 archive_errno
my $errno = archive_errno($archive);
Returns a numeric error code indicating the reason for the most
recent error return.
Return type is an errno integer value.
=head2 archive_error_string
my $string = archive_error_string($archive);
Returns a textual error message suitable for display. The error
message here is usually more specific than that obtained from
passing the result of C<archive_errno> to C<strerror>.
Returns C<undef> if there is not error.
=head2 archive_file_count
my $count = archive_file_count($archive);
Returns a count of the number of files processed by this archive object. The count
is incremented by calls to C<archive_write_header> or C<archive_read_next_header>.
=head2 archive_filter_bytes
my $count = archive_filter_bytes($archive, $level);
Byte count for the given filter level. See L<archive_filter_count|Archive::Libarchive::XS::Function#archive_filter_count> for details of the
level numbering.
=head2 archive_filter_code
my $code = archive_filter_code($archive, $level);
Returns a numeric code identifying the indicated filter. See L<archive_filter_count|Archive::Libarchive::XS::Function#archive_filter_count>
for details of the level numbering.
=head2 archive_filter_count
my $count = archive_filter_count($archive);
Returns the number of filters in the current pipeline. For read archive handles, these
filters are added automatically by the automatic format detection. For write archive
handles, these filters are added by calls to the various C<archive_write_add_filter_XXX>
functions. Filters in the resulting pipeline are numbered so that filter 0 is the filter
closest to the format handler. As a convenience, functions that expect a filter number
will accept -1 as a synonym for the highest-numbered filter. For example, when reading
a uuencoded gzipped tar archive, there are three filters: filter 0 is the gunzip filter,
filter 1 is the uudecode filter, and filter 2 is the pseudo-filter that wraps the archive
read functions. In this case, requesting C<archive_position(a,(-1))> would be a synonym
for C<archive_position(a,(2))> which would return the number of bytes currently read from
the archive, while C<archive_position(a,(1))> would return the number of bytes after
uudecoding, and C<archive_position(a,(0))> would return the number of bytes after decompression.
=head2 archive_filter_name
my $string = archive_filter_name($archive, $level);
( run in 1.576 second using v1.01-cache-2.11-cpan-99c4e6809bf )