| 2125 | } |
| 2126 | |
| 2127 | static bool sp_stdin_write(const char *path, const void *bytes, size_t count) { |
| 2128 | FILE *file = cbm_fopen(path, "wb"); |
| 2129 | if (!file) |
| 2130 | return false; |
| 2131 | bool ok = count == 0 || fwrite(bytes, 1, count, file) == count; |
| 2132 | if (fclose(file) != 0) |
| 2133 | ok = false; |
| 2134 | return ok; |
| 2135 | } |
| 2136 | |
| 2137 | static bool sp_stdin_clean(int rc, const cbm_proc_result_t *result) { |
| 2138 | return rc == 0 && result->outcome == CBM_PROC_CLEAN && result->exit_code == 0 && |
no test coverage detected