|
NAMEarchive_entry_stat ,
archive_entry_copy_stat ,
archive_entry_filetype ,
archive_entry_set_filetype ,
archive_entry_mode ,
archive_entry_set_mode ,
archive_entry_size ,
archive_entry_size_is_set ,
archive_entry_set_size ,
archive_entry_unset_size ,
archive_entry_dev ,
archive_entry_set_dev ,
archive_entry_dev_is_set ,
archive_entry_devmajor ,
archive_entry_set_devmajor ,
archive_entry_devminor ,
archive_entry_set_devminor ,
archive_entry_ino ,
archive_entry_set_ino ,
archive_entry_ino_is_set ,
archive_entry_ino64 ,
archive_entry_set_ino64 ,
archive_entry_nlink ,
archive_entry_rdev ,
archive_entry_set_rdev ,
archive_entry_rdevmajor ,
archive_entry_set_rdevmajor ,
archive_entry_rdevminor ,
archive_entry_set_rdevminor —
accessor functions for manipulating archive entry
descriptions
LIBRARYStreaming Archive Library (libarchive, -larchive)SYNOPSIS#include <archive_entry.h>
const struct stat *
void
mode_t
void
mode_t
void
int64_t
int
void
void
dev_t
void
int
dev_t
void
dev_t
void
ino_t
void
int
int64_t
void
unsigned int
void
dev_t
dev_t
dev_t
void
void
void
DESCRIPTIONCopying to and from struct statThe functionarchive_entry_stat () converts the various
fields stored in the archive entry to the format used by
stat(2).
The return value remains valid until either
archive_entry_clear () or
archive_entry_free () is called. It is not affected by
calls to the set accessor functions. It currently sets the following values in
struct stat: st_atime,
st_ctime, st_dev,
st_gid, st_ino,
st_mode, st_mtime,
st_nlink, st_rdev,
st_size, st_uid. In addition,
st_birthtime and high-precision information for
time-related fields will be included on platforms that support it.
The function General accessor functionsThe functionsarchive_entry_filetype () and
archive_entry_set_filetype () get respectively set the
filetype. The file type is one of the following constants:
The functions The function The number of references (hardlinks) can be obtained by calling
Identifying unique filesThe functionsarchive_entry_dev () and
archive_entry_ino64 () are used by
archive_entry_linkify(3)
to find hardlinks. The pair of device and inode is supposed to identify
hardlinked files.
The device major and minor number can be obtained independently
using The inode number can be obtained using
Accessor functions for block and character devicesBlock and character devices are characterised either using a device number or a pair of major and minor number. The combined device number can be obtained witharchive_device_rdev () and set with
archive_device_set_rdev (). The major and minor numbers
are accessed by archive_device_rdevmajor (),
archive_device_rdevminor ()
archive_device_set_rdevmajor () and
archive_device_set_rdevminor ().
The process of splitting the combined device number into major and minor number and the reverse process of combing them differs between platforms. Some archive formats use the combined form, while other formats use the split form. SEE ALSOstat(2), archive_entry_acl(3), archive_entry_perms(3), archive_entry_time(3), libarchive(3)
Visit the GSP FreeBSD Man Page Interface. |