- printf("\\%03o", ch);
-}
-
-#ifdef WIN32
-/*
- * Number of micro-seconds between the beginning of the Windows epoch
- * (Jan. 1, 1601) and the Unix epoch (Jan. 1, 1970).
- *
- * This assumes all Win32 compilers have 64-bit support.
- */
-#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS) || defined(__WATCOMC__)
- #define DELTA_EPOCH_IN_USEC 11644473600000000Ui64
-#else
- #define DELTA_EPOCH_IN_USEC 11644473600000000ULL
-#endif
-
-static u_int64_t filetime_to_unix_epoch (const FILETIME *ft)
-{
- u_int64_t res = (u_int64_t) ft->dwHighDateTime << 32;
-
- res |= ft->dwLowDateTime;
- res /= 10; /* from 100 nano-sec periods to usec */
- res -= DELTA_EPOCH_IN_USEC; /* from Win epoch to Unix epoch */
- return (res);