Allowing named pipes to go through zstdcli

This commit is contained in:
Bimba Shrestha
2019-10-22 15:23:22 -07:00
parent 24bc2e062d
commit 8a3974807e
4 changed files with 16 additions and 2 deletions
+13
View File
@@ -115,6 +115,19 @@ int UTIL_isSameFile(const char* file1, const char* file2)
#endif
}
U32 UTIL_isFIFO(const char* infilename)
{
/* macro guards, as defined in : https://linux.die.net/man/2/lstat */
#if PLATFORM_POSIX_VERSION >= 200112L
stat_t statbuf;
int r = UTIL_getFileStat(infilename, &statbuf);
if (!r && S_ISFIFO(statbuf.st_mode)) return 1;
#endif
(void)infilename;
return 0;
}
U32 UTIL_isLink(const char* infilename)
{
/* macro guards, as defined in : https://linux.die.net/man/2/lstat */