MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / fileStat

Function fileStat

modules/dasSQLITE/sqlite/shell.c:5744–5755  ·  view source on GitHub ↗

** 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(). */

Source from the content-addressed store, hash-verified

5742** other systems, this function simply calls stat().
5743*/
5744static 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

Callers 2

makeDirectoryFunction · 0.85
writeFileFunction · 0.85

Calls 2

statTimesToUtcFunction · 0.85
statClass · 0.70

Tested by

no test coverage detected