stat 1014 src/dps8/dps8_console.c t_stat stat = cmdp->action (cmdp->arg, cptr); stat 1016 src/dps8/dps8_console.c if (stat != SCPE_OK) stat 1020 src/dps8/dps8_console.c SIM_NAME, stat, sim_error_text (stat)); stat 818 src/dps8/dps8_crdrdr.c struct stat info; stat 826 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 1811 src/dps8/dps8_sys.c t_stat stat = cmdp->action (cmdp->arg, cptr); /* if found, exec */ stat 1812 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 1364 src/simh/scp.c t_stat process_stdin_commands (t_stat stat, char *argv[]); stat 1510 src/simh/scp.c t_stat stat; stat 1829 src/simh/scp.c if ((stat = sim_ttinit ()) != SCPE_OK) { stat 1831 src/simh/scp.c sim_error_text (stat)); stat 1840 src/simh/scp.c if ((stat = reset_all_p (0)) != SCPE_OK) { stat 1842 src/simh/scp.c sim_error_text (stat)); stat 1846 src/simh/scp.c if ((stat = sim_brk_init ()) != SCPE_OK) { stat 1848 src/simh/scp.c sim_error_text (stat)); stat 1866 src/simh/scp.c stat = do_cmd (0, cbuf); /* proc cmd file */ stat 1870 src/simh/scp.c stat = do_cmd (-1, nbuf) & ~SCPE_NOMESSAGE; /* proc default cmd file */ stat 1871 src/simh/scp.c if (stat == SCPE_OPENERR) { /* didn't exist/can't open? */ stat 1877 src/simh/scp.c stat = do_cmd (-1, np) & ~SCPE_NOMESSAGE; /* proc default cmd file */ stat 1882 src/simh/scp.c stat = process_stdin_commands (SCPE_BARE_STATUS(stat), argv); stat 1907 src/simh/scp.c t_stat process_stdin_commands (t_stat stat, char *argv[]) stat 1914 src/simh/scp.c stat = SCPE_BARE_STATUS(stat); /* remove possible flag */ stat 1915 src/simh/scp.c while (stat != SCPE_EXIT) { /* in case exit */ stat 1937 src/simh/scp.c stat = cmdp->action (cmdp->arg, cptr); /* if found, exec */ stat 1939 src/simh/scp.c stat = SCPE_UNK; stat 1940 src/simh/scp.c stat_nomessage = stat & SCPE_NOMESSAGE; /* extract possible message suppression flag */ stat 1942 src/simh/scp.c stat = SCPE_BARE_STATUS(stat); /* remove possible flag */ stat 1943 src/simh/scp.c sim_last_cmd_stat = stat; /* save command error status */ stat 1946 src/simh/scp.c cmdp->message (NULL, stat); /* let it deal with display */ stat 1948 src/simh/scp.c if (stat >= SCPE_BASE) /* error? */ stat 1949 src/simh/scp.c sim_printf ("%s\n", sim_error_text (stat)); stat 1954 src/simh/scp.c return stat; stat 2657 src/simh/scp.c t_stat stat, stat_nomessage; stat 2659 src/simh/scp.c stat = SCPE_OK; stat 2729 src/simh/scp.c stat = goto_cmd (0, label); stat 2730 src/simh/scp.c if (stat != SCPE_OK) { stat 2748 src/simh/scp.c stat = SCPE_OK; /* set good return */ stat 2766 src/simh/scp.c stat = SCPE_NEST; stat 2768 src/simh/scp.c stat = do_cmd (sim_do_depth+1, cptr); /* exec DO cmd */ stat 2771 src/simh/scp.c stat = cmdp->action (cmdp->arg, cptr); /* exec other cmd */ stat 2773 src/simh/scp.c else stat = SCPE_UNK; /* bad cmd given */ stat 2775 src/simh/scp.c stat_nomessage = stat & SCPE_NOMESSAGE; /* extract possible message suppression flag */ stat 2777 src/simh/scp.c stat = SCPE_BARE_STATUS(stat); /* remove possible flag */ stat 2779 src/simh/scp.c if (((stat != SCPE_OK) && (stat != SCPE_EXPECT)) || stat 2784 src/simh/scp.c sim_last_cmd_stat = stat; /* save command error status */ stat 2785 src/simh/scp.c switch (stat) { stat 2788 src/simh/scp.c sim_on_actions[sim_do_depth][stat]); /* use it, otherwise exit */ stat 2799 src/simh/scp.c if ((stat >= SCPE_BASE) && (stat != SCPE_EXIT) && /* error from cmd? */ stat 2800 src/simh/scp.c (stat != SCPE_STEP)) { stat 2809 src/simh/scp.c cmdp->message ((!echo && !sim_quiet) ? sim_do_ocptr[sim_do_depth] : NULL, stat); stat 2811 src/simh/scp.c if (stat >= SCPE_BASE) /* report error if not suppressed */ stat 2812 src/simh/scp.c sim_printf ("%s\n", sim_error_text (stat)); stat 2814 src/simh/scp.c if (stat == SCPE_EXPECT) /* EXPECT status is non actionable */ stat 2815 src/simh/scp.c stat = SCPE_OK; /* so adjust it to SCPE_OK */ stat 2818 src/simh/scp.c (stat != SCPE_OK) && stat 2819 src/simh/scp.c (stat != SCPE_STEP)) { stat 2820 src/simh/scp.c if ((stat <= SCPE_MAX_ERR) && sim_on_actions[sim_do_depth][stat]) stat 2821 src/simh/scp.c sim_brk_setact (sim_on_actions[sim_do_depth][stat]); stat 2849 src/simh/scp.c sim_string_to_stat (cptr, &stat); stat 2850 src/simh/scp.c sim_last_cmd_stat = stat; /* save explicit status as command error status */ stat 2852 src/simh/scp.c stat |= SCPE_NOMESSAGE; /* suppress error message display (in caller) if requested */ stat 2853 src/simh/scp.c return stat; /* return with explicit return status */ stat 2855 src/simh/scp.c return stat | SCPE_NOMESSAGE; /* suppress message since we've already done that here */ stat 5733 src/simh/scp.c t_stat attach_err (UNIT *uptr, t_stat stat) stat 5737 src/simh/scp.c return stat; stat 9646 src/simh/scp.c t_bool sim_send_poll_data (SEND *snd, t_stat *stat) stat 9650 src/simh/scp.c *stat = SCPE_OK; stat 9655 src/simh/scp.c *stat = snd->buffer[snd->extoff++] | SCPE_KFLAG;/* get one */ stat 9657 src/simh/scp.c if (sim_isgraph(*stat & 0xFF) || ((*stat & 0xFF) == ' ')) stat 9658 src/simh/scp.c sprintf (dstr, " '%c'", *stat & 0xFF); stat 9659 src/simh/scp.c sim_debug (snd->dbit, snd->dptr, "Byte value: 0x%02X%s injected\n", *stat & 0xFF, dstr); stat 9668 src/simh/scp.c const char *sim_error_text (t_stat stat) stat 9672 src/simh/scp.c stat &= ~(SCPE_KFLAG|SCPE_BREAK|SCPE_NOMESSAGE); /* remove any flags */ stat 9673 src/simh/scp.c if (stat == SCPE_OK) stat 9675 src/simh/scp.c if ((stat >= SCPE_BASE) && (stat <= SCPE_MAX_ERR)) stat 9676 src/simh/scp.c return scp_errors[stat-SCPE_BASE].message; stat 9677 src/simh/scp.c sprintf(msgbuf, "Error %d", stat); stat 9681 src/simh/scp.c t_stat sim_string_to_stat (const char *cptr, t_stat *stat) stat 9686 src/simh/scp.c *stat = SCPE_ARG; stat 9703 src/simh/scp.c *stat = cond; stat 9921 src/simh/scp.c t_stat sim_messagef (t_stat stat, const char* fmt, ...) stat 9928 src/simh/scp.c t_bool inhibit_message = (!sim_show_message || (stat & SCPE_NOMESSAGE)); stat 9982 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 268 src/simh/sim_defs.h # define SCPE_BARE_STATUS(stat) ((stat) & ~(SCPE_NOMESSAGE|SCPE_KFLAG|SCPE_BREAK)) stat 528 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 437 src/simh/sim_fio.c struct stat stbuf; stat 642 src/simh/sim_timer.c t_stat stat; stat 656 src/simh/sim_timer.c stat = sim_clock_unit[tmr]->action (sim_clock_unit[tmr]); stat 658 src/simh/sim_timer.c if (stat == SCPE_OK) { stat 693 src/simh/sim_timer.c return stat;