MCPcopy Create free account
hub / github.com/F-Stack/f-stack / UTIL_isLink

Function UTIL_isLink

freebsd/contrib/zstd/programs/util.c:263–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263int UTIL_isLink(const char* infilename)
264{
265/* macro guards, as defined in : https://linux.die.net/man/2/lstat */
266#if PLATFORM_POSIX_VERSION >= 200112L
267 stat_t statbuf;
268 int const r = lstat(infilename, &statbuf);
269 if (!r && S_ISLNK(statbuf.st_mode)) return 1;
270#endif
271 (void)infilename;
272 return 0;
273}
274
275U64 UTIL_getFileSize(const char* infilename)
276{

Callers 2

mainFunction · 0.85
UTIL_prepareFileListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected