1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +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

@@ -504,7 +504,7 @@ do {
sim_printf ("Reader end of file\n");
else return SCPE_OK;
}
else perror ("Reader I/O error");
else sim_perror ("Reader I/O error");
clearerr (uptr->fileref);
return SCPE_IOERR;
}
@@ -519,7 +519,7 @@ do {
sim_printf ("Reader end of file\n");
else return SCPE_OK;
}
else perror ("Reader I/O error");
else sim_perror ("Reader I/O error");
clearerr (uptr->fileref);
return SCPE_IOERR;
}
@@ -570,7 +570,7 @@ if (c >= 0) /* valid? */
sta = fputc (c, uptr->fileref);
else sta = fprintf (uptr->fileref, "!%02d", flex); /* no, encode */
if (sta == EOF) { /* error? */
perror ("Punch I/O error"); /* error? */
sim_perror ("Punch I/O error"); /* error? */
clearerr (uptr->fileref);
return SCPE_IOERR;
}