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

Function UTIL_isFIFO

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

UTIL_isFIFO : distinguish named pipes */

Source from the content-addressed store, hash-verified

239
240/* UTIL_isFIFO : distinguish named pipes */
241int UTIL_isFIFO(const char* infilename)
242{
243/* macro guards, as defined in : https://linux.die.net/man/2/lstat */
244#if PLATFORM_POSIX_VERSION >= 200112L
245 stat_t statbuf;
246 if (UTIL_stat(infilename, &statbuf) && UTIL_isFIFOStat(&statbuf)) return 1;
247#endif
248 (void)infilename;
249 return 0;
250}
251
252/* UTIL_isFIFO : distinguish named pipes */
253int UTIL_isFIFOStat(const stat_t* statbuf)

Callers 1

mainFunction · 0.85

Calls 2

UTIL_statFunction · 0.85
UTIL_isFIFOStatFunction · 0.85

Tested by

no test coverage detected