Archive-Libarchive-XS
view release on metacpan or search on metacpan
lib/Archive/Libarchive/XS.xs view on Meta::CPAN
struct archive_entry *entry
#endif
=head2 archive_entry_mtime_nsec
my $mtime = archive_entry_mtime_nsec($entry);
Gets the mtime property (modify time) property for the archive entry (nanoseconds).
=cut
#if HAS_archive_entry_mtime_nsec
long
archive_entry_mtime_nsec(entry)
struct archive_entry *entry
#endif
=head2 archive_entry_ctime_nsec
my $ctime = archive_entry_ctime_nsec($entry);
Returns the ctime (last time an inode property was changed) property (nanoseconds).
=cut
#if HAS_archive_entry_ctime_nsec
long
archive_entry_ctime_nsec(entry)
struct archive_entry *entry
#endif
=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.
=cut
#if HAS_archive_entry_dev_is_set
int
archive_entry_dev_is_set(entry)
struct archive_entry *entry
#endif
=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.
=cut
#if HAS_archive_entry_fflags
int
archive_entry_fflags(entry, sv_set, sv_clear)
struct archive_entry *entry
SV *sv_set
SV *sv_clear
CODE:
SV *tmp;
unsigned long set;
unsigned long clear;
archive_entry_fflags(entry, &set, &clear);
tmp = sv_2mortal(newSVuv(set));
sv_setsv(sv_set, tmp);
tmp = sv_2mortal(newSVuv(clear));
sv_setsv(sv_clear, tmp);
RETVAL = ARCHIVE_OK;
OUTPUT:
sv_set
sv_clear
RETVAL
#endif
=head2 archive_entry_set_fflags
my $status = archive_entry_set_fflags($entry, $set, $clear);
Sets the file flag properties for the archive entry.
=cut
#if HAS_archive_entry_set_fflags
int
archive_entry_set_fflags(entry, set, clear)
struct archive_entry *entry
unsigned long set
unsigned long clear
CODE:
archive_entry_set_fflags(entry, set, clear);
RETVAL = ARCHIVE_OK;
OUTPUT:
RETVAL
#endif
=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.
lib/Archive/Libarchive/XS.xs view on Meta::CPAN
=head2 archive_perl_utf8_mode
my $bool = archive_perl_utf8_mode();
Returns true if the internal "codeset" used by libarchive is UTF-8.
=cut
#if HAS_archive_perl_utf8_mode
int
archive_perl_utf8_mode()
#endif
=head2 archive_entry_acl
my $acl = archive_entry_acl($entry);
Return an opaque ACL object.
There's not yet anything you can actually do with this...
=cut
#if HAS_archive_entry_acl
struct archive_acl *
archive_entry_acl(entry)
struct archive_entry *entry
#endif
=head2 archive_entry_acl_clear
my $status = archive_entry_acl_clear($entry);
removes all ACL entries and resets the enumeration pointer.
=cut
#if HAS_archive_entry_acl_clear
int
archive_entry_acl_clear(entry)
struct archive_entry *entry
CODE:
archive_entry_acl_clear(entry);
RETVAL = ARCHIVE_OK;
OUTPUT:
RETVAL
#endif
=head2 archive_entry_acl_add_entry
my $status = archive_entry_acl_add_entry($entry, $type, $permset, $tag, $qual, $name);
Adds a single ACL entry. For the access ACL and non-extended principals, the classic
UNIX permissions are updated.
=cut
#if HAS_archive_entry_acl_add_entry
int
_archive_entry_acl_add_entry(entry, type, permset, tag, qual, name)
struct archive_entry *entry
int type
int permset
int tag
int qual
const char *name
CODE:
RETVAL = archive_entry_acl_add_entry(entry, type, permset, tag, qual, name);
OUTPUT:
RETVAL
#endif
=head2 archive_entry_acl_reset
my $status = archive_entry_acl_reset($entry, $want_type);
prepare reading the list of ACL entries with
L<#archive_entry_acl_next> or L<#archive_entry_acl_next_w>. The function returns
either 0, if no non-extended ACLs are found. In this case, the access permissions
should be obtained by L<#archive_entry_mode> or set using L<chmod|perlfunc#chmod>.
Otherwise, the function returns the same value as L<#archive_entry_acl_count>.
=cut
#if HAS_archive_entry_acl_reset
int
archive_entry_acl_reset(entry, want_type)
struct archive_entry *entry
int want_type
#endif
=head2 archive_entry_acl_next
my $status = archive_entry_acl_next($entry, $want_type, $type, $permset, $tag, $qual, $name);
return the next entry of the ACL list. This functions may only be called after L<#archive_entry_acl_reset>
has indicated the presence of extended ACL entries.
=cut
#if HAS_archive_entry_acl_next
int
archive_entry_acl_next(entry, want_type, type, permset, tag, qual, name)
struct archive_entry *entry
int want_type
SV *type
SV *permset
SV *tag
SV *qual
( run in 2.166 seconds using v1.01-cache-2.11-cpan-13bb782fe5a )