** 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(). */
| 5742 | ** other systems, this function simply calls stat(). |
| 5743 | */ |
| 5744 | static int fileStat( |
| 5745 | const char *zPath, |
| 5746 | struct stat *pStatBuf |
| 5747 | ){ |
| 5748 | #if defined(_WIN32) |
| 5749 | int rc = stat(zPath, pStatBuf); |
| 5750 | if( rc==0 ) statTimesToUtc(zPath, pStatBuf); |
| 5751 | return rc; |
| 5752 | #else |
| 5753 | return stat(zPath, pStatBuf); |
| 5754 | #endif |
| 5755 | } |
| 5756 | |
| 5757 | /* |
| 5758 | ** This function is used in place of lstat(). On Windows, special handling |
no test coverage detected