stat 1012 src/dps8/dps8_console.c t_stat stat = cmdp->action (cmdp->arg, cptr); stat 1014 src/dps8/dps8_console.c if (stat != SCPE_OK) stat 1018 src/dps8/dps8_console.c SIM_NAME, stat, sim_error_text (stat)); stat 806 src/dps8/dps8_crdrdr.c struct stat info; stat 814 src/dps8/dps8_crdrdr.c if (stat(fqname, &info) != 0) stat 549 src/dps8/dps8_disk.c t_stat stat = sim_disk_detach (& dsk_unit [dsk_unit_idx]); stat 550 src/dps8/dps8_disk.c if (stat != SCPE_OK) { stat 551 src/dps8/dps8_disk.c sim_warn ("%s: sim_disk_detach returned %ld\n", __func__, (long) stat); stat 563 src/dps8/dps8_disk.c t_stat stat = attach_unit (& dsk_unit [dsk_unit_idx], disk_filename); stat 564 src/dps8/dps8_disk.c if (stat != SCPE_OK) { stat 565 src/dps8/dps8_disk.c sim_printf ("%s: sim_disk_attach returned %d\n", __func__, stat); stat 566 src/dps8/dps8_disk.c return stat; stat 939 src/dps8/dps8_mt.c t_stat stat = sim_tape_attach (& mt_unit [driveNumber], full_tape_file_name); stat 940 src/dps8/dps8_mt.c if (stat != SCPE_OK) stat 942 src/dps8/dps8_mt.c sim_printf ("%s sim_tape_attach returned %d\n", __func__, stat); stat 943 src/dps8/dps8_mt.c return stat; stat 952 src/dps8/dps8_mt.c t_stat stat = sim_tape_detach (& mt_unit [driveNumber]); stat 953 src/dps8/dps8_mt.c if (stat != SCPE_OK) stat 955 src/dps8/dps8_mt.c sim_warn ("%s sim_tape_detach returned %d\n", __func__, stat); stat 956 src/dps8/dps8_mt.c return stat; stat 1777 src/dps8/dps8_sys.c t_stat stat = cmdp->action (cmdp->arg, cptr); /* if found, exec */ stat 1778 src/dps8/dps8_sys.c if (stat != SCPE_OK) stat 286 src/simh/scp.c t_stat attach_err (UNIT *uptr, t_stat stat); stat 1363 src/simh/scp.c t_stat process_stdin_commands (t_stat stat, char *argv[]); stat 1509 src/simh/scp.c t_stat stat; stat 1828 src/simh/scp.c if ((stat = sim_ttinit ()) != SCPE_OK) { stat 1830 src/simh/scp.c sim_error_text (stat)); stat 1839 src/simh/scp.c if ((stat = reset_all_p (0)) != SCPE_OK) { stat 1841 src/simh/scp.c sim_error_text (stat)); stat 1845 src/simh/scp.c if ((stat = sim_brk_init ()) != SCPE_OK) { stat 1847 src/simh/scp.c sim_error_text (stat)); stat 1865 src/simh/scp.c stat = do_cmd (0, cbuf); /* proc cmd file */ stat 1869 src/simh/scp.c stat = do_cmd (-1, nbuf) & ~SCPE_NOMESSAGE; /* proc default cmd file */ stat 1870 src/simh/scp.c if (stat == SCPE_OPENERR) { /* didn't exist/can't open? */ stat 1876 src/simh/scp.c stat = do_cmd (-1, np) & ~SCPE_NOMESSAGE; /* proc default cmd file */ stat 1881 src/simh/scp.c stat = process_stdin_commands (SCPE_BARE_STATUS(stat), argv); stat 1906 src/simh/scp.c t_stat process_stdin_commands (t_stat stat, char *argv[]) stat 1913 src/simh/scp.c stat = SCPE_BARE_STATUS(stat); /* remove possible flag */ stat 1914 src/simh/scp.c while (stat != SCPE_EXIT) { /* in case exit */ stat 1936 src/simh/scp.c stat = cmdp->action (cmdp->arg, cptr); /* if found, exec */ stat 1938 src/simh/scp.c stat = SCPE_UNK; stat 1939 src/simh/scp.c stat_nomessage = stat & SCPE_NOMESSAGE; /* extract possible message suppression flag */ stat 1941 src/simh/scp.c stat = SCPE_BARE_STATUS(stat); /* remove possible flag */ stat 1942 src/simh/scp.c sim_last_cmd_stat = stat; /* save command error status */ stat 1945 src/simh/scp.c cmdp->message (NULL, stat); /* let it deal with display */ stat 1947 src/simh/scp.c if (stat >= SCPE_BASE) /* error? */ stat 1948 src/simh/scp.c sim_printf ("%s\n", sim_error_text (stat)); stat 1953 src/simh/scp.c return stat; stat 2656 src/simh/scp.c t_stat stat, stat_nomessage; stat 2658 src/simh/scp.c stat = SCPE_OK; stat 2728 src/simh/scp.c stat = goto_cmd (0, label); stat 2729 src/simh/scp.c if (stat != SCPE_OK) { stat 2747 src/simh/scp.c stat = SCPE_OK; /* set good return */ stat 2765 src/simh/scp.c stat = SCPE_NEST; stat 2767 src/simh/scp.c stat = do_cmd (sim_do_depth+1, cptr); /* exec DO cmd */ stat 2770 src/simh/scp.c stat = cmdp->action (cmdp->arg, cptr); /* exec other cmd */ stat 2772 src/simh/scp.c else stat = SCPE_UNK; /* bad cmd given */ stat 2774 src/simh/scp.c stat_nomessage = stat & SCPE_NOMESSAGE; /* extract possible message suppression flag */ stat 2776 src/simh/scp.c stat = SCPE_BARE_STATUS(stat); /* remove possible flag */ stat 2778 src/simh/scp.c if (((stat != SCPE_OK) && (stat != SCPE_EXPECT)) || stat 2783 src/simh/scp.c sim_last_cmd_stat = stat; /* save command error status */ stat 2784 src/simh/scp.c switch (stat) { stat 2787 src/simh/scp.c sim_on_actions[sim_do_depth][stat]); /* use it, otherwise exit */ stat 2798 src/simh/scp.c if ((stat >= SCPE_BASE) && (stat != SCPE_EXIT) && /* error from cmd? */ stat 2799 src/simh/scp.c (stat != SCPE_STEP)) { stat 2808 src/simh/scp.c cmdp->message ((!echo && !sim_quiet) ? sim_do_ocptr[sim_do_depth] : NULL, stat); stat 2810 src/simh/scp.c if (stat >= SCPE_BASE) /* report error if not suppressed */ stat 2811 src/simh/scp.c sim_printf ("%s\n", sim_error_text (stat)); stat 2813 src/simh/scp.c if (stat == SCPE_EXPECT) /* EXPECT status is non actionable */ stat 2814 src/simh/scp.c stat = SCPE_OK; /* so adjust it to SCPE_OK */ stat 2817 src/simh/scp.c (stat != SCPE_OK) && stat 2818 src/simh/scp.c (stat != SCPE_STEP)) { stat 2819 src/simh/scp.c if ((stat <= SCPE_MAX_ERR) && sim_on_actions[sim_do_depth][stat]) stat 2820 src/simh/scp.c sim_brk_setact (sim_on_actions[sim_do_depth][stat]); stat 2848 src/simh/scp.c sim_string_to_stat (cptr, &stat); stat 2849 src/simh/scp.c sim_last_cmd_stat = stat; /* save explicit status as command error status */ stat 2851 src/simh/scp.c stat |= SCPE_NOMESSAGE; /* suppress error message display (in caller) if requested */ stat 2852 src/simh/scp.c return stat; /* return with explicit return status */ stat 2854 src/simh/scp.c return stat | SCPE_NOMESSAGE; /* suppress message since we've already done that here */ stat 5520 src/simh/scp.c t_stat attach_err (UNIT *uptr, t_stat stat) stat 5524 src/simh/scp.c return stat; stat 9433 src/simh/scp.c t_bool sim_send_poll_data (SEND *snd, t_stat *stat) stat 9437 src/simh/scp.c *stat = SCPE_OK; stat 9442 src/simh/scp.c *stat = snd->buffer[snd->extoff++] | SCPE_KFLAG;/* get one */ stat 9444 src/simh/scp.c if (sim_isgraph(*stat & 0xFF) || ((*stat & 0xFF) == ' ')) stat 9445 src/simh/scp.c sprintf (dstr, " '%c'", *stat & 0xFF); stat 9446 src/simh/scp.c sim_debug (snd->dbit, snd->dptr, "Byte value: 0x%02X%s injected\n", *stat & 0xFF, dstr); stat 9455 src/simh/scp.c const char *sim_error_text (t_stat stat) stat 9459 src/simh/scp.c stat &= ~(SCPE_KFLAG|SCPE_BREAK|SCPE_NOMESSAGE); /* remove any flags */ stat 9460 src/simh/scp.c if (stat == SCPE_OK) stat 9462 src/simh/scp.c if ((stat >= SCPE_BASE) && (stat <= SCPE_MAX_ERR)) stat 9463 src/simh/scp.c return scp_errors[stat-SCPE_BASE].message; stat 9464 src/simh/scp.c sprintf(msgbuf, "Error %d", stat); stat 9468 src/simh/scp.c t_stat sim_string_to_stat (const char *cptr, t_stat *stat) stat 9473 src/simh/scp.c *stat = SCPE_ARG; stat 9490 src/simh/scp.c *stat = cond; stat 9687 src/simh/scp.c t_stat sim_messagef (t_stat stat, const char* fmt, ...) stat 9694 src/simh/scp.c t_bool inhibit_message = (!sim_show_message || (stat & SCPE_NOMESSAGE)); stat 9748 src/simh/scp.c return stat | SCPE_NOMESSAGE; stat 183 src/simh/scp.h t_bool sim_send_poll_data (SEND *snd, t_stat *stat); stat 196 src/simh/scp.h const char *sim_error_text (t_stat stat); stat 199 src/simh/scp.h t_stat sim_messagef (t_stat stat, const char *fmt, ...) GCC_FMT_ATTR(2, 3); stat 568 src/simh/sim_console.c static t_stat _sim_rem_message (const char *cmd, t_stat stat) stat 571 src/simh/sim_console.c t_stat stat_nomessage = stat & SCPE_NOMESSAGE; /* extract possible message suppression flag */ stat 574 src/simh/sim_console.c stat = SCPE_BARE_STATUS(stat); /* remove possible flag */ stat 577 src/simh/sim_console.c cmdp->message (NULL, stat); /* let it deal with display */ stat 579 src/simh/sim_console.c if (stat >= SCPE_BASE) /* error? */ stat 580 src/simh/sim_console.c sim_printf ("%s\r\n", sim_error_text (stat)); stat 583 src/simh/sim_console.c return stat; stat 613 src/simh/sim_console.c t_stat stat; stat 624 src/simh/sim_console.c stat = sim_rem_active_command->action (sim_rem_active_command->arg, cptr);/* execute command */ stat 625 src/simh/sim_console.c if (stat != SCPE_OK) stat 626 src/simh/sim_console.c stat = _sim_rem_message (gbuf, stat); /* display results */ stat 627 src/simh/sim_console.c sim_last_cmd_stat = SCPE_BARE_STATUS(stat); stat 639 src/simh/sim_console.c t_stat stat = SCPE_OK; stat 665 src/simh/sim_console.c stat = SCPE_OK; stat 671 src/simh/sim_console.c stat = SCPE_STEP; stat 672 src/simh/sim_console.c _sim_rem_message ("STEP", stat); /* produce a STEP complete message */ stat 703 src/simh/sim_console.c stat = SCPE_STOP; stat 704 src/simh/sim_console.c _sim_rem_message ("RUN", stat); stat 748 src/simh/sim_console.c if (stat == SCPE_EXIT) stat 749 src/simh/sim_console.c return stat|SCPE_NOMESSAGE; stat 908 src/simh/sim_console.c stat = SCPE_UNK; stat 913 src/simh/sim_console.c stat = SCPE_OK; stat 919 src/simh/sim_console.c stat = SCPE_OK; stat 923 src/simh/sim_console.c stat = SCPE_2MARG; stat 925 src/simh/sim_console.c steps = (int32) get_uint (gbuf, 10, INT_MAX, &stat); stat 926 src/simh/sim_console.c if ((stat != SCPE_OK) || (steps <= 0)) /* error? */ stat 927 src/simh/sim_console.c stat = SCPE_ARG; stat 930 src/simh/sim_console.c if (stat != SCPE_OK) stat 936 src/simh/sim_console.c stat = basecmdp->action (cmdp->arg, cptr); stat 938 src/simh/sim_console.c if (stat == SCPE_OK) { stat 944 src/simh/sim_console.c stat = SCPE_REMOTE; /* force processing outside of sim_instr() */ stat 949 src/simh/sim_console.c stat = SCPE_INVREM; stat 952 src/simh/sim_console.c if ((stat != SCPE_OK) && (stat != SCPE_REMOTE)) stat 953 src/simh/sim_console.c stat = _sim_rem_message (gbuf, stat); stat 1003 src/simh/sim_console.c (stat == SCPE_REMOTE)) { stat 266 src/simh/sim_defs.h # define SCPE_BARE_STATUS(stat) ((stat) & ~(SCPE_NOMESSAGE|SCPE_KFLAG|SCPE_BREAK)) stat 526 src/simh/sim_defs.h void (*message)(const char *unechoed_cmdline, t_stat stat); stat 492 src/simh/sim_disk.c static t_stat _err_return (UNIT *uptr, t_stat stat) stat 498 src/simh/sim_disk.c return stat; stat 438 src/simh/sim_fio.c struct stat stbuf; stat 621 src/simh/sim_timer.c t_stat stat; stat 635 src/simh/sim_timer.c stat = sim_clock_unit[tmr]->action (sim_clock_unit[tmr]); stat 637 src/simh/sim_timer.c if (stat == SCPE_OK) { stat 662 src/simh/sim_timer.c return stat;