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 1979 src/simh/scp.c if ((stat = sim_ttinit ()) != SCPE_OK) { stat 1981 src/simh/scp.c sim_error_text (stat)); stat 1990 src/simh/scp.c if ((stat = reset_all_p (0)) != SCPE_OK) { stat 1992 src/simh/scp.c sim_error_text (stat)); stat 1996 src/simh/scp.c if ((stat = sim_brk_init ()) != SCPE_OK) { stat 1998 src/simh/scp.c sim_error_text (stat)); stat 2016 src/simh/scp.c stat = do_cmd (0, cbuf); /* proc cmd file */ stat 2020 src/simh/scp.c stat = do_cmd (-1, nbuf) & ~SCPE_NOMESSAGE; /* proc default cmd file */ stat 2021 src/simh/scp.c if (stat == SCPE_OPENERR) { /* didn't exist/can't open? */ stat 2027 src/simh/scp.c stat = do_cmd (-1, np) & ~SCPE_NOMESSAGE; /* proc default cmd file */ stat 2032 src/simh/scp.c stat = process_stdin_commands (SCPE_BARE_STATUS(stat), argv); stat 2057 src/simh/scp.c t_stat process_stdin_commands (t_stat stat, char *argv[]) stat 2064 src/simh/scp.c stat = SCPE_BARE_STATUS(stat); /* remove possible flag */ stat 2065 src/simh/scp.c while (stat != SCPE_EXIT) { /* in case exit */ stat 2087 src/simh/scp.c stat = cmdp->action (cmdp->arg, cptr); /* if found, exec */ stat 2089 src/simh/scp.c stat = SCPE_UNK; stat 2090 src/simh/scp.c stat_nomessage = stat & SCPE_NOMESSAGE; /* extract possible message suppression flag */ stat 2092 src/simh/scp.c stat = SCPE_BARE_STATUS(stat); /* remove possible flag */ stat 2093 src/simh/scp.c sim_last_cmd_stat = stat; /* save command error status */ stat 2096 src/simh/scp.c cmdp->message (NULL, stat); /* let it deal with display */ stat 2098 src/simh/scp.c if (stat >= SCPE_BASE) /* error? */ stat 2099 src/simh/scp.c sim_printf ("%s\n", sim_error_text (stat)); stat 2104 src/simh/scp.c return stat; stat 2846 src/simh/scp.c t_stat stat, stat_nomessage; stat 2848 src/simh/scp.c stat = SCPE_OK; stat 2918 src/simh/scp.c stat = goto_cmd (0, label); stat 2919 src/simh/scp.c if (stat != SCPE_OK) { stat 2937 src/simh/scp.c stat = SCPE_OK; /* set good return */ stat 2955 src/simh/scp.c stat = SCPE_NEST; stat 2957 src/simh/scp.c stat = do_cmd (sim_do_depth+1, cptr); /* exec DO cmd */ stat 2960 src/simh/scp.c stat = cmdp->action (cmdp->arg, cptr); /* exec other cmd */ stat 2962 src/simh/scp.c else stat = SCPE_UNK; /* bad cmd given */ stat 2964 src/simh/scp.c stat_nomessage = stat & SCPE_NOMESSAGE; /* extract possible message suppression flag */ stat 2966 src/simh/scp.c stat = SCPE_BARE_STATUS(stat); /* remove possible flag */ stat 2968 src/simh/scp.c if (((stat != SCPE_OK) && (stat != SCPE_EXPECT)) || stat 2973 src/simh/scp.c sim_last_cmd_stat = stat; /* save command error status */ stat 2974 src/simh/scp.c switch (stat) { stat 2977 src/simh/scp.c sim_on_actions[sim_do_depth][stat]); /* use it, otherwise exit */ stat 2988 src/simh/scp.c if ((stat >= SCPE_BASE) && (stat != SCPE_EXIT) && /* error from cmd? */ stat 2989 src/simh/scp.c (stat != SCPE_STEP)) { stat 2998 src/simh/scp.c cmdp->message ((!echo && !sim_quiet) ? sim_do_ocptr[sim_do_depth] : NULL, stat); stat 3000 src/simh/scp.c if (stat >= SCPE_BASE) /* report error if not suppressed */ stat 3001 src/simh/scp.c sim_printf ("%s\n", sim_error_text (stat)); stat 3003 src/simh/scp.c if (stat == SCPE_EXPECT) /* EXPECT status is non actionable */ stat 3004 src/simh/scp.c stat = SCPE_OK; /* so adjust it to SCPE_OK */ stat 3007 src/simh/scp.c (stat != SCPE_OK) && stat 3008 src/simh/scp.c (stat != SCPE_STEP)) { stat 3009 src/simh/scp.c if ((stat <= SCPE_MAX_ERR) && sim_on_actions[sim_do_depth][stat]) stat 3010 src/simh/scp.c sim_brk_setact (sim_on_actions[sim_do_depth][stat]); stat 3038 src/simh/scp.c sim_string_to_stat (cptr, &stat); stat 3039 src/simh/scp.c sim_last_cmd_stat = stat; /* save explicit status as command error status */ stat 3041 src/simh/scp.c stat |= SCPE_NOMESSAGE; /* suppress error message display (in caller) if requested */ stat 3042 src/simh/scp.c return stat; /* return with explicit return status */ stat 3044 src/simh/scp.c return stat | SCPE_NOMESSAGE; /* suppress message since we've already done that here */ stat 6065 src/simh/scp.c t_stat attach_err (UNIT *uptr, t_stat stat) stat 6069 src/simh/scp.c return stat; stat 10029 src/simh/scp.c t_bool sim_send_poll_data (SEND *snd, t_stat *stat) stat 10036 src/simh/scp.c *stat = SCPE_OK; stat 10041 src/simh/scp.c *stat = snd->buffer[snd->extoff++] | SCPE_KFLAG;/* get one */ stat 10043 src/simh/scp.c if (sim_isgraph(*stat & 0xFF) || ((*stat & 0xFF) == ' ')) stat 10044 src/simh/scp.c (void)sprintf (dstr, " '%c'", *stat & 0xFF); stat 10045 src/simh/scp.c sim_debug (snd->dbit, snd->dptr, "Byte value: 0x%02X%s injected\n", *stat & 0xFF, dstr); stat 10054 src/simh/scp.c const char *sim_error_text (t_stat stat) stat 10058 src/simh/scp.c stat &= ~(SCPE_KFLAG|SCPE_BREAK|SCPE_NOMESSAGE); /* remove any flags */ stat 10059 src/simh/scp.c if (stat == SCPE_OK) stat 10061 src/simh/scp.c if ((stat >= SCPE_BASE) && (stat <= SCPE_MAX_ERR)) stat 10062 src/simh/scp.c return scp_errors[stat-SCPE_BASE].message; stat 10063 src/simh/scp.c (void)sprintf(msgbuf, "Error %d", stat); stat 10067 src/simh/scp.c t_stat sim_string_to_stat (const char *cptr, t_stat *stat) stat 10072 src/simh/scp.c *stat = SCPE_ARG; stat 10091 src/simh/scp.c *stat = cond; stat 10290 src/simh/scp.c t_stat sim_messagef (t_stat stat, const char* fmt, ...) stat 10297 src/simh/scp.c t_bool inhibit_message = (!sim_show_message || (stat & SCPE_NOMESSAGE)); stat 10351 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;