archive_entry_atime, archive_entry_atime_nsec, archive_entry_atime_is_set, archive_entry_set_atime,
Contents
Description
These functions create and manipulate the time fields in an archive_entry. Supported time fields are
atime (access time), birthtime (creation time), ctime (last time an inode property was changed) and mtime
(modification time).
libarchive(3) provides a high-resolution interface. The timestamps are truncated automatically depending
on the archive format (for archiving) or the filesystem capabilities (for restoring).
All timestamp fields are optional. The XXX_unset() functions can be used to mark the corresponding field
as missing. The current state can be queried using XXX_is_set(). Unset time fields have a second and
nanosecond field of 0.
History
The libarchive library first appeared in FreeBSD 5.3.
Library
Streaming Archive Library (libarchive, -larchive)
Name
archive_entry_atime, archive_entry_atime_nsec, archive_entry_atime_is_set, archive_entry_set_atime,
archive_entry_unset_atime, archive_entry_birthtime, archive_entry_birthtime_nsec,
archive_entry_birthtime_is_set, archive_entry_set_birthtime, archive_entry_unset_birthtime,
archive_entry_ctime, archive_entry_ctime_nsec, archive_entry_ctime_is_set, archive_entry_set_ctime,
archive_entry_unset_ctime, archive_entry_mtime, archive_entry_mtime_nsec, archive_entry_mtime_is_set,
archive_entry_set_mtime, archive_entry_unset_mtime — functions for manipulating times in archive entry
descriptions
See Also
archive_entry(3), libarchive(3)
Synopsis
#include<archive_entry.h>time_tarchive_entry_atime(structarchive_entry*a);
longarchive_entry_atime_nsec(structarchive_entry*a);
intarchive_entry_atime_is_set(structarchive_entry*a);
voidarchive_entry_set_atime(structarchive_entry*a, time_tsec, longnanosec);
voidarchive_entry_unset_atime(structarchive_entry*a);
time_tarchive_entry_birthtime(structarchive_entry*a);
longarchive_entry_birthtime_nsec(structarchive_entry*a);
intarchive_entry_birthtime_is_set(structarchive_entry*a);
voidarchive_entry_set_birthtime(structarchive_entry*a, time_tsec, longnanosec);
voidarchive_entry_unset_birthtime(structarchive_entry*a);
time_tarchive_entry_ctime(structarchive_entry*a);
longarchive_entry_ctime_nsec(structarchive_entry*a);
intarchive_entry_ctime_is_set(structarchive_entry*a);
voidarchive_entry_set_ctime(structarchive_entry*a, time_tsec, longnanosec);
voidarchive_entry_unset_ctime(structarchive_entry*a);
time_tarchive_entry_mtime(structarchive_entry*a);
longarchive_entry_mtime_nsec(structarchive_entry*a);
intarchive_entry_mtime_is_set(structarchive_entry*a);
voidarchive_entry_set_mtime(structarchive_entry*a, time_tsec, longnanosec);
voidarchive_entry_unset_mtime(structarchive_entry*a);
