|
Packit Service |
1d0348 |
.\" Copyright (c) 2003-2007 Tim Kientzle
|
|
Packit Service |
1d0348 |
.\" Copyright (c) 2010 Joerg Sonnenberger
|
|
Packit Service |
1d0348 |
.\" All rights reserved.
|
|
Packit Service |
1d0348 |
.\"
|
|
Packit Service |
1d0348 |
.\" Redistribution and use in source and binary forms, with or without
|
|
Packit Service |
1d0348 |
.\" modification, are permitted provided that the following conditions
|
|
Packit Service |
1d0348 |
.\" are met:
|
|
Packit Service |
1d0348 |
.\" 1. Redistributions of source code must retain the above copyright
|
|
Packit Service |
1d0348 |
.\" notice, this list of conditions and the following disclaimer.
|
|
Packit Service |
1d0348 |
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
Packit Service |
1d0348 |
.\" notice, this list of conditions and the following disclaimer in the
|
|
Packit Service |
1d0348 |
.\" documentation and/or other materials provided with the distribution.
|
|
Packit Service |
1d0348 |
.\"
|
|
Packit Service |
1d0348 |
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
Packit Service |
1d0348 |
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
Packit Service |
1d0348 |
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
Packit Service |
1d0348 |
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
Packit Service |
1d0348 |
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
Packit Service |
1d0348 |
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
Packit Service |
1d0348 |
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
Packit Service |
1d0348 |
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
Packit Service |
1d0348 |
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
Packit Service |
1d0348 |
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
Packit Service |
1d0348 |
.\" SUCH DAMAGE.
|
|
Packit Service |
1d0348 |
.\"
|
|
Packit Service |
1d0348 |
.\" $FreeBSD$
|
|
Packit Service |
1d0348 |
.\"
|
|
Packit Service |
1d0348 |
.Dd February 2, 2012
|
|
Packit Service |
1d0348 |
.Dt ARCHIVE_ENTRY_TIME 3
|
|
Packit Service |
1d0348 |
.Os
|
|
Packit Service |
1d0348 |
.Sh NAME
|
|
Packit Service |
1d0348 |
.Nm archive_entry_atime ,
|
|
Packit Service |
1d0348 |
.Nm archive_entry_atime_nsec ,
|
|
Packit Service |
1d0348 |
.Nm archive_entry_atime_is_set ,
|
|
Packit Service |
1d0348 |
.Nm archive_entry_set_atime ,
|
|
Packit Service |
1d0348 |
.Nm archive_entry_unset_atime ,
|
|
Packit Service |
1d0348 |
.Nm archive_entry_birthtime ,
|
|
Packit Service |
1d0348 |
.Nm archive_entry_birthtime_nsec ,
|
|
Packit Service |
1d0348 |
.Nm archive_entry_birthtime_is_set ,
|
|
Packit Service |
1d0348 |
.Nm archive_entry_set_birthtime ,
|
|
Packit Service |
1d0348 |
.Nm archive_entry_unset_birthtime ,
|
|
Packit Service |
1d0348 |
.Nm archive_entry_ctime ,
|
|
Packit Service |
1d0348 |
.Nm archive_entry_ctime_nsec ,
|
|
Packit Service |
1d0348 |
.Nm archive_entry_ctime_is_set ,
|
|
Packit Service |
1d0348 |
.Nm archive_entry_set_ctime ,
|
|
Packit Service |
1d0348 |
.Nm archive_entry_unset_ctime ,
|
|
Packit Service |
1d0348 |
.Nm archive_entry_mtime ,
|
|
Packit Service |
1d0348 |
.Nm archive_entry_mtime_nsec ,
|
|
Packit Service |
1d0348 |
.Nm archive_entry_mtime_is_set ,
|
|
Packit Service |
1d0348 |
.Nm archive_entry_set_mtime ,
|
|
Packit Service |
1d0348 |
.Nm archive_entry_unset_mtime ,
|
|
Packit Service |
1d0348 |
.Nd functions for manipulating times in archive entry descriptions
|
|
Packit Service |
1d0348 |
.Sh LIBRARY
|
|
Packit Service |
1d0348 |
Streaming Archive Library (libarchive, -larchive)
|
|
Packit Service |
1d0348 |
.Sh SYNOPSIS
|
|
Packit Service |
1d0348 |
.In archive_entry.h
|
|
Packit Service |
1d0348 |
.Ft time_t
|
|
Packit Service |
1d0348 |
.Fn archive_entry_atime "struct archive_entry *a"
|
|
Packit Service |
1d0348 |
.Ft long
|
|
Packit Service |
1d0348 |
.Fn archive_entry_atime_nsec "struct archive_entry *a"
|
|
Packit Service |
1d0348 |
.Ft int
|
|
Packit Service |
1d0348 |
.Fn archive_entry_atime_is_set "struct archive_entry *a"
|
|
Packit Service |
1d0348 |
.Ft void
|
|
Packit Service |
1d0348 |
.Fn archive_entry_set_atime "struct archive_entry *a" "time_t sec" "long nanosec"
|
|
Packit Service |
1d0348 |
.Ft void
|
|
Packit Service |
1d0348 |
.Fn archive_entry_unset_atime "struct archive_entry *a"
|
|
Packit Service |
1d0348 |
.Ft time_t
|
|
Packit Service |
1d0348 |
.Fn archive_entry_birthtime "struct archive_entry *a"
|
|
Packit Service |
1d0348 |
.Ft long
|
|
Packit Service |
1d0348 |
.Fn archive_entry_birthtime_nsec "struct archive_entry *a"
|
|
Packit Service |
1d0348 |
.Ft int
|
|
Packit Service |
1d0348 |
.Fn archive_entry_birthtime_is_set "struct archive_entry *a"
|
|
Packit Service |
1d0348 |
.Ft void
|
|
Packit Service |
1d0348 |
.Fn archive_entry_set_birthtime "struct archive_entry *a" "time_t sec" "long nanosec"
|
|
Packit Service |
1d0348 |
.Ft void
|
|
Packit Service |
1d0348 |
.Fn archive_entry_unset_birthtime "struct archive_entry *a"
|
|
Packit Service |
1d0348 |
.Ft time_t
|
|
Packit Service |
1d0348 |
.Fn archive_entry_ctime "struct archive_entry *a"
|
|
Packit Service |
1d0348 |
.Ft long
|
|
Packit Service |
1d0348 |
.Fn archive_entry_ctime_nsec "struct archive_entry *a"
|
|
Packit Service |
1d0348 |
.Ft int
|
|
Packit Service |
1d0348 |
.Fn archive_entry_ctime_is_set "struct archive_entry *a"
|
|
Packit Service |
1d0348 |
.Ft void
|
|
Packit Service |
1d0348 |
.Fn archive_entry_set_ctime "struct archive_entry *a" "time_t sec" "long nanosec"
|
|
Packit Service |
1d0348 |
.Ft void
|
|
Packit Service |
1d0348 |
.Fn archive_entry_unset_ctime "struct archive_entry *a"
|
|
Packit Service |
1d0348 |
.Ft time_t
|
|
Packit Service |
1d0348 |
.Fn archive_entry_mtime "struct archive_entry *a"
|
|
Packit Service |
1d0348 |
.Ft long
|
|
Packit Service |
1d0348 |
.Fn archive_entry_mtime_nsec "struct archive_entry *a"
|
|
Packit Service |
1d0348 |
.Ft int
|
|
Packit Service |
1d0348 |
.Fn archive_entry_mtime_is_set "struct archive_entry *a"
|
|
Packit Service |
1d0348 |
.Ft void
|
|
Packit Service |
1d0348 |
.Fn archive_entry_set_mtime "struct archive_entry *a" "time_t sec" "long nanosec"
|
|
Packit Service |
1d0348 |
.Ft void
|
|
Packit Service |
1d0348 |
.Fn archive_entry_unset_mtime "struct archive_entry *a"
|
|
Packit Service |
1d0348 |
.Sh DESCRIPTION
|
|
Packit Service |
1d0348 |
These functions create and manipulate the time fields in an
|
|
Packit Service |
1d0348 |
.Vt archive_entry .
|
|
Packit Service |
1d0348 |
Supported time fields are atime (access time), birthtime (creation time),
|
|
Packit Service |
1d0348 |
ctime (last time an inode property was changed) and mtime (modification time).
|
|
Packit Service |
1d0348 |
.Pp
|
|
Packit Service |
1d0348 |
.Xr libarchive 3
|
|
Packit Service |
1d0348 |
provides a high-resolution interface.
|
|
Packit Service |
1d0348 |
The timestamps are truncated automatically depending on the archive format
|
|
Packit Service |
1d0348 |
(for archiving) or the filesystem capabilities (for restoring).
|
|
Packit Service |
1d0348 |
.Pp
|
|
Packit Service |
1d0348 |
All timestamp fields are optional.
|
|
Packit Service |
1d0348 |
The
|
|
Packit Service |
1d0348 |
.Fn XXX_unset
|
|
Packit Service |
1d0348 |
functions can be used to mark the corresponding field as missing.
|
|
Packit Service |
1d0348 |
The current state can be queried using
|
|
Packit Service |
1d0348 |
.Fn XXX_is_set .
|
|
Packit Service |
1d0348 |
Unset time fields have a second and nanosecond field of 0.
|
|
Packit Service |
1d0348 |
.Sh SEE ALSO
|
|
Packit Service |
1d0348 |
.Xr archive_entry 3
|
|
Packit Service |
1d0348 |
.Xr libarchive 3 ,
|
|
Packit Service |
1d0348 |
.Sh HISTORY
|
|
Packit Service |
1d0348 |
The
|
|
Packit Service |
1d0348 |
.Nm libarchive
|
|
Packit Service |
1d0348 |
library first appeared in
|
|
Packit Service |
1d0348 |
.Fx 5.3 .
|
|
Packit Service |
1d0348 |
.Sh AUTHORS
|
|
Packit Service |
1d0348 |
.An -nosplit
|
|
Packit Service |
1d0348 |
The
|
|
Packit Service |
1d0348 |
.Nm libarchive
|
|
Packit Service |
1d0348 |
library was written by
|
|
Packit Service |
1d0348 |
.An Tim Kientzle Aq kientzle@acm.org .
|
|
Packit Service |
1d0348 |
.\" .Sh BUGS
|