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

Function fileLinkStat

modules/dasSQLITE/sqlite/shell.c:5762–5773  ·  view source on GitHub ↗

** This function is used in place of lstat(). 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 lstat(). */

Source from the content-addressed store, hash-verified

5760** other systems, this function simply calls lstat().
5761*/
5762static int fileLinkStat(
5763 const char *zPath,
5764 struct stat *pStatBuf
5765){
5766#if defined(_WIN32)
5767 int rc = lstat(zPath, pStatBuf);
5768 if( rc==0 ) statTimesToUtc(zPath, pStatBuf);
5769 return rc;
5770#else
5771 return lstat(zPath, pStatBuf);
5772#endif
5773}
5774
5775/*
5776** Argument zFile is the name of a file that will be created and/or written

Callers 2

fsdirNextFunction · 0.85
fsdirFilterFunction · 0.85

Calls 1

statTimesToUtcFunction · 0.85

Tested by

no test coverage detected