| 261 | } |
| 262 | |
| 263 | int 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 | |
| 275 | U64 UTIL_getFileSize(const char* infilename) |
| 276 | { |
no outgoing calls
no test coverage detected