UTIL_isFIFO : distinguish named pipes */
| 239 | |
| 240 | /* UTIL_isFIFO : distinguish named pipes */ |
| 241 | int 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 */ |
| 253 | int UTIL_isFIFOStat(const stat_t* statbuf) |
no test coverage detected