summaryrefslogtreecommitdiffstats
path: root/lib/libarchive/archive_entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libarchive/archive_entry.c')
-rw-r--r--lib/libarchive/archive_entry.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/libarchive/archive_entry.c b/lib/libarchive/archive_entry.c
index 0a76114..f04fee8 100644
--- a/lib/libarchive/archive_entry.c
+++ b/lib/libarchive/archive_entry.c
@@ -338,6 +338,18 @@ archive_entry_new(void)
* Functions for reading fields from an archive_entry.
*/
+time_t
+archive_entry_atime(struct archive_entry *entry)
+{
+ return (entry->ae_stat.st_atime);
+}
+
+long
+archive_entry_atime_nsec(struct archive_entry *entry)
+{
+ return (ARCHIVE_STAT_ATIME_NANOS(&entry->ae_stat));
+}
+
dev_t
archive_entry_dev(struct archive_entry *entry)
{
OpenPOWER on IntegriCloud