One function that prints the system call and the error details and then exits with error code 1. Non-zero meaning things didn't go well. */
| 53 | and then exits with error code 1. Non-zero meaning things didn't go well. |
| 54 | */ |
| 55 | void fatal_error(const char *syscall) { |
| 56 | perror(syscall); |
| 57 | std::terminate(); |
| 58 | } |
| 59 | |
| 60 | void check_for_index_file() { |
| 61 | struct stat st; |
no outgoing calls
no test coverage detected