mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Provide missing implementations for archive_entry_ctime() and
archive_entry_ctime_nano()
This commit is contained in:
parent
f0e5132053
commit
e462283052
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146880
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue