** This function is used in place of stat(). On Windows, special handling ** is required in order for the included time to be returned as UTC. On all ** other systems, this function simply calls stat(). */
| 2378 | ** other systems, this function simply calls stat(). |
| 2379 | */ |
| 2380 | static int fileStat( |
| 2381 | const char *zPath, |
| 2382 | struct stat *pStatBuf |
| 2383 | ){ |
| 2384 | #if defined(_WIN32) |
| 2385 | int rc = stat(zPath, pStatBuf); |
| 2386 | if( rc==0 ) statTimesToUtc(zPath, pStatBuf); |
| 2387 | return rc; |
| 2388 | #else |
| 2389 | return stat(zPath, pStatBuf); |
| 2390 | #endif |
| 2391 | } |
| 2392 | |
| 2393 | /* |
| 2394 | ** This function is used in place of lstat(). On Windows, special handling |
no test coverage detected