| 986 | } |
| 987 | |
| 988 | static bool bootstrap_read_file(const char *path, char *out, size_t capacity) { |
| 989 | FILE *file = cbm_fopen(path, "rb"); |
| 990 | if (!file) { |
| 991 | return false; |
| 992 | } |
| 993 | size_t used = fread(out, 1, capacity - 1, file); |
| 994 | out[used] = '\0'; |
| 995 | (void)fclose(file); |
| 996 | return true; |
| 997 | } |
| 998 | |
| 999 | /* The record contract behind the fail-fast: a real listener failure in this |
| 1000 | * process is recorded and read back with stage, errno, and path; a record |
no test coverage detected