Changeset 251 for trunk/include
- Timestamp:
- 05/05/11 21:34:35 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/regfi.h
r250 r251 191 191 */ 192 192 /* Minimum time is Jan 1, 1990 00:00:00 */ 193 #define REGFI_MTIME_MIN _HIGH 0x01B41E6D193 #define REGFI_MTIME_MIN 0x01B41E6D00000000L 194 194 195 195 /* Maximum time is Jan 1, 2290 00:00:00 196 196 * (We hope no one is using Windows by then...) 197 197 */ 198 #define REGFI_MTIME_MAX _HIGH 0x03047543198 #define REGFI_MTIME_MAX 0x0304754300000000L 199 199 200 200 … … 270 270 : ~ (time_t) 0 << (sizeof (time_t) * CHAR_BIT - 1)) 271 271 #define TIME_T_MAX (~ (time_t) 0 - TIME_T_MIN) 272 #define TIME_FIXUP_CONSTANT(369.0*365.25*24*60*60-(3.0*24*60*60+6.0*60*60))272 #define REGFI_TIME_FIXUP (369.0*365.25*24*60*60-(3.0*24*60*60+6.0*60*60)) 273 273 274 274 … … 278 278 /******************************************************************************/ 279 279 280 typedef struct _regfi_nttime 281 { 282 uint32_t low; 283 uint32_t high; 284 } REGFI_NTTIME; 285 280 typedef uint64_t REGFI_NTTIME; 286 281 287 282 typedef struct _regfi_log … … 1731 1726 /* XXX: move to base API and document */ 1732 1727 _EXPORT() 1733 void regfi_unix2nt_time(REGFI_NTTIME* nt,time_t t);1734 _EXPORT() 1735 double regfi_nt2unix_time( const REGFI_NTTIME*nt);1728 REGFI_NTTIME regfi_unix2nt_time(time_t t); 1729 _EXPORT() 1730 double regfi_nt2unix_time(REGFI_NTTIME nt); 1736 1731 1737 1732
Note: See TracChangeset
for help on using the changeset viewer.