summaryrefslogtreecommitdiff
path: root/archivers/libarchive/files/doc/wiki/ManPageArchiveEntryTime3.wiki
blob: 2425c1c3332cc6fdb7b7a804b411349477c36dd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
ARCHIVE_ENTRY_TIME(3) manual page 
== NAME == 
'''archive_entry_atime''', 
'''archive_entry_atime_nsec''', 
'''archive_entry_atime_is_set''', 
'''archive_entry_set_atime''', 
'''archive_entry_unset_atime''', 
'''archive_entry_birthtime''', 
'''archive_entry_birthtime_nsec''', 
'''archive_entry_birthtime_is_set''', 
'''archive_entry_set_birthtime''', 
'''archive_entry_unset_birthtime''', 
'''archive_entry_ctime''', 
'''archive_entry_ctime_nsec''', 
'''archive_entry_ctime_is_set''', 
'''archive_entry_set_ctime''', 
'''archive_entry_unset_ctime''', 
'''archive_entry_mtime''', 
'''archive_entry_mtime_nsec''', 
'''archive_entry_mtime_is_set''', 
'''archive_entry_set_mtime''', 
'''archive_entry_unset_mtime''', 
- functions for manipulating times in archive entry descriptions 
== LIBRARY == 
Streaming Archive Library (libarchive, -larchive) 
== SYNOPSIS == 
'''<nowiki>#include <archive_entry.h></nowiki>''' 
<br> 
''time_t'' 
<br> 
'''archive_entry_atime'''(''struct archive_entry *a''); 
<br> 
''long'' 
<br> 
'''archive_entry_atime_nsec'''(''struct archive_entry *a''); 
<br> 
''int'' 
<br> 
'''archive_entry_atime_is_set'''(''struct archive_entry *a''); 
<br> 
''void'' 
<br> 
'''archive_entry_set_atime'''(''struct archive_entry *a'', ''time_t sec'', ''long nanosec''); 
<br> 
''void'' 
<br> 
'''archive_entry_unset_atime'''(''struct archive_entry *a''); 
<br> 
''time_t'' 
<br> 
'''archive_entry_birthtime'''(''struct archive_entry *a''); 
<br> 
''long'' 
<br> 
'''archive_entry_birthtime_nsec'''(''struct archive_entry *a''); 
<br> 
''int'' 
<br> 
'''archive_entry_birthtime_is_set'''(''struct archive_entry *a''); 
<br> 
''void'' 
<br> 
'''archive_entry_set_birthtime'''(''struct archive_entry *a'', ''time_t sec'', ''long nanosec''); 
<br> 
''void'' 
<br> 
'''archive_entry_unset_birthtime'''(''struct archive_entry *a''); 
<br> 
''time_t'' 
<br> 
'''archive_entry_ctime'''(''struct archive_entry *a''); 
<br> 
''long'' 
<br> 
'''archive_entry_ctime_nsec'''(''struct archive_entry *a''); 
<br> 
''int'' 
<br> 
'''archive_entry_ctime_is_set'''(''struct archive_entry *a''); 
<br> 
''void'' 
<br> 
'''archive_entry_set_ctime'''(''struct archive_entry *a'', ''time_t sec'', ''long nanosec''); 
<br> 
''void'' 
<br> 
'''archive_entry_unset_ctime'''(''struct archive_entry *a''); 
<br> 
''time_t'' 
<br> 
'''archive_entry_mtime'''(''struct archive_entry *a''); 
<br> 
''long'' 
<br> 
'''archive_entry_mtime_nsec'''(''struct archive_entry *a''); 
<br> 
''int'' 
<br> 
'''archive_entry_mtime_is_set'''(''struct archive_entry *a''); 
<br> 
''void'' 
<br> 
'''archive_entry_set_mtime'''(''struct archive_entry *a'', ''time_t sec'', ''long nanosec''); 
<br> 
''void'' 
<br> 
'''archive_entry_unset_mtime'''(''struct archive_entry *a''); 
== DESCRIPTION == 
These functions create and manipulate the time fields in an 
''archive_entry''. 
Supported time fields are atime (access time), birthtime (creation time), 
ctime (last time an inode property was changed) and mtime (modification time). 

[[ManPageibarchive3]] 
provides a high-resolution interface. 
The timestamps are truncated automatically depending on the archive format 
(for archiving) or the filesystem capabilities (for restoring). 

All timestamp fields are optional. 
The 
'''XXX_unset'''() 
functions can be used to mark the corresponding field as missing. 
The current state can be queried using 
'''XXX_is_set'''(). 
Unset time fields have a second and nanosecond field of 0. 
== SEE ALSO == 
[[ManPagerchiventry3]] 
[[ManPageibarchive3]], 
== HISTORY == 
The 
'''libarchive''' 
library first appeared in 
FreeBSD 5.3. 
== AUTHORS == 
The 
'''libarchive''' 
library was written by 
Tim Kientzle  &lt;kientzle@acm.org.&gt;