summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2005-06-01 18:20:02 +0000
committerscottl <scottl@FreeBSD.org>2005-06-01 18:20:02 +0000
commitb53960c163871bd9b45f81d87aab62c7f9dadd17 (patch)
treed55fd6b0894147609e5fcee91e28d1c21f258498
parent47a9b57f58f69484bdd9f3cb5342d44c7d081b1d (diff)
downloadFreeBSD-src-b53960c163871bd9b45f81d87aab62c7f9dadd17.zip
FreeBSD-src-b53960c163871bd9b45f81d87aab62c7f9dadd17.tar.gz
Provide missing implementations for archive_entry_ctime() and
archive_entry_ctime_nano()
-rw-r--r--lib/libarchive/archive_entry.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/libarchive/archive_entry.c b/lib/libarchive/archive_entry.c
index 9741377..8371f85 100644
--- a/lib/libarchive/archive_entry.c
+++ b/lib/libarchive/archive_entry.c
@@ -582,6 +582,19 @@ archive_entry_set_ctime(struct archive_entry *entry, time_t t, long ns)
ARCHIVE_STAT_SET_CTIME_NANOS(&entry->ae_stat, ns);
}
+time_t
+archive_entry_ctime(struct archive_entry *entry)
+{
+ return (entry->ae_stat.st_ctime);
+}
+
+long
+archive_entry_ctime_nsec(struct archive_entry *entry)
+{
+ (void)entry; /* entry can be unused here. */
+ return (ARCHIVE_STAT_CTIME_NANOS(&entry->ae_stat));
+}
+
/* Set symlink if symlink is already set, else set hardlink. */
void
archive_entry_set_link(struct archive_entry *entry, const char *target)
OpenPOWER on IntegriCloud