MCPcopy Create free account
hub / github.com/audacity/audacity / fileLinkStat

Function fileLinkStat

lib-src/sqlite/shell.c:2398–2409  ·  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

2396** other systems, this function simply calls lstat().
2397*/
2398static int fileLinkStat(
2399 const char *zPath,
2400 struct stat *pStatBuf
2401){
2402#if defined(_WIN32)
2403 int rc = lstat(zPath, pStatBuf);
2404 if( rc==0 ) statTimesToUtc(zPath, pStatBuf);
2405 return rc;
2406#else
2407 return lstat(zPath, pStatBuf);
2408#endif
2409}
2410
2411/*
2412** 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