| 345 | } |
| 346 | |
| 347 | static bool fd_regular(int fd, struct stat *status_out) { |
| 348 | struct stat status; |
| 349 | if (fstat(fd, &status) != 0 || !S_ISREG(status.st_mode)) { |
| 350 | return false; |
| 351 | } |
| 352 | if (status_out) { |
| 353 | *status_out = status; |
| 354 | } |
| 355 | return true; |
| 356 | } |
| 357 | |
| 358 | bool cbm_daemon_build_fingerprint_native_file(uintptr_t native_file, |
| 359 | char out[CBM_DAEMON_BUILD_FINGERPRINT_SIZE]) { |
no outgoing calls
no test coverage detected