1 <!-- Creator : groff version 1.22.3 -->
2 <!-- CreationDate: Sat Feb 25 11:22:02 2017 -->
3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
4 "http://www.w3.org/TR/html4/loose.dtd">
7 <meta name="generator" content="groff -Thtml, see www.gnu.org">
8 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
9 <meta name="Content-Style" content="text/css">
10 <style type="text/css">
11 p { margin-top: 0; margin-bottom: 0; vertical-align: top }
12 pre { margin-top: 0; margin-bottom: 0; vertical-align: top }
13 table { margin-top: 0; margin-bottom: 0; vertical-align: top }
14 h1 { text-align: center }
23 <p>ARCHIVE_ENTRY_TIME(3) BSD Library Functions Manual
24 ARCHIVE_ENTRY_TIME(3)</p>
26 <p style="margin-top: 1em"><b>NAME</b></p>
28 <p style="margin-left:6%;"><b>archive_entry_atime</b>,
29 <b>archive_entry_atime_nsec</b>,
30 <b>archive_entry_atime_is_set</b>,
31 <b>archive_entry_set_atime</b>,
32 <b>archive_entry_unset_atime</b>,
33 <b>archive_entry_birthtime</b>,
34 <b>archive_entry_birthtime_nsec</b>,
35 <b>archive_entry_birthtime_is_set</b>,
36 <b>archive_entry_set_birthtime</b>,
37 <b>archive_entry_unset_birthtime</b>,
38 <b>archive_entry_ctime</b>, <b>archive_entry_ctime_nsec</b>,
39 <b>archive_entry_ctime_is_set</b>,
40 <b>archive_entry_set_ctime</b>,
41 <b>archive_entry_unset_ctime</b>,
42 <b>archive_entry_mtime</b>, <b>archive_entry_mtime_nsec</b>,
43 <b>archive_entry_mtime_is_set</b>,
44 <b>archive_entry_set_mtime</b>,
45 <b>archive_entry_unset_mtime</b>, — functions for
46 manipulating times in archive entry descriptions</p>
48 <p style="margin-top: 1em"><b>LIBRARY</b></p>
50 <p style="margin-left:6%;">Streaming Archive Library
51 (libarchive, -larchive)</p>
53 <p style="margin-top: 1em"><b>SYNOPSIS</b></p>
55 <p style="margin-left:6%;"><b>#include
56 <archive_entry.h></b></p>
59 <p style="margin-left:6%; margin-top: 1em"><i>time_t</i></p>
62 <p style="margin-left:12%;"><b>archive_entry_atime</b>(<i>struct archive_entry *a</i>);</p>
64 <p style="margin-left:6%; margin-top: 1em"><i>long</i></p>
67 <p style="margin-left:12%;"><b>archive_entry_atime_nsec</b>(<i>struct archive_entry *a</i>);</p>
69 <p style="margin-left:6%; margin-top: 1em"><i>int</i></p>
72 <p style="margin-left:12%;"><b>archive_entry_atime_is_set</b>(<i>struct archive_entry *a</i>);</p>
74 <p style="margin-left:6%; margin-top: 1em"><i>void</i></p>
77 <p style="margin-left:12%;"><b>archive_entry_set_atime</b>(<i>struct archive_entry *a</i>,
78 <i>time_t sec</i>, <i>long nanosec</i>);</p>
80 <p style="margin-left:6%; margin-top: 1em"><i>void</i></p>
83 <p style="margin-left:12%;"><b>archive_entry_unset_atime</b>(<i>struct archive_entry *a</i>);</p>
86 <p style="margin-left:6%; margin-top: 1em"><i>time_t</i></p>
89 <p style="margin-left:12%;"><b>archive_entry_birthtime</b>(<i>struct archive_entry *a</i>);</p>
91 <p style="margin-left:6%; margin-top: 1em"><i>long</i></p>
94 <p style="margin-left:12%;"><b>archive_entry_birthtime_nsec</b>(<i>struct archive_entry *a</i>);</p>
96 <p style="margin-left:6%; margin-top: 1em"><i>int</i></p>
99 <p style="margin-left:12%;"><b>archive_entry_birthtime_is_set</b>(<i>struct archive_entry *a</i>);</p>
101 <p style="margin-left:6%; margin-top: 1em"><i>void</i></p>
104 <p style="margin-left:12%;"><b>archive_entry_set_birthtime</b>(<i>struct archive_entry *a</i>,
105 <i>time_t sec</i>, <i>long nanosec</i>);</p>
107 <p style="margin-left:6%; margin-top: 1em"><i>void</i></p>
110 <p style="margin-left:12%;"><b>archive_entry_unset_birthtime</b>(<i>struct archive_entry *a</i>);</p>
113 <p style="margin-left:6%; margin-top: 1em"><i>time_t</i></p>
116 <p style="margin-left:12%;"><b>archive_entry_ctime</b>(<i>struct archive_entry *a</i>);</p>
118 <p style="margin-left:6%; margin-top: 1em"><i>long</i></p>
121 <p style="margin-left:12%;"><b>archive_entry_ctime_nsec</b>(<i>struct archive_entry *a</i>);</p>
123 <p style="margin-left:6%; margin-top: 1em"><i>int</i></p>
126 <p style="margin-left:12%;"><b>archive_entry_ctime_is_set</b>(<i>struct archive_entry *a</i>);</p>
128 <p style="margin-left:6%; margin-top: 1em"><i>void</i></p>
131 <p style="margin-left:12%;"><b>archive_entry_set_ctime</b>(<i>struct archive_entry *a</i>,
132 <i>time_t sec</i>, <i>long nanosec</i>);</p>
134 <p style="margin-left:6%; margin-top: 1em"><i>void</i></p>
137 <p style="margin-left:12%;"><b>archive_entry_unset_ctime</b>(<i>struct archive_entry *a</i>);</p>
140 <p style="margin-left:6%; margin-top: 1em"><i>time_t</i></p>
143 <p style="margin-left:12%;"><b>archive_entry_mtime</b>(<i>struct archive_entry *a</i>);</p>
145 <p style="margin-left:6%; margin-top: 1em"><i>long</i></p>
148 <p style="margin-left:12%;"><b>archive_entry_mtime_nsec</b>(<i>struct archive_entry *a</i>);</p>
150 <p style="margin-left:6%; margin-top: 1em"><i>int</i></p>
153 <p style="margin-left:12%;"><b>archive_entry_mtime_is_set</b>(<i>struct archive_entry *a</i>);</p>
155 <p style="margin-left:6%; margin-top: 1em"><i>void</i></p>
158 <p style="margin-left:12%;"><b>archive_entry_set_mtime</b>(<i>struct archive_entry *a</i>,
159 <i>time_t sec</i>, <i>long nanosec</i>);</p>
161 <p style="margin-left:6%; margin-top: 1em"><i>void</i></p>
164 <p style="margin-left:12%;"><b>archive_entry_unset_mtime</b>(<i>struct archive_entry *a</i>);</p>
166 <p style="margin-top: 1em"><b>DESCRIPTION</b></p>
168 <p style="margin-left:6%;">These functions create and
169 manipulate the time fields in an <i>archive_entry</i>.
170 Supported time fields are atime (access time), birthtime
171 (creation time), ctime (last time an inode property was
172 changed) and mtime (modification time).</p>
174 <p style="margin-left:6%; margin-top: 1em">libarchive(3)
175 provides a high-resolution interface. The timestamps are
176 truncated automatically depending on the archive format (for
177 archiving) or the filesystem capabilities (for
180 <p style="margin-left:6%; margin-top: 1em">All timestamp
181 fields are optional. The <b>XXX_unset</b>() functions can be
182 used to mark the corresponding field as missing. The current
183 state can be queried using <b>XXX_is_set</b>(). Unset time
184 fields have a second and nanosecond field of 0.</p>
186 <p style="margin-top: 1em"><b>SEE ALSO</b></p>
188 <p style="margin-left:6%;">archive_entry(3)
191 <p style="margin-top: 1em"><b>HISTORY</b></p>
193 <p style="margin-left:6%;">The <b>libarchive</b> library
194 first appeared in FreeBSD 5.3.</p>
196 <p style="margin-top: 1em"><b>AUTHORS</b></p>
198 <p style="margin-left:6%;">The <b>libarchive</b> library
199 was written by Tim Kientzle <kientzle@acm.org>.</p>
201 <p style="margin-left:6%; margin-top: 1em">BSD
202 February 2, 2012 BSD</p>