mirror of
https://github.com/simh/simh.git
synced 2026-02-03 15:13:56 +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:
@@ -295,7 +295,7 @@ if ((uptr->flags & UNIT_ATT) == 0) /* attached? */
|
||||
fputs (cdr_buf, uptr->fileref); /* write card */
|
||||
uptr->pos = ftell (uptr->fileref); /* update position */
|
||||
if (ferror (uptr->fileref)) { /* error? */
|
||||
perror ("Card stacker I/O error");
|
||||
sim_perror ("Card stacker I/O error");
|
||||
clearerr (uptr->fileref);
|
||||
if (iochk)
|
||||
return SCPE_IOERR;
|
||||
@@ -375,7 +375,7 @@ fputs (cdp_buf, uptr->fileref); /* output card */
|
||||
fputc ('\n', uptr->fileref); /* plus new line */
|
||||
uptr->pos = ftell (uptr->fileref); /* update position */
|
||||
if (ferror (uptr->fileref)) { /* error? */
|
||||
perror ("Card punch I/O error");
|
||||
sim_perror ("Card punch I/O error");
|
||||
clearerr (uptr->fileref);
|
||||
if (iochk)
|
||||
return SCPE_IOERR;
|
||||
@@ -413,7 +413,7 @@ if (feof (cdr_unit.fileref)) /* eof? */
|
||||
return STOP_NOCD;
|
||||
if (ferror (cdr_unit.fileref)) { /* error? */
|
||||
ind[IN_READ] = 1;
|
||||
perror ("Card reader I/O error");
|
||||
sim_perror ("Card reader I/O error");
|
||||
clearerr (cdr_unit.fileref);
|
||||
if (iochk)
|
||||
return SCPE_IOERR;
|
||||
|
||||
@@ -246,7 +246,7 @@ if ((lpt_unit.flags & UNIT_ATT) != 0) { /* attached? */
|
||||
fputs (buf, lpt_unit.fileref); /* print string */
|
||||
if (ferror (lpt_unit.fileref)) { /* error? */
|
||||
ind[IN_LPT] = 1;
|
||||
perror ("Line printer I/O error");
|
||||
sim_perror ("Line printer I/O error");
|
||||
clearerr (lpt_unit.fileref);
|
||||
if (iochk)
|
||||
return SCPE_IOERR;
|
||||
|
||||
Reference in New Issue
Block a user