aboutsummaryrefslogtreecommitdiff
path: root/CPP/7zip/PropID.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--CPP/7zip/PropID.h48
1 files changed, 47 insertions, 1 deletions
diff --git a/CPP/7zip/PropID.h b/CPP/7zip/PropID.h
index b818954..2da636f 100644
--- a/CPP/7zip/PropID.h
+++ b/CPP/7zip/PropID.h
@@ -105,7 +105,11 @@ enum
105 kpidCopyLink, 105 kpidCopyLink,
106 kpidArcFileName, 106 kpidArcFileName,
107 kpidIsHash, 107 kpidIsHash,
108 108 kpidChangeTime,
109 kpidUserId,
110 kpidGroupId,
111 kpidDeviceMajor,
112 kpidDeviceMinor,
109 113
110 kpid_NUM_DEFINED, 114 kpid_NUM_DEFINED,
111 115
@@ -127,4 +131,46 @@ const UInt32 kpv_ErrorFlags_DataError = 1 << 9;
127const UInt32 kpv_ErrorFlags_CrcError = 1 << 10; 131const UInt32 kpv_ErrorFlags_CrcError = 1 << 10;
128// const UInt32 kpv_ErrorFlags_Unsupported = 1 << 11; 132// const UInt32 kpv_ErrorFlags_Unsupported = 1 << 11;
129 133
134/*
135linux ctime :
136 file metadata was last changed.
137 changing the file modification time
138 counts as a metadata change, so will also have the side effect of updating the ctime.
139
140PROPVARIANT for timestamps in 7-Zip:
141{
142 vt = VT_FILETIME
143 wReserved1: set precision level
144 0 : base value (backward compatibility value)
145 only filetime is used (7 digits precision).
146 wReserved2 and wReserved3 can contain random data
147 1 : Unix (1 sec)
148 2 : DOS (2 sec)
149 3 : High Precision (1 ns)
150 16 - 3 : (reserved) = 1 day
151 16 - 2 : (reserved) = 1 hour
152 16 - 1 : (reserved) = 1 minute
153 16 + 0 : 1 sec (0 digits after point)
154 16 + (1,2,3,4,5,6,7,8,9) : set subsecond precision level :
155 (number of decimal digits after point)
156 16 + 9 : 1 ns (9 digits after point)
157 wReserved2 = ns % 100 : if (8 or 9 digits pecision)
158 = 0 : if not (8 or 9 digits pecision)
159 wReserved3 = 0;
160 filetime
161}
162
163NOTE: TAR-PAX archives created by GNU TAR don't keep
164 whole information about original level of precision,
165 and timestamp are stored in reduced form, where tail zero
166 digits after point are removed.
167 So 7-Zip can return different precision levels for different items for such TAR archives.
168*/
169
170/*
171TimePrec returned by IOutArchive::GetFileTimeType()
172is used only for updating, when we compare MTime timestamp
173from archive with timestamp from directory.
174*/
175
130#endif 176#endif