1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 11:46:37 +00:00

All: Convert from C runtime library perror() to sim_perror so that all messages will arrive in the same place(s).

This commit is contained in:
Mark Pizzolato
2015-04-03 19:56:37 -07:00
parent f2ca388f9c
commit 41978eca80
57 changed files with 94 additions and 88 deletions

View File

@@ -311,7 +311,7 @@ if (feof (cdr_unit.fileref)) { /* eof? */
return STOP_NOCD;
}
if (ferror (cdr_unit.fileref)) { /* error? */
perror ("Card reader I/O error");
sim_perror ("Card reader I/O error");
clearerr (cdr_unit.fileref);
carderr = 1;
return SCPE_OK; }
@@ -352,7 +352,7 @@ rbuf[CDR_WIDTH] = 0; /* null at end */
fputs (rbuf, uptr -> fileref); /* write card */
fputc ('\n', uptr -> fileref); /* plus new line */
if (ferror (uptr -> fileref)) { /* error? */
perror ("Card stacker I/O error");
sim_perror ("Card stacker I/O error");
clearerr (uptr -> fileref);
}
uptr -> pos = ftell (uptr -> fileref); /* update position */
@@ -397,7 +397,7 @@ if (!cdp_ebcdic) {
}
}
if (ferror (uptr -> fileref)) { /* error? */
perror ("Card punch I/O error");
sim_perror ("Card punch I/O error");
clearerr (uptr -> fileref);
pcherror = 1;
}

View File

@@ -240,7 +240,7 @@ else {
}
lines = lflag = 0; /* clear cc action */
if (ferror (lpt_unit.fileref)) { /* error? */
perror ("Line printer I/O error");
sim_perror ("Line printer I/O error");
clearerr (lpt_unit.fileref);
lpterror = 1;
}