Archive-Libarchive-XS
view release on metacpan or search on metacpan
lib/Archive/Libarchive/XS/Function.pod view on Meta::CPAN
=head2 archive_entry_atime_nsec
my $atime = archive_entry_atime_nsec($entry);
Returns the access time (nanoseconds).
=head2 archive_entry_birthtime
my $birthtime = archive_entry_birthtime($entry);
Returns the birthtime (creation time) for the archive entry.
=head2 archive_entry_birthtime_is_set
my $bool = archive_entry_birthtime_is_set($entry);
Returns true if the birthtime (creation time) property has been set on the archive entry.
=head2 archive_entry_birthtime_nsec
my $birthtime = archive_entry_birthtime_nsec($entry);
Returns the birthtime (creation time) for the archive entry.
=head2 archive_entry_clear
my $status = archive_entry_clear($entry);
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.
=head2 archive_entry_clone
my $entry1 = archive_entry_clone($entry2);
A deep copy operation; all text fields are duplicated.
=head2 archive_entry_copy_fflags_text
my $status = archive_entry_copy_fflags_text($entry, $string);
Sets the fflags_text property for the archive entry object.
This is an alias for L<archive_entry_set_fflags_text|Archive::Libarchive::XS::Function#archive_entry_set_fflags_text>.
=head2 archive_entry_copy_mac_metadata
An Alias for L<archive_entry_set_mac_metadata|Archive::Libarchive::XS::Function#archive_entry_set_mac_metadata>.
=head2 archive_entry_copy_sourcepath
my $status = archive_entry_set_sourcepath($entry, $sourcepath);
Sets the sourcepath property for the archive entry object.
This is an alias for archive_entry_set_sourcepath.
=head2 archive_entry_copy_stat
my $status = archive_entry_stat($entry, $dev, $ino, $mode, $nlink, $uid, $gid, $rdev, $atime, $mtime, $ctime);
Converts the various fields in the format used by L<stat|perlfunc#stat> to the fields store in the archive entry.
The fields C<$blksize>, C<$blocks> supported by L<stat|perlfunc#stat>, are not supported by this function.
This is an alias for L<archive_entry_set_stat|Archive::Libarchive::XS::Function#archive_entry_set_stat>.
=head2 archive_entry_ctime
my $ctime = archive_entry_ctime($entry);
Returns the ctime (last time an inode property was changed) property for the archive entry.
=head2 archive_entry_ctime_is_set
my $bool = archive_entry_ctime_is_set($entry);
Returns true if the ctime (last time an inode property was changed) property has been set
on the archive entry.
=head2 archive_entry_ctime_nsec
my $ctime = archive_entry_ctime_nsec($entry);
Returns the ctime (last time an inode property was changed) property (nanoseconds).
=head2 archive_entry_dev
my $device = archive_entry_dev($entry);
Returns the device property for the archive entry.
The device property is an integer identifying the device, and is used by
C<archive_entry_linkify> (along with the ino64 property) to find hardlinks.
=head2 archive_entry_dev_is_set
my $bool = archive_entry_dev_is_set($entry);
Returns true if the device property on the archive entry is set.
The device property is an integer identifying the device, and is used by
C<archive_entry_linkify> (along with the ino64 property) to find hardlinks.
=head2 archive_entry_devmajor
my $device_major = archive_entry_devmajor($entry);
Returns the device major property for the archive entry.
=head2 archive_entry_devminor
my $device_minor = archive_entry_devminor($entry);
Returns the device minor property for the archive entry.
=head2 archive_entry_fflags
my $status = archive_entry_fflags($entry, $set, $clear);
Gets the file flag properties for the archive entry. The
C<$set> and C<$clear> arguments are updated to return their
values.
=head2 archive_entry_fflags_text($entry)
my $string = archive_entry_fflags_text($entry);
Returns the file flags property as a string.
=head2 archive_entry_filetype
my $code = archive_entry_filetype($entry);
Gets the filetype of the archive entry. Code should be one of
=over 4
=item AE_IFMT
=item AE_IFREG
=item AE_IFLNK
=item AE_IFSOCK
=item AE_IFCHR
=item AE_IFBLK
=item AE_IFDIR
=item AE_IFIFO
=back
=head2 archive_entry_free
my $status = archive_entry_free($entry);
Releases the struct archive_entry object.
=head2 archive_entry_gid
my $gid = archive_entry_gid($entry);
Returns the group id property for the archive entry.
=head2 archive_entry_gname
my $string = archive_entry_gname($entry);
Retrieve the gname for the archive entry object.
=head2 archive_entry_hardlink
my $string = archive_entry_hardlink($entry);
Retrieve the hardlink for the archive entry object.
=head2 archive_entry_ino
my $ino = archive_entry_ino($entry);
Get the inode property for the entry.
The inode property is an integer identifying the file within a filesystem
and is used by C<archive_entry_linkify> (along with the dev property) to
find hardlinks.
This actually uses the libarchive C<archive_entry_set_ino64> function
(in libarchive C<archive_entry_set_ino> is a legacy interface).
=head2 archive_entry_ino_is_set
my $bool = archive_entry_ino_is_set($entry);
Returns true if the inode property for the entry has been set.
=head2 archive_entry_linkify
my $status = archive_entry_linkify($linkresolver, $entry1, $entry2)
Behavior depends on the link resolver strategy
(L<archive_entry_linkresolver_set_strategy|Archive::Libarchive::XS::Function#archive_entry_linkresolver_set_strategy>). See libarchive documentation
(C<archive_entry_linkify(3)>) for details.
Note that $entry1 and $entry2 are passed by value and may be changed or
set to undef after this function is called.
=head2 archive_entry_linkresolver_free
my $status = archive_entry_linkresolver_free($linkresolver);
Deallocates a link resolver instance.
All deferred entries are flushed and the internal storage is freed.
=head2 archive_entry_linkresolver_new
my $linkresolver = archive_entry_linkresolver_new();
Allocate a new link resolver.
=head2 archive_entry_linkresolver_set_strategy
lib/Archive/Libarchive/XS/Function.pod view on Meta::CPAN
The device property is an integer identifying the device, and is used by
C<archive_entry_linkify> (along with the ino64 property) to find hardlinks.
=head2 archive_entry_set_devmajor
my $status = archive_entry_set_devmajor($entry, $devmajor);
Sets the device major property for the archive entry.
The device property is an integer identifying the device, and is used by
C<archive_entry_linkify> (along with the ino64 property) to find hardlinks.
=head2 archive_entry_set_devminor
my $status = archive_entry_set_devminor($entry, $devminor);
Sets the device minor property for the archive entry.
The device property is an integer identifying the device, and is used by
C<archive_entry_linkify> (along with the ino64 property) to find hardlinks.
=head2 archive_entry_set_fflags
my $status = archive_entry_set_fflags($entry, $set, $clear);
Sets the file flag properties for the archive entry.
=head2 archive_entry_set_fflags_text
my $status = archive_entry_set_fflags_text($entry, $string);
Sets the fflags_text property for the archive entry object.
=head2 archive_entry_set_filetype
my $status = archive_entry_set_filetype($entry, $code);
Sets the filetype of the archive entry. Code should be one of
=over 4
=item AE_IFMT
=item AE_IFREG
=item AE_IFLNK
=item AE_IFSOCK
=item AE_IFCHR
=item AE_IFBLK
=item AE_IFDIR
=item AE_IFIFO
=back
=head2 archive_entry_set_gid
my $status = archive_entry_set_gid($gid).
Sets the group id property for the archive entry.
=head2 archive_entry_set_gname
my $status = archive_entry_set_gname($entry, $string)
Sets the gname for the archive entry object.
=head2 archive_entry_set_hardlink
my $status = archive_entry_set_hardlink($entry, $string)
Sets the hardlink for the archive entry object.
=head2 archive_entry_set_ino
my $status = archive_entry_set_ino($entry, $ino);
Set the inode property for the entry.
The inode property is an integer identifying the file within a filesystem
and is used by C<archive_entry_linkify> (along with the dev property) to
find hardlinks.
This actually uses the libarchive C<archive_entry_set_ino64> function
(in libarchive C<archive_entry_set_ino> is a legacy interface).
=head2 archive_entry_set_link
my $status = archive_entry_set_link($entry, $string);
Set symlink if symlink is already set, else set hardlink.
=head2 archive_entry_set_mac_metadata
my $status = archive_entry_set_mac_metadata($entry, $buffer);
The mac_metadata property is Storage for Mac OS-specific
AppleDouble metadata information. Apple-format tar files
store a separate binary blob containing encoded metadata
with ACL, extended attributes, etc. This provides a place
to store that blob.
This method sets the blob. The C name for this function is
C<archive_entry_copy_mac_metadata>.
=head2 archive_entry_set_mode
my $status = archive_entry_set_mode($entry, $mode);
Set a combination of file type and permission and provide the equivalent of st_mode.
use of L<archive_entry_filetype|Archive::Libarchive::XS::Function#archive_entry_filetype> and L<archive_entry_perm|Archive::Libarchive::XS::Function#archive_entry_perm> for getting and
L<archive_entry_set_filetype|Archive::Libarchive::XS::Function#archive_entry_set_filetype> and L<archive_entry_set_perm|Archive::Libarchive::XS::Function#archive_entry_set_perm> for setting is
recommended.
=head2 archive_entry_set_mtime
my $status = archive_entry_set_mtime($entry, $sec, $nanosec);
Set the mtime (modify time) for the entry object.
=head2 archive_entry_set_nlink
my $status = archive_entry_set_nlink($entry, $nlink);
Sets the number of hardlinks for the entry.
=head2 archive_entry_set_pathname
my $status = archive_entry_set_pathname($entry, $string)
Sets the pathname for the archive entry object.
=head2 archive_entry_set_perm
my $status = archive_entry_set_perm($entry, $perm);
Set the permission bits for the entry. This is the usual UNIX octal permission thing.
=head2 archive_entry_set_rdev
my $status = archive_entry_set_rdev($entry, $device);
Set the rdev property for the archive entry.
=head2 archive_entry_set_rdevmajor
my $status = archive_entry_set_rdevmajor($entry, $major);
Set the major component of the rdev property for the archive entry.
=head2 archive_entry_set_rdevminor
my $status = archive_entry_set_rdevminor($entry, $minor);
Sets the minor component of the rdev property for the archive entry.
=head2 archive_entry_set_size
my $status = archive_entry_set_size($entry, $size);
Sets the size property for the archive entry.
=head2 archive_entry_set_sourcepath
my $status = archive_entry_set_sourcepath($entry, $sourcepath);
Sets the sourcepath property for the archive entry object.
=head2 archive_entry_set_stat
my $status = archive_entry_stat($entry, $dev, $ino, $mode, $nlink, $uid, $gid, $rdev, $atime, $mtime, $ctime);
Converts the various fields in the format used by L<stat|perlfunc#stat> to the fields store in the archive entry.
The fields C<$blksize>, C<$blocks> supported by L<stat|perlfunc#stat>, are not supported by this function.
=head2 archive_entry_set_symlink
my $status = archive_entry_set_symlink($entry, $string)
Sets the symlink for the archive entry object.
=head2 archive_entry_set_uid
my $status = archive_entry_set_uid($entry, $uid);
Set the UID (user id) property for the archive entry.
=head2 archive_entry_set_uname
my $status = archive_entry_set_uname($entry, $string)
Sets the uname for the archive entry object.
=head2 archive_entry_size($entry)
my $size = archive_entry_size($entry);
Returns the size of the entry in bytes.
=head2 archive_entry_size_is_set
my $bool = archive_entry_size_is_set($entry)
Returns true if the size property for the archive entry has been set.
=head2 archive_entry_sourcepath
my $sourcepath = archive_entry_sourcepath($entry);
Gets the sourcepath property for the archive entry object.
=head2 archive_entry_sparse_add_entry
my $status = archive_entry_sparse_add_entry($entry, $offset, $length)
Add a sparse region to the entry.
=head2 archive_entry_sparse_clear
my $status = archive_entry_sparse_clear($entry)
Remove all sparse region from the archive entry.
=head2 archive_entry_sparse_count
my $count = archive_entry_sparse_count($entry);
Return the number of sparse entries in the entry.
=head2 archive_entry_sparse_next
my $status = archive_entry_sparse_next($entry, $offset, $length);
Return the next sparse region for the entry. Example:
archive_entry_sparse_reset($entry);
while(my $r = archive_entry_sparse_next($entry, $offset, $length))
{
last if $r == ARCHIVE_WARN;
die archive_error_string($a) if $r < ARCHIVE_OK;
# do something with $name and $value
}
=head2 archive_entry_sparse_reset
my $count = archive_entry_sparse_reset($entry);
Reset the internal sparse region iterator for the entry (see L<archive_entry_sparse_next|Archive::Libarchive::XS::Function#archive_entry_sparse_next> for an example).
=head2 archive_entry_stat
my($dev, $ino, $mode, $nlink, $uid, $gid, $rdev, $atime, $mtime, $ctime) = archive_entry_stat($entry);
Converts the various fields stored in the archive entry to the format used by L<stat|perlfunc#stat>.
The fields C<$blksize>, C<$blocks> supported by L<stat|perlfunc#stat>, are not supported by this function.
=head2 archive_entry_strmode
my $strmode = archive_entry_strmode($entry);
Returns a string representation of the archive entry's permission mode,
a la the Unix C<ls> command (example: a mode of C<0644> should come back
as C<-rw-r--r-->.
=head2 archive_entry_symlink
my $string = archive_entry_symlink($entry);
Retrieve the symlink for the archive entry object.
=head2 archive_entry_uid
my $uid = archive_entry_uid($entry);
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.
lib/Archive/Libarchive/XS/Function.pod view on Meta::CPAN
my $code = archive_format($archive);
Returns a numeric code indicating the format of the current archive
entry. This value is set by a successful call to
C<archive_read_next_header>. Note that it is common for this value
to change from entry to entry. For example, a tar archive might
have several entries that utilize GNU tar extensions and several
entries that do not. These entries will have different format
codes.
=head2 archive_format_name
my $string = archive_format_name($archive);
A textual description of the format of the current entry.
=head2 archive_match_exclude_entry
my $status = archive_match_exclude_entry($archive, $flag, $entry);
Add exclusion entry
=head2 archive_match_exclude_pattern
my $status = archive_match_exclude_pattern($archive, $pattern);
Add exclusion pathname pattern.
=head2 archive_match_exclude_pattern_from_file
my $status = archive_match_exclude_pattern_from_file($archive, $filename, $null_separator);
Add exclusion pathname pattern from file.
=head2 archive_match_excluded
my $bool = archive_match_excluded($archive, $entry);
Test if archive_entry is excluded. This is a convenience function. This is the
same as calling all L<archive_match_path_excluded|Archive::Libarchive::XS::Function#archive_match_path_excluded>, L<archive_match_time_excluded|Archive::Libarchive::XS::Function#archive_match_time_excluded>
and L<archive_match_owner_excluded|Archive::Libarchive::XS::Function#archive_match_owner_excluded>.
=head2 archive_match_free
my $status = archive_match_free($archive);
Free the resources previously allocated with L<archive_match_new|Archive::Libarchive::XS::Function#archive_match_new>.
=head2 archive_match_include_date
my $status = archive_match_include_date($archive, $flag, $date_string);
Set inclusion time by a date string
=head2 archive_match_include_file_time
my $status = archive_match_include_file_time($archive, $flag, $pathname);
Set inclusion time by a particular file
=head2 archive_match_include_gid
my $status = archive_match_include_gid($archive, $gid);
The match object $archive should match entries with the given $gid
=head2 archive_match_include_gname
my $status = archive_match_include_gname($archive, $gname);
The match object $archive should match entries with the given group name
=head2 archive_match_include_pattern
my $status = archive_match_include_pattern_from_file($archive, $pattern);
Add inclusion pathname pattern
=head2 archive_match_include_pattern_from_file
my $status = archive_match_include_pattern_from_file($archive, $filename, $null_separator);
Add inclusion pathname pattern from file
=head2 archive_match_include_time
my $status = archive_match_include_time($archive, $flag, $sec, $nsec);
Set inclusion time
=head2 archive_match_include_uid
my $status = archive_match_include_uid($archive, $uid);
The match object $archive should match entries with the given $uid
=head2 archive_match_include_uname
my $status = archive_match_include_uname($archive, $uname);
The match object $archive should match entries with the given user name
=head2 archive_match_new
my $archive = archive_match_new();
Allocates and initializes a archive object suitable for reading and matching with an archive.
=head2 archive_match_owner_excluded
my $bool = archive_match_owner_excluded($archive, $entry);
Test if a file is excluded by its uid, gid, user name or group name.
=head2 archive_match_path_excluded
my $bool = archive_match_path_excluded($archive, $entry);
Test if pathname is excluded.
=head2 archive_match_path_unmatched_inclusions
my $count = archive_match_path_unmatched_inclusions($archive);
Return the amount number of unmatched inclusion patterns
=head2 archive_match_path_unmatched_inclusions_next
my $status = archive_match_path_unmatched_inclusions_next($archive, $pattern);
Fetch the next unmatched pattern.
=head2 archive_match_time_excluded
my $bool = archive_match_time_excluded($archive, $entry);
Test if a file is excluded by its time stamp.
=head2 archive_perl_codeset
my $string = archive_perl_codeset();
Returns the name of the "codeset" (character encoding, example: "UTF-8" for
UTF-8 or "ANSI_X3.4-1968" for ASCII) of the currently configured locale.
=head2 archive_perl_utf8_mode
my $bool = archive_perl_utf8_mode();
Returns true if the internal "codeset" used by libarchive is UTF-8.
=head2 archive_read_append_filter
my $status = archive_read_append_filter($archive, $code)
Add the given filter by its code.
The C<_append_> form is to manually set the format and filters to be used. This is useful
to bypass the bidding process when the format and filters to use is known in advance.
=head2 archive_read_append_filter_program
my $status = archive_read_append_filter_program($archive, $command);
Data is feed through the specified external program before being
dearchived. Note that this disables automatic detection of the
compression format, so it makes no sense to specify this in
conjunction with any other decompression option.
The C<_append_> form is to manually set the format and filters to be used. This is useful
to bypass the bidding process when the format and filters to use is known in advance.
=head2 archive_read_append_filter_program_signature
lib/Archive/Libarchive/XS/Function.pod view on Meta::CPAN
my $status = archive_read_data_skip($archive);
A convenience function that repeatedly calls C<archive_read_data> to skip
all of the data for this archive entry.
=head2 archive_read_disk_can_descend
my $bool = archive_read_disk_can_descend($archive);
Undocumented libarchive function.
=head2 archive_read_disk_current_filesystem
my $status = archive_read_disk_current_filesystem($archive);
Undocumented libarchive function.
=head2 archive_read_disk_current_filesystem_is_remote
my $status = archive_read_disk_current_filesystem_is_remote($archive);
Undocumented libarchive function.
=head2 archive_read_disk_current_filesystem_is_synthetic
my $status = archive_read_disk_current_filesystem_is_synthetic($archive);
Undocumented libarchive function.
=head2 archive_read_disk_descend
my $status = archive_read_disk_descend($archive);
Request that current entry be visited. If you invoke it on every
directory, you'll get a physical traversal. This is ignored if the
current entry isn't a directory or a link to a directory. So, if
you invoke this on every returned path, you'll get a full logical
traversal.
=head2 archive_read_disk_entry_from_file
my $status = archive_read_disk_entry_from_file($archive, $entry, $fh, undef);
my $status = archive_read_disk_entry_from_file($archive, $entry, $fh, \@stat);
my $status = archive_read_disk_entry_from_file($archive, $entry, undef, \@stat);
Populates a struct archive_entry object with information about a particular file. The archive_entry object must have already been created with L<archive_entry_new|Archive::Libarchive::XS::Function#archive_entry_new> and at least one of the
source path or path fields must already be set. (If both are set, the source path will be used.)
Information is read from disk using the path name from the struct archive_entry object. If a file handle ($fh) is provided, some information will be obtained using that file handle, on
platforms that support the appropriate system calls.
Note: The C API supports passing in a stat structure for some performance benefits. Currently this is unsupported in the Perl version, and you must pass undef in as the forth argument,
for possible future compatibility.
Where necessary, user and group ids are converted to user and group names using the currently registered lookup functions above. This affects the file ownership fields and ACL values in the
struct archive_entry object.
=head2 archive_read_disk_gname
my $string = archive_read_disk_gname($archive, $gid);
Returns a group name given a gid value. By default always
returns C<undef>.
=head2 archive_read_disk_new
my $archive = archive_read_disk_new();
Allocates and initializes an archive object suitable for reading object information
from disk.
=head2 archive_read_disk_open
my $status = archive_read_disk_open($archive, $string)
Allocates and initializes an archive object suitable for reading objects from disk.
=head2 archive_read_disk_set_atime_restored
my $status = archive_read_disk_set_atime_restored($archive);
Request that the access time of the entry visited by traversal be restored.
=head2 archive_read_disk_set_behavior
my $status = archive_read_disk_set_behavior($archive, $flags);
Undocumented libarchive function.
=head2 archive_read_disk_set_gname_lookup
my $status = archive_read_disk_set_gname_lookup($archive, $data, $lookup_callback, $cleanup_callback);
Register a callback for the lookup of GID from group names. In order to deregister call
C<archive_read_disk_set_gname_lookup> with both callback functions set to C<undef>.
See L<Archive::Libarchive::XS::Callback> for calling conventions for the lookup and cleanup callbacks.
=head2 archive_read_disk_set_standard_lookup
my $status = archive_read_disk_set_standard_lookup($archive);
This convenience function installs a standard set of user and group name lookup functions.
These functions use C<getpwuid> and C<getgrgid> to convert ids to names, defaulting to C<undef>.
if the names cannot be looked up. These functions also implement a simple memory cache to
reduce the number of calls to C<getpwuid> and C<getgrgid>.
=head2 archive_read_disk_set_symlink_hybrid
my $status = archive_read_disk_set_symlink_hybrid($archive);
This sets the mode used for handling symbolic links. The "hybrid" mode currently
behaves identically to the "logical" mode.
=head2 archive_read_disk_set_symlink_logical
my $status = archive_read_disk_set_symlink_logical($archive);
This sets the mode used for handling symbolic links. The "logical" mode follows
all symbolic links.
=head2 archive_read_disk_set_symlink_physical
my $status = archive_read_disk_set_symlink_physical($archive);
This sets the mode used for handling symbolic links. The "physical" mode does not
follow any symbolic links.
=head2 archive_read_disk_set_uname_lookup
my $status = archive_read_disk_set_uname_lookup($archive, $data, $lookup_callback, $cleanup_callback);
Register a callback for the lookup of UID from user names. In order to deregister call
C<archive_read_disk_setugname_lookup> with both callback functions set to C<undef>.
See L<Archive::Libarchive::XS::Callback> for calling conventions for the lookup and cleanup callbacks.
=head2 archive_read_disk_uname
my $string = archive_read_disk_uname($archive, $gid);
Returns a user name given a uid value. By default always
returns C<undef>.
=head2 archive_read_extract
my $status = archive_read_extract($archive, $entry, $flags);
A convenience function that wraps the corresponding archive_write_disk interfaces. The first call to L<archive_read_extract|Archive::Libarchive::XS::Function#archive_read_extract> creates a restore object using L<archive_write_disk_new|Archive::Liba...
L<archive_write_disk_set_standard_lookup|Archive::Libarchive::XS::Function#archive_write_disk_set_standard_lookup>, then transparently invokes L<archive_write_disk_set_options|Archive::Libarchive::XS::Function#archive_write_disk_set_options>, L<archi...
create the entry on disk and copy data into it. The flags argument is passed unmodified to L<archive_write_disk_set_options|Archive::Libarchive::XS::Function#archive_write_disk_set_options>.
=head2 archive_read_extract2
my $status = archive_read_extract2($archive1, $entry, $archive2);
This is another version of archive_read_extract() that allows you to provide your own restore object. In particular, this allows you to override the standard lookup functions using
L<archive_write_disk_set_group_lookup|Archive::Libarchive::XS::Function#archive_write_disk_set_group_lookup>, and L<archive_write_disk_set_user_lookup|Archive::Libarchive::XS::Function#archive_write_disk_set_user_lookup>. Note that L<archive_read_ex...
L<archive_write_disk_set_options|Archive::Libarchive::XS::Function#archive_write_disk_set_options> to set the restore options yourself.
=head2 archive_read_extract_set_skip_file
my $status = archive_read_extract_set_skip_file($archive, $dev, $ino);
Record the dev/ino of a file that will not be written. This is
generally set to the dev/ino of the archive being read.
=head2 archive_read_free
my $status = archive_read_free($archive);
Invokes L<archive_read_close|Archive::Libarchive::XS::Function#archive_read_close> if it was not invoked manually, then
release all resources.
=head2 archive_read_header_position
my $offset = archive_read_header_position($archive);
Retrieve the byte offset in UNCOMPRESSED data where last-read
header started.
=head2 archive_read_new
my $archive = archive_read_new();
Allocates and initializes a archive object suitable for reading from an archive.
Returns an opaque archive which may be a perl style object, or a C pointer
(depending on the implementation), either way, it can be passed into
any of the read functions documented here with an C<$archive> argument.
=head2 archive_read_next_header
my $status = archive_read_next_header($archive, $entry);
Read the header for the next entry and return an entry object
Returns an opaque archive which may be a perl style object, or a C pointer
(depending on the implementation), either way, it can be passed into
any of the functions documented here with an <$entry> argument.
=head2 archive_read_next_header2
lib/Archive/Libarchive/XS/Function.pod view on Meta::CPAN
=head2 archive_write_add_filter_lzma
my $status = archive_write_add_filter_lzma($archive);
Add lzma filter
=head2 archive_write_add_filter_lzop
my $status = archive_write_add_filter_lzop($archive);
Add lzop filter
=head2 archive_write_add_filter_none
my $status = archive_write_add_filter_none($archive);
Add none filter
=head2 archive_write_add_filter_program
my $status = archive_write_add_filter_program($archive, $cmd);
The archive will be fed into the specified compression program.
The output of that program is blocked and written to the client
write callbacks.
=head2 archive_write_add_filter_uuencode
my $status = archive_write_add_filter_uuencode($archive);
Add uuencode filter
=head2 archive_write_add_filter_xz
my $status = archive_write_add_filter_xz($archive);
Add xz filter
=head2 archive_write_close
my $status = archive_write_close($archive)
Complete the archive and invoke the close callback.
=head2 archive_write_data
my $status = archive_write_data($archive, $buffer);
Write data corresponding to the header just written.
This function returns the number of bytes actually written, or -1 on error.
=head2 archive_write_data_block
my $count_or_status = archive_write_data_block($archive, $buffer, $offset);
Writes the buffer to the current entry in the given archive
starting at the given offset.
=head2 archive_write_disk_gid
my $int64 = archive_write_disk_gid($archive, $string, $int64);
Undocumented libarchive function.
=head2 archive_write_disk_new
my $archive = archive_write_disk_new();
Allocates and initializes a struct archive object suitable for
writing objects to disk.
Returns an opaque archive which may be a perl style object, or a C pointer
(Depending on the implementation), either way, it can be passed into
any of the write functions documented here with an C<$archive> argument.
=head2 archive_write_disk_set_group_lookup
my $status = archive_write_disk_set_group_lookup($archive, $data, $lookup_callback, $cleanup_callback);
Register a callback for the lookup of group names from group id numbers. In order to deregister
call C<archive_write_disk_set_group_lookup> with both callback functions set to C<undef>.
See L<Archive::Libarchive::XS::Callback> for calling conventions for the lookup and cleanup callbacks.
=head2 archive_write_disk_set_options
my $status = archive_write_disk_set_options($archive, $flags);
The options field consists of a bitwise OR of one or more of the
following values:
=over 4
=item ARCHIVE_EXTRACT_OWNER
=item ARCHIVE_EXTRACT_PERM
=item ARCHIVE_EXTRACT_TIME
=item ARCHIVE_EXTRACT_NO_OVERWRITE
=item ARCHIVE_EXTRACT_UNLINK
=item ARCHIVE_EXTRACT_ACL
=item ARCHIVE_EXTRACT_FFLAGS
=item ARCHIVE_EXTRACT_XATTR
=item ARCHIVE_EXTRACT_SECURE_SYMLINKS
=item ARCHIVE_EXTRACT_SECURE_NODOTDOT
=item ARCHIVE_EXTRACT_SPARSE
=back
=head2 archive_write_disk_set_skip_file
my $status = archive_write_disk_set_skip_file($archive, $device, $inode);
( run in 1.068 second using v1.01-cache-2.11-cpan-d7f47b0818f )