stat 1020 src/dps8/dps8_console.c t_stat stat = cmdp->action (cmdp->arg, cptr); stat 1022 src/dps8/dps8_console.c if (stat != SCPE_OK) stat 1026 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 547 src/dps8/dps8_disk.c t_stat stat = sim_disk_detach (& dsk_unit [dsk_unit_idx]); stat 548 src/dps8/dps8_disk.c if (stat != SCPE_OK) { stat 549 src/dps8/dps8_disk.c sim_warn ("%s: sim_disk_detach returned %ld\n", __func__, (long) stat); stat 561 src/dps8/dps8_disk.c t_stat stat = attach_unit (& dsk_unit [dsk_unit_idx], disk_filename); stat 562 src/dps8/dps8_disk.c if (stat != SCPE_OK) { stat 563 src/dps8/dps8_disk.c sim_printf ("%s: sim_disk_attach returned %d\n", __func__, stat); stat 564 src/dps8/dps8_disk.c return stat; stat 941 src/dps8/dps8_mt.c t_stat stat = sim_tape_attach (& mt_unit [driveNumber], full_tape_file_name); stat 942 src/dps8/dps8_mt.c if (stat != SCPE_OK) stat 944 src/dps8/dps8_mt.c sim_printf ("%s sim_tape_attach returned %d\n", __func__, stat); stat 945 src/dps8/dps8_mt.c return stat; stat 954 src/dps8/dps8_mt.c t_stat stat = sim_tape_detach (& mt_unit [driveNumber]); stat 955 src/dps8/dps8_mt.c if (stat != SCPE_OK) stat 957 src/dps8/dps8_mt.c sim_warn ("%s sim_tape_detach returned %d\n", __func__, stat); stat 958 src/dps8/dps8_mt.c return stat; stat 1756 src/dps8/dps8_sys.c t_stat stat = cmdp->action (cmdp->arg, cptr); /* if found, exec */ stat 1757 src/dps8/dps8_sys.c if (stat != SCPE_OK) stat 57 src/libsir/include/sir/filesystem.h bool _sir_pathgetstat(const char* restrict path, struct stat* restrict st, sir_rel_to rel_to); stat 181 src/libsir/src/sirfilecache.c struct stat st = {0}; stat 185 src/libsir/src/sirfilecache.c getstat = stat(sf->path, &st); stat 502 src/libsir/src/sirfilecache.c struct stat st1 = {0}; stat 503 src/libsir/src/sirfilecache.c struct stat st2 = {0}; stat 511 src/libsir/src/sirfilecache.c if ((!stat(resolved1, &st1) && !stat(resolved2, &st2)) || stat 512 src/libsir/src/sirfilecache.c (!stat(path, &st1) && !stat(iter->path, &st2))) { stat 44 src/libsir/src/sirfilesystem.c bool _sir_pathgetstat(const char* restrict path, struct stat* restrict st, sir_rel_to rel_to) { stat 48 src/libsir/src/sirfilesystem.c (void)memset(st, 0, sizeof(struct stat)); stat 97 src/libsir/src/sirfilesystem.c stat_ret = stat(abs_path, st); stat 103 src/libsir/src/sirfilesystem.c stat_ret = stat(path, st); stat 122 src/libsir/src/sirfilesystem.c stat_ret = stat(abs_path, st); stat 125 src/libsir/src/sirfilesystem.c stat_ret = stat(path, st); stat 140 src/libsir/src/sirfilesystem.c struct stat st = {0}; stat 233 src/libsir/src/sirfilesystem.c struct stat st; stat 530 src/libsir/src/sirfilesystem.c struct stat statstruct; stat 556 src/libsir/src/sirfilesystem.c if (stat(symlink, &statstruct) != -1) { stat 568 src/libsir/src/sirfilesystem.c if (stat(symlink, &statstruct) != -1) { stat 357 src/simh/scp.c t_stat attach_err (UNIT *uptr, t_stat stat); stat 1439 src/simh/scp.c t_stat process_stdin_commands (t_stat stat, char *argv[]); stat 1671 src/simh/scp.c t_stat stat; stat 1991 src/simh/scp.c if ((stat = sim_ttinit ()) != SCPE_OK) { stat 1993 src/simh/scp.c sim_error_text (stat)); stat 2002 src/simh/scp.c if ((stat = reset_all_p (0)) != SCPE_OK) { stat 2004 src/simh/scp.c sim_error_text (stat)); stat 2008 src/simh/scp.c if ((stat = sim_brk_init ()) != SCPE_OK) { stat 2010 src/simh/scp.c sim_error_text (stat)); stat 2028 src/simh/scp.c stat = do_cmd (0, cbuf); /* proc cmd file */ stat 2032 src/simh/scp.c stat = do_cmd (-1, nbuf) & ~SCPE_NOMESSAGE; /* proc default cmd file */ stat 2033 src/simh/scp.c if (stat == SCPE_OPENERR) { /* didn't exist/can't open? */ stat 2039 src/simh/scp.c stat = do_cmd (-1, np) & ~SCPE_NOMESSAGE; /* proc default cmd file */ stat 2044 src/simh/scp.c stat = process_stdin_commands (SCPE_BARE_STATUS(stat), argv); stat 2069 src/simh/scp.c t_stat process_stdin_commands (t_stat stat, char *argv[]) stat 2076 src/simh/scp.c stat = SCPE_BARE_STATUS(stat); /* remove possible flag */ stat 2077 src/simh/scp.c while (stat != SCPE_EXIT) { /* in case exit */ stat 2099 src/simh/scp.c stat = cmdp->action (cmdp->arg, cptr); /* if found, exec */ stat 2101 src/simh/scp.c stat = SCPE_UNK; stat 2102 src/simh/scp.c stat_nomessage = stat & SCPE_NOMESSAGE; /* extract possible message suppression flag */ stat 2104 src/simh/scp.c stat = SCPE_BARE_STATUS(stat); /* remove possible flag */ stat 2105 src/simh/scp.c sim_last_cmd_stat = stat; /* save command error status */ stat 2108 src/simh/scp.c cmdp->message (NULL, stat); /* let it deal with display */ stat 2110 src/simh/scp.c if (stat >= SCPE_BASE) /* error? */ stat 2111 src/simh/scp.c sim_printf ("%s\n", sim_error_text (stat)); stat 2116 src/simh/scp.c return stat; stat 2858 src/simh/scp.c t_stat stat, stat_nomessage; stat 2860 src/simh/scp.c stat = SCPE_OK; stat 2930 src/simh/scp.c stat = goto_cmd (0, label); stat 2931 src/simh/scp.c if (stat != SCPE_OK) { stat 2949 src/simh/scp.c stat = SCPE_OK; /* set good return */ stat 2967 src/simh/scp.c stat = SCPE_NEST; stat 2969 src/simh/scp.c stat = do_cmd (sim_do_depth+1, cptr); /* exec DO cmd */ stat 2972 src/simh/scp.c stat = cmdp->action (cmdp->arg, cptr); /* exec other cmd */ stat 2974 src/simh/scp.c else stat = SCPE_UNK; /* bad cmd given */ stat 2976 src/simh/scp.c stat_nomessage = stat & SCPE_NOMESSAGE; /* extract possible message suppression flag */ stat 2978 src/simh/scp.c stat = SCPE_BARE_STATUS(stat); /* remove possible flag */ stat 2980 src/simh/scp.c if (((stat != SCPE_OK) && (stat != SCPE_EXPECT)) || stat 2985 src/simh/scp.c sim_last_cmd_stat = stat; /* save command error status */ stat 2986 src/simh/scp.c switch (stat) { stat 2989 src/simh/scp.c sim_on_actions[sim_do_depth][stat]); /* use it, otherwise exit */ stat 3000 src/simh/scp.c if ((stat >= SCPE_BASE) && (stat != SCPE_EXIT) && /* error from cmd? */ stat 3001 src/simh/scp.c (stat != SCPE_STEP)) { stat 3010 src/simh/scp.c cmdp->message ((!echo && !sim_quiet) ? sim_do_ocptr[sim_do_depth] : NULL, stat); stat 3012 src/simh/scp.c if (stat >= SCPE_BASE) /* report error if not suppressed */ stat 3013 src/simh/scp.c sim_printf ("%s\n", sim_error_text (stat)); stat 3015 src/simh/scp.c if (stat == SCPE_EXPECT) /* EXPECT status is non actionable */ stat 3016 src/simh/scp.c stat = SCPE_OK; /* so adjust it to SCPE_OK */ stat 3019 src/simh/scp.c (stat != SCPE_OK) && stat 3020 src/simh/scp.c (stat != SCPE_STEP)) { stat 3021 src/simh/scp.c if ((stat <= SCPE_MAX_ERR) && sim_on_actions[sim_do_depth][stat]) stat 3022 src/simh/scp.c sim_brk_setact (sim_on_actions[sim_do_depth][stat]); stat 3050 src/simh/scp.c sim_string_to_stat (cptr, &stat); stat 3051 src/simh/scp.c sim_last_cmd_stat = stat; /* save explicit status as command error status */ stat 3053 src/simh/scp.c stat |= SCPE_NOMESSAGE; /* suppress error message display (in caller) if requested */ stat 3054 src/simh/scp.c return stat; /* return with explicit return status */ stat 3056 src/simh/scp.c return stat | SCPE_NOMESSAGE; /* suppress message since we've already done that here */ stat 6077 src/simh/scp.c t_stat attach_err (UNIT *uptr, t_stat stat) stat 6081 src/simh/scp.c return stat; stat 10041 src/simh/scp.c t_bool sim_send_poll_data (SEND *snd, t_stat *stat) stat 10048 src/simh/scp.c *stat = SCPE_OK; stat 10053 src/simh/scp.c *stat = snd->buffer[snd->extoff++] | SCPE_KFLAG;/* get one */ stat 10055 src/simh/scp.c if (sim_isgraph(*stat & 0xFF) || ((*stat & 0xFF) == ' ')) stat 10056 src/simh/scp.c (void)sprintf (dstr, " '%c'", *stat & 0xFF); stat 10057 src/simh/scp.c sim_debug (snd->dbit, snd->dptr, "Byte value: 0x%02X%s injected\n", *stat & 0xFF, dstr); stat 10066 src/simh/scp.c const char *sim_error_text (t_stat stat) stat 10070 src/simh/scp.c stat &= ~(SCPE_KFLAG|SCPE_BREAK|SCPE_NOMESSAGE); /* remove any flags */ stat 10071 src/simh/scp.c if (stat == SCPE_OK) stat 10073 src/simh/scp.c if ((stat >= SCPE_BASE) && (stat <= SCPE_MAX_ERR)) stat 10074 src/simh/scp.c return scp_errors[stat-SCPE_BASE].message; stat 10075 src/simh/scp.c (void)sprintf(msgbuf, "Error %d", stat); stat 10079 src/simh/scp.c t_stat sim_string_to_stat (const char *cptr, t_stat *stat) stat 10084 src/simh/scp.c *stat = SCPE_ARG; stat 10103 src/simh/scp.c *stat = cond; stat 10302 src/simh/scp.c t_stat sim_messagef (t_stat stat, const char* fmt, ...) stat 10309 src/simh/scp.c t_bool inhibit_message = (!sim_show_message || (stat & SCPE_NOMESSAGE)); stat 10363 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 576 src/simh/sim_console.c static t_stat _sim_rem_message (const char *cmd, t_stat stat) stat 579 src/simh/sim_console.c t_stat stat_nomessage = stat & SCPE_NOMESSAGE; /* extract possible message suppression flag */ stat 582 src/simh/sim_console.c stat = SCPE_BARE_STATUS(stat); /* remove possible flag */ stat 585 src/simh/sim_console.c cmdp->message (NULL, stat); /* let it deal with display */ stat 587 src/simh/sim_console.c if (stat >= SCPE_BASE) /* error? */ stat 588 src/simh/sim_console.c sim_printf ("%s\r\n", sim_error_text (stat)); stat 591 src/simh/sim_console.c return stat; stat 621 src/simh/sim_console.c t_stat stat; stat 632 src/simh/sim_console.c stat = sim_rem_active_command->action (sim_rem_active_command->arg, cptr);/* execute command */ stat 633 src/simh/sim_console.c if (stat != SCPE_OK) stat 634 src/simh/sim_console.c stat = _sim_rem_message (gbuf, stat); /* display results */ stat 635 src/simh/sim_console.c sim_last_cmd_stat = SCPE_BARE_STATUS(stat); stat 647 src/simh/sim_console.c t_stat stat = SCPE_OK; stat 676 src/simh/sim_console.c stat = SCPE_OK; stat 682 src/simh/sim_console.c stat = SCPE_STEP; stat 683 src/simh/sim_console.c _sim_rem_message ("STEP", stat); /* produce a STEP complete message */ stat 714 src/simh/sim_console.c stat = SCPE_STOP; stat 715 src/simh/sim_console.c _sim_rem_message ("RUN", stat); stat 761 src/simh/sim_console.c if (stat == SCPE_EXIT) stat 762 src/simh/sim_console.c return stat|SCPE_NOMESSAGE; stat 923 src/simh/sim_console.c stat = SCPE_UNK; stat 931 src/simh/sim_console.c stat = SCPE_OK; stat 937 src/simh/sim_console.c stat = SCPE_OK; stat 941 src/simh/sim_console.c stat = SCPE_2MARG; stat 943 src/simh/sim_console.c steps = (int32) get_uint (gbuf, 10, INT_MAX, &stat); stat 944 src/simh/sim_console.c if ((stat != SCPE_OK) || (steps <= 0)) /* error? */ stat 945 src/simh/sim_console.c stat = SCPE_ARG; stat 948 src/simh/sim_console.c if (stat != SCPE_OK) stat 954 src/simh/sim_console.c stat = basecmdp->action (cmdp->arg, cptr); stat 956 src/simh/sim_console.c if (stat == SCPE_OK) { stat 962 src/simh/sim_console.c stat = SCPE_REMOTE; /* force processing outside of sim_instr() */ stat 967 src/simh/sim_console.c stat = SCPE_INVREM; stat 970 src/simh/sim_console.c if ((stat != SCPE_OK) && (stat != SCPE_REMOTE)) stat 971 src/simh/sim_console.c stat = _sim_rem_message (gbuf, stat); stat 1021 src/simh/sim_console.c (stat == SCPE_REMOTE)) { stat 280 src/simh/sim_defs.h # define SCPE_BARE_STATUS(stat) ((stat) & ~(SCPE_NOMESSAGE|SCPE_KFLAG|SCPE_BREAK)) stat 538 src/simh/sim_defs.h void (*message)(const char *unechoed_cmdline, t_stat stat); stat 502 src/simh/sim_disk.c static t_stat _err_return (UNIT *uptr, t_stat stat) stat 508 src/simh/sim_disk.c return stat; stat 444 src/simh/sim_fio.c struct stat stbuf; stat 656 src/simh/sim_timer.c t_stat stat; stat 670 src/simh/sim_timer.c stat = sim_clock_unit[tmr]->action (sim_clock_unit[tmr]); stat 672 src/simh/sim_timer.c if (stat == SCPE_OK) { stat 697 src/simh/sim_timer.c return stat;