rc 381 src/dps8/dps8_absi.c int rc = udp_send (absi_state[unit].link, pkt, (uint16_t) sz, rc 383 src/dps8/dps8_absi.c if (rc < 0) rc 277 src/dps8/dps8_cable.c t_stat rc = back_cable_iom_to_scu (uncable, iom_unit_idx, iom_port_num, rc 279 src/dps8/dps8_cable.c if (rc) rc 281 src/dps8/dps8_cable.c return rc; rc 300 src/dps8/dps8_cable.c t_stat rc = back_cable_iom_to_scu (uncable, iom_unit_idx, iom_port_num, rc 302 src/dps8/dps8_cable.c if (rc) rc 304 src/dps8/dps8_cable.c return rc; rc 362 src/dps8/dps8_cable.c t_stat rc = back_cable_cpu_to_scu (uncable, cpu_unit_idx, cpu_port_num, rc 364 src/dps8/dps8_cable.c if (rc) rc 366 src/dps8/dps8_cable.c return rc; rc 386 src/dps8/dps8_cable.c t_stat rc = back_cable_cpu_to_scu (uncable, cpu_unit_idx, cpu_port_num, rc 388 src/dps8/dps8_cable.c if (rc) rc 390 src/dps8/dps8_cable.c return rc; rc 608 src/dps8/dps8_cable.c t_stat rc = cable_ctlr_to_iom (uncable, there, rc 610 src/dps8/dps8_cable.c if (rc) rc 612 src/dps8/dps8_cable.c return rc; rc 627 src/dps8/dps8_cable.c t_stat rc = cable_ctlr_to_iom (uncable, there, rc 629 src/dps8/dps8_cable.c if (rc) rc 631 src/dps8/dps8_cable.c return rc; rc 960 src/dps8/dps8_cable.c t_stat rc = cable_periph_to_ctlr (uncable, rc 964 src/dps8/dps8_cable.c if (rc) rc 966 src/dps8/dps8_cable.c return rc; rc 982 src/dps8/dps8_cable.c t_stat rc = cable_periph_to_ctlr (uncable, rc 986 src/dps8/dps8_cable.c if (rc) rc 988 src/dps8/dps8_cable.c return rc; rc 1266 src/dps8/dps8_cable.c t_stat rc = SCPE_ARG; rc 1283 src/dps8/dps8_cable.c rc = sys_cable_ripout (0, NULL); rc 1285 src/dps8/dps8_cable.c rc = sys_cable_show (0, NULL); rc 1287 src/dps8/dps8_cable.c rc = sys_cable_show (1, NULL); rc 1289 src/dps8/dps8_cable.c rc = sys_cable_graph (); rc 1291 src/dps8/dps8_cable.c rc = cable_scu (arg, unit_num, & name_save); rc 1293 src/dps8/dps8_cable.c rc = cable_iom (arg, unit_num, & name_save); rc 1295 src/dps8/dps8_cable.c rc = cable_mtp (arg, unit_num, & name_save); rc 1297 src/dps8/dps8_cable.c rc = cable_ipc (arg, unit_num, & name_save); rc 1299 src/dps8/dps8_cable.c rc = cable_msp (arg, unit_num, & name_save); rc 1301 src/dps8/dps8_cable.c rc = cable_urp (arg, unit_num, & name_save); rc 1313 src/dps8/dps8_cable.c return rc; rc 619 src/dps8/dps8_console.c int rc = tcgetattr (0, & ttyTermios); /* get old flags */ rc 620 src/dps8/dps8_console.c if (rc) rc 649 src/dps8/dps8_console.c rc 656 src/dps8/dps8_console.c int rc = sscanf (text, "%*d.%*d RCP: Mount Reel %s %s ring on %s", rc 658 src/dps8/dps8_console.c if (rc == 3) rc 668 src/dps8/dps8_console.c rc = sscanf (text, "%*d.%*d RCP: Remount Reel %s %s ring on %s", rc 670 src/dps8/dps8_console.c if (rc == 3) rc 684 src/dps8/dps8_console.c rc = sscanf (text, "%*d as dial_ctl_: Channel %s dialed to Initializer", rc 686 src/dps8/dps8_console.c if (rc == 1) rc 1277 src/dps8/dps8_console.c iom_cmd_rc_t rc = IOM_CMD_PROCEED; rc 1382 src/dps8/dps8_console.c rc = IOM_CMD_DISCONNECT; rc 1395 src/dps8/dps8_console.c rc = IOM_CMD_DISCONNECT; rc 1415 src/dps8/dps8_console.c rc = IOM_CMD_ERROR; rc 1425 src/dps8/dps8_console.c rc = IOM_CMD_ERROR; rc 1467 src/dps8/dps8_console.c rc = IOM_CMD_PENDING; // command in progress; do not send terminate interrupt rc 1641 src/dps8/dps8_console.c return rc; rc 1711 src/dps8/dps8_console.c int rc = cfg_parse (__func__, cptr, opc_config_list, rc 1713 src/dps8/dps8_console.c if (rc == -1) // done rc 1716 src/dps8/dps8_console.c if (rc == -2) // error rc 1721 src/dps8/dps8_console.c const char * p = opc_config_list[rc].name; rc 1748 src/dps8/dps8_console.c rc); rc 1886 src/dps8/dps8_console.c int rc = sscanf (cptr, "%s", token); rc 1887 src/dps8/dps8_console.c if (rc != 1) rc 443 src/dps8/dps8_cpu.c int rc = cfg_parse (__func__, cptr, cpu_config_list, rc 445 src/dps8/dps8_cpu.c if (rc == -1) // done rc 449 src/dps8/dps8_cpu.c if (rc == -2) // error rc 455 src/dps8/dps8_cpu.c const char * p = cpu_config_list [rc] . name; rc 658 src/dps8/dps8_cpu.c (long) rc); rc 2796 src/dps8/dps8_cpu.c int rc = nanosleep (& req, & rem); // XXX Does this work on Windows ??? rc 2798 src/dps8/dps8_cpu.c if (rc == -1) rc 1182 src/dps8/dps8_crdpun.c iom_cmd_rc_t rc = IOM_CMD_PROCEED; rc 1237 src/dps8/dps8_crdpun.c int rc = punWriteRecord (iomUnitIdx, chan); rc 1238 src/dps8/dps8_crdpun.c if (rc) rc 1247 src/dps8/dps8_crdpun.c return rc; rc 1337 src/dps8/dps8_crdpun.c int rc = cfg_parse (__func__, cptr, pun_config_list, & cfg_state, & v); rc 1338 src/dps8/dps8_crdpun.c if (rc == -1) // done rc 1341 src/dps8/dps8_crdpun.c if (rc == -2) // error rc 1346 src/dps8/dps8_crdpun.c const char * p = pun_config_list[rc].name; rc 1355 src/dps8/dps8_crdpun.c (long) rc); rc 419 src/dps8/dps8_crdrdr.c ssize_t rc = read (fd, & ch, 1); rc 420 src/dps8/dps8_crdrdr.c if (rc <= 0) // eof or err rc 436 src/dps8/dps8_crdrdr.c ssize_t rc = read (fd, buffer, 80); rc 437 src/dps8/dps8_crdrdr.c if (rc < 0) rc 439 src/dps8/dps8_crdrdr.c return (int) rc; rc 446 src/dps8/dps8_crdrdr.c ssize_t rc = read (fd, buffer, rawCardImageBytes); rc 447 src/dps8/dps8_crdrdr.c if (rc < 0) rc 449 src/dps8/dps8_crdrdr.c return (int) rc; rc 519 src/dps8/dps8_crdrdr.c int rc = getCardLine (rdr_state [unitIdx].deckfd, cardImage); rc 520 src/dps8/dps8_crdrdr.c if (rc) { rc 522 src/dps8/dps8_crdrdr.c sim_printf ("uid1Sent: getCardLine returned %d\r\n", rc); rc 526 src/dps8/dps8_crdrdr.c rc = unlink (rdr_state [unitIdx].fname); rc 527 src/dps8/dps8_crdrdr.c if (rc) rc 559 src/dps8/dps8_crdrdr.c int rc = getCardLine (rdr_state [unitIdx].deckfd, cardImage); rc 560 src/dps8/dps8_crdrdr.c if (rc) { rc 620 src/dps8/dps8_crdrdr.c int rc = unlink (rdr_state [unitIdx].fname); rc 621 src/dps8/dps8_crdrdr.c if (rc) rc 648 src/dps8/dps8_crdrdr.c rc 649 src/dps8/dps8_crdrdr.c rc 847 src/dps8/dps8_crdrdr.c int rc = unlink (fqname); rc 848 src/dps8/dps8_crdrdr.c if (rc) rc 853 src/dps8/dps8_crdrdr.c rc = unlink (rdr_state [readerIndex] . fname); rc 854 src/dps8/dps8_crdrdr.c if (rc) rc 910 src/dps8/dps8_crdrdr.c iom_cmd_rc_t rc = IOM_CMD_PROCEED; rc 990 src/dps8/dps8_crdrdr.c int rc = rdrReadRecord (iomUnitIdx, chan); rc 992 src/dps8/dps8_crdrdr.c sim_printf ("rdrReadRecord returned %d\r\n", rc); rc 994 src/dps8/dps8_crdrdr.c if (rc) rc 1003 src/dps8/dps8_crdrdr.c return rc; rc 99 src/dps8/dps8_dia.c int rc = cfg_parse ("DIA SET CONFIG", cptr, dia_config_list, & cfg_state, & v); rc 100 src/dps8/dps8_dia.c switch (rc) rc 114 src/dps8/dps8_dia.c sim_printf ("error: DIA SET CONFIG: Invalid cfg_parse rc <%ld>\n", (long) rc); rc 118 src/dps8/dps8_dia.c if (rc < 0) rc 429 src/dps8/dps8_dia.c int rc = dn_udp_send (dia_data.dia_unit_data[dev_unit_idx].link, rc 432 src/dps8/dps8_dia.c if (rc < 0) rc 872 src/dps8/dps8_disk.c int rc = fseek (unitp->fileref, rc 875 src/dps8/dps8_disk.c if (rc) rc 877 src/dps8/dps8_disk.c sim_warn ("%s: fseek (read) returned %d, errno %d\n", __func__, rc, errno); rc 901 src/dps8/dps8_disk.c rc = (int) fread (diskBuffer, sectorSizeBytes, rc 905 src/dps8/dps8_disk.c if (rc == 0) // EOF or error rc 969 src/dps8/dps8_disk.c int rc = fseek (unitp->fileref, rc 972 src/dps8/dps8_disk.c if (rc) rc 974 src/dps8/dps8_disk.c sim_printf ("fseek (read) returned %d, errno %d\n", rc, errno); rc 1003 src/dps8/dps8_disk.c rc = (int) fwrite (diskBuffer, sectorSizeBytes, rc 1008 src/dps8/dps8_disk.c if (rc != (int) tallySectors) rc 1010 src/dps8/dps8_disk.c sim_printf ("fwrite returned %d, errno %d\n", rc, errno); rc 1226 src/dps8/dps8_disk.c iom_cmd_rc_t rc = IOM_CMD_PROCEED; rc 1445 src/dps8/dps8_disk.c rc = IOM_CMD_ERROR; rc 1484 src/dps8/dps8_disk.c rc = IOM_CMD_ERROR; rc 1499 src/dps8/dps8_disk.c rc = IOM_CMD_ERROR; rc 1515 src/dps8/dps8_disk.c rc = IOM_CMD_ERROR; rc 1530 src/dps8/dps8_disk.c rc = IOM_CMD_ERROR; rc 1545 src/dps8/dps8_disk.c rc = IOM_CMD_ERROR; rc 1560 src/dps8/dps8_disk.c rc = IOM_CMD_ERROR; rc 1575 src/dps8/dps8_disk.c rc = IOM_CMD_ERROR; rc 1590 src/dps8/dps8_disk.c rc = IOM_CMD_ERROR; rc 1605 src/dps8/dps8_disk.c rc = IOM_CMD_ERROR; rc 1616 src/dps8/dps8_disk.c return rc; rc 2042 src/dps8/dps8_fnp2.c int rc = parse_ipaddr (tok, & ipaddr); rc 2043 src/dps8/dps8_fnp2.c if (rc < 0) rc 2246 src/dps8/dps8_fnp2.c int rc = cfg_parse ("fnpSetConfig", cptr, fnp_config_list, & cfg_state, & v); rc 2247 src/dps8/dps8_fnp2.c switch (rc) rc 2261 src/dps8/dps8_fnp2.c sim_printf ("error: fnpSetConfig: Invalid cfg_parse rc <%ld>\n", (long) rc); rc 2265 src/dps8/dps8_fnp2.c if (rc < 0) rc 2446 src/dps8/dps8_fnp2.c int rc = 0; rc 2447 src/dps8/dps8_fnp2.c rc = fnpuvInit (fnpData.telnet_port, fnpData.telnet_address); rc 2448 src/dps8/dps8_fnp2.c if (rc != 0) rc 6750 src/dps8/dps8_ins.c t_stat rc = scu_rscr ((uint) scuUnitIdx, current_running_cpu_idx, rc 6756 src/dps8/dps8_ins.c if (rc > 0) rc 6757 src/dps8/dps8_ins.c return rc; rc 7705 src/dps8/dps8_ins.c t_stat rc = scu_rmcm ((uint) scuUnitIdx, rc 7712 src/dps8/dps8_ins.c if (rc) rc 7713 src/dps8/dps8_ins.c return rc; rc 7782 src/dps8/dps8_ins.c t_stat rc = scu_rscr ((uint) scuUnitIdx, current_running_cpu_idx, rc 7789 src/dps8/dps8_ins.c if (rc) rc 7790 src/dps8/dps8_ins.c return rc; rc 8217 src/dps8/dps8_ins.c t_stat rc = scu_smcm ((uint) scuUnitIdx, rc 8219 src/dps8/dps8_ins.c if (rc) rc 8220 src/dps8/dps8_ins.c return rc; rc 8254 src/dps8/dps8_ins.c t_stat rc = scu_smic ((uint) scuUnitIdx, current_running_cpu_idx, rc 8256 src/dps8/dps8_ins.c if (rc) rc 8257 src/dps8/dps8_ins.c return rc; rc 8282 src/dps8/dps8_ins.c t_stat rc = scu_sscr ((uint) scuUnitIdx, current_running_cpu_idx, rc 8286 src/dps8/dps8_ins.c if (rc) rc 8287 src/dps8/dps8_ins.c return rc; rc 8296 src/dps8/dps8_ins.c int rc = doABSA (& result); rc 8297 src/dps8/dps8_ins.c if (rc) rc 8298 src/dps8/dps8_ins.c return rc; rc 1133 src/dps8/dps8_iom.c int rc = cfg_parse (__func__, cptr, iom_config_list, & cfg_state, & v); rc 1135 src/dps8/dps8_iom.c if (rc == -1) // done rc 1138 src/dps8/dps8_iom.c if (rc == -2) // error rc 1143 src/dps8/dps8_iom.c const char * name = iom_config_list[rc].name; rc 1251 src/dps8/dps8_iom.c sim_printf ("error: %s: Invalid cfg_parse rc <%ld>\n", __func__, (long) rc); rc 3114 src/dps8/dps8_iom.c int rc = d->iom_cmd (iomUnitIdx, chan); rc 3116 src/dps8/dps8_iom.c if (rc < 0) { rc 3128 src/dps8/dps8_iom.c if (rc == IOM_CMD_DISCONNECT) { rc 3296 src/dps8/dps8_iom.c int rc = iom_list_service (iom_unit_idx, IOM_CONNECT_CHAN, & ptro, & send, & uff); rc 3297 src/dps8/dps8_iom.c if (rc < 0) { rc 658 src/dps8/dps8_mt.c t_stat rc; rc 664 src/dps8/dps8_mt.c rc = sim_tape_set_capac (mt_unit + i, value, cptr, desc); rc 665 src/dps8/dps8_mt.c if (rc != SCPE_OK) rc 666 src/dps8/dps8_mt.c return rc; rc 1000 src/dps8/dps8_mt.c t_stat rc = sim_tape_rdrecf (unitp, & tape_statep -> buf [0], & tape_statep -> tbc, rc 1003 src/dps8/dps8_mt.c __func__, rc, tape_statep -> tbc); rc 1004 src/dps8/dps8_mt.c if (rc == MTSE_TMK) rc 1008 src/dps8/dps8_mt.c "%s: EOF: %s\n", __func__, simh_tape_msg (rc)); rc 1019 src/dps8/dps8_mt.c if (rc == MTSE_EOM) rc 1022 src/dps8/dps8_mt.c "%s: EOM: %s\n", __func__, simh_tape_msg (rc)); rc 1038 src/dps8/dps8_mt.c if (rc != 0) rc 1042 src/dps8/dps8_mt.c __func__, rc, simh_tape_msg (rc)); rc 1500 src/dps8/dps8_mt.c iom_cmd_rc_t rc = IOM_CMD_PROCEED; rc 2280 src/dps8/dps8_mt.c return rc; rc 2305 src/dps8/dps8_mt.c int rc = mtReadRecord (devUnitIdx, iomUnitIdx, chan); rc 2306 src/dps8/dps8_mt.c if (rc) rc 2326 src/dps8/dps8_mt.c int rc = mtWriteRecord (devUnitIdx, iomUnitIdx, chan); rc 2333 src/dps8/dps8_mt.c if (rc) rc 2374 src/dps8/dps8_mt.c return rc; rc 448 src/dps8/dps8_prt.c int rc = parseID (buffer, tally, qno, name); rc 456 src/dps8/dps8_prt.c if (rc == 0) rc 530 src/dps8/dps8_prt.c rc 531 src/dps8/dps8_prt.c rc 677 src/dps8/dps8_prt.c int rc = openPrtFile (prt_unit_num, buffer, tally); rc 678 src/dps8/dps8_prt.c if (rc < 0) // Can't open or can't write to print file; or ff cached rc 680 src/dps8/dps8_prt.c return rc == -3 ? 0 : rc; rc 1094 src/dps8/dps8_prt.c int rc = print_buf (prt_unit_num, isBCD, is_edited, slew, buffer, tally); rc 1095 src/dps8/dps8_prt.c if (rc == -1) // Can't open print file rc 1100 src/dps8/dps8_prt.c if (rc == -2) // Can't write to print file rc 1188 src/dps8/dps8_prt.c iom_cmd_rc_t rc = print_cmd (iomUnitIdx, chan, statep->prtUnitNum, statep->isBCD, rc 1190 src/dps8/dps8_prt.c if (rc) //-V547 rc 1191 src/dps8/dps8_prt.c return rc; rc 1276 src/dps8/dps8_prt.c iom_cmd_rc_t rc = print_cmd (iomUnitIdx, chan, statep->prtUnitNum, statep->isBCD, rc 1278 src/dps8/dps8_prt.c if (rc) //-V547 rc 1279 src/dps8/dps8_prt.c return rc; rc 1284 src/dps8/dps8_prt.c int rc = loadImageBuffer (iomUnitIdx, chan); rc 1285 src/dps8/dps8_prt.c if (rc) //-V547 rc 1369 src/dps8/dps8_prt.c iom_cmd_rc_t rc = print_cmd (iomUnitIdx, chan, statep->prtUnitNum, statep->isBCD, rc 1371 src/dps8/dps8_prt.c if (rc) //-V547 rc 1372 src/dps8/dps8_prt.c return rc; rc 1377 src/dps8/dps8_prt.c int rc = loadImageBuffer (iomUnitIdx, chan); rc 1378 src/dps8/dps8_prt.c if (rc) //-V547 rc 1620 src/dps8/dps8_prt.c int rc = print_buf (prt_unit_num, false, false, 1, NULL, 0); rc 1621 src/dps8/dps8_prt.c if (rc == -1) { // Can't open print file rc 1625 src/dps8/dps8_prt.c if (rc == -2) { // Can't write to print file rc 1636 src/dps8/dps8_prt.c int rc = print_buf (prt_unit_num, false, false, 2, NULL, 0); rc 1637 src/dps8/dps8_prt.c if (rc == -1) { // Can't open print file rc 1641 src/dps8/dps8_prt.c if (rc == -2) { // Can't write to print file rc 1652 src/dps8/dps8_prt.c int rc = print_buf (prt_unit_num, false, false, -1, NULL, 0); rc 1653 src/dps8/dps8_prt.c if (rc == -1) { // Can't open print file rc 1657 src/dps8/dps8_prt.c if (rc == -2) { // Can't write to print file rc 1699 src/dps8/dps8_prt.c iom_cmd_rc_t rc = print_cmd (iomUnitIdx, chan, statep->prtUnitNum, statep->isBCD, rc 1701 src/dps8/dps8_prt.c if (rc) //-V547 rc 1702 src/dps8/dps8_prt.c return rc; rc 1707 src/dps8/dps8_prt.c int rc = loadImageBuffer (iomUnitIdx, chan); rc 1708 src/dps8/dps8_prt.c if (rc) //-V547 rc 1714 src/dps8/dps8_prt.c int rc = readStatusRegister (iomUnitIdx, chan); rc 1715 src/dps8/dps8_prt.c if (rc) //-V547 rc 1721 src/dps8/dps8_prt.c int rc = loadVFCImage (iomUnitIdx, chan); rc 1722 src/dps8/dps8_prt.c if (rc) //-V547 rc 1973 src/dps8/dps8_prt.c int rc = cfg_parse (__func__, cptr, prt_config_list, rc 1975 src/dps8/dps8_prt.c if (rc == -1) // done rc 1978 src/dps8/dps8_prt.c if (rc == -2) // error rc 1983 src/dps8/dps8_prt.c const char * p = prt_config_list[rc].name; rc 1992 src/dps8/dps8_prt.c (long) rc); rc 864 src/dps8/dps8_scu.c int rc = cfg_parse ("scu_set_config", cptr, scu_config_list, rc 866 src/dps8/dps8_scu.c if (rc == -1) // done rc 869 src/dps8/dps8_scu.c if (rc == -2) // error rc 875 src/dps8/dps8_scu.c const char * p = scu_config_list [rc].name; rc 937 src/dps8/dps8_scu.c rc); rc 2229 src/dps8/dps8_scu.c int rc = 0; rc 2237 src/dps8/dps8_scu.c rc = 1; rc 2305 src/dps8/dps8_scu.c int rc; rc 2306 src/dps8/dps8_scu.c if ((rc = sim_activate (& iom_dev.units [iom_unit_idx], rc 2309 src/dps8/dps8_scu.c sim_warn ("sim_activate failed (%d)\n", rc); rc 2344 src/dps8/dps8_scu.c rc = 1; rc 2368 src/dps8/dps8_scu.c rc 2379 src/dps8/dps8_scu.c rc = 1; rc 2386 src/dps8/dps8_scu.c return rc; rc 542 src/dps8/dps8_socket_dev.c int rc = bind (socket_fd, (struct sockaddr *) & serv_addr, sizeof (serv_addr)); rc 543 src/dps8/dps8_socket_dev.c sim_printf ("bind() returned %d\n", rc); rc 545 src/dps8/dps8_socket_dev.c if (rc < 0) rc 574 src/dps8/dps8_socket_dev.c int rc = 0; rc 586 src/dps8/dps8_socket_dev.c rc = setsockopt (socket_fd, SOL_SOCKET, SO_REUSEADDR, rc 588 src/dps8/dps8_socket_dev.c sim_printf ("listen() setsockopt returned %d\n", rc); rc 589 src/dps8/dps8_socket_dev.c if (rc < 0) rc 596 src/dps8/dps8_socket_dev.c rc = ioctl (socket_fd, FIONBIO, (char *) & on); rc 597 src/dps8/dps8_socket_dev.c sim_printf ("listen() ioctl returned %d\n", rc); rc 598 src/dps8/dps8_socket_dev.c if (rc < 0) rc 605 src/dps8/dps8_socket_dev.c rc = listen (socket_fd, backlog); rc 606 src/dps8/dps8_socket_dev.c sim_printf ("listen() returned %d\n", rc); rc 608 src/dps8/dps8_socket_dev.c if (rc < 0) rc 616 src/dps8/dps8_socket_dev.c buffer[2] = ((word36) ((word36s) rc)) & MASK36; // rc rc 663 src/dps8/dps8_socket_dev.c int rc = 0; rc 680 src/dps8/dps8_socket_dev.c rc = close (socket_fd); rc 682 src/dps8/dps8_socket_dev.c sim_printf ("close() close returned %d\n", rc); rc 683 src/dps8/dps8_socket_dev.c if (rc < 0) rc 690 src/dps8/dps8_socket_dev.c buffer[1] = ((word36) ((word36s) rc)) & MASK36; // rc rc 756 src/dps8/dps8_socket_dev.c ssize_t rc = 0; rc 792 src/dps8/dps8_socket_dev.c rc = write (socket_fd, netdata, count); rc 793 src/dps8/dps8_socket_dev.c if (rc == -1) rc 796 src/dps8/dps8_socket_dev.c buffer[2] = ((word36) ((word36s) rc)) & MASK36; // rc rc 804 src/dps8/dps8_socket_dev.c int rc = iom_list_service (iom_unit_idx, chan, ptro, & send, & uff); rc 805 src/dps8/dps8_socket_dev.c if (rc < 0) rc 877 src/dps8/dps8_socket_dev.c int rc = get_ddcw (p, iom_unit_idx, chan, & ptro, expected_tally, & tally); rc 878 src/dps8/dps8_socket_dev.c if (rc) rc 879 src/dps8/dps8_socket_dev.c return rc; rc 902 src/dps8/dps8_socket_dev.c int rc = get_ddcw (p, iom_unit_idx, chan, & ptro, expected_tally, & tally); rc 903 src/dps8/dps8_socket_dev.c if (rc) rc 904 src/dps8/dps8_socket_dev.c return rc; rc 935 src/dps8/dps8_socket_dev.c int rc = get_ddcw (p, iom_unit_idx, chan, & ptro, expected_tally, & tally); rc 936 src/dps8/dps8_socket_dev.c if (rc) rc 937 src/dps8/dps8_socket_dev.c return rc; rc 961 src/dps8/dps8_socket_dev.c int rc = get_ddcw (p, iom_unit_idx, chan, & ptro, expected_tally, & tally); rc 962 src/dps8/dps8_socket_dev.c if (rc) rc 963 src/dps8/dps8_socket_dev.c return rc; rc 987 src/dps8/dps8_socket_dev.c int rc = get_ddcw (p, iom_unit_idx, chan, & ptro, expected_tally, & tally); rc 988 src/dps8/dps8_socket_dev.c if (rc) rc 989 src/dps8/dps8_socket_dev.c return rc; rc 999 src/dps8/dps8_socket_dev.c rc = skt_accept (unit_idx, p->IDCW_DEV_CODE, buffer); rc 1004 src/dps8/dps8_socket_dev.c return rc; // 3:command pending, don't send terminate interrupt, or rc 1017 src/dps8/dps8_socket_dev.c int rc = get_ddcw (p, iom_unit_idx, chan, & ptro, expected_tally, & tally); rc 1018 src/dps8/dps8_socket_dev.c if (rc) rc 1019 src/dps8/dps8_socket_dev.c return rc; rc 1042 src/dps8/dps8_socket_dev.c int rc = get_ddcw (p, iom_unit_idx, chan, & ptro, expected_tally, & tally); rc 1043 src/dps8/dps8_socket_dev.c if (rc) rc 1044 src/dps8/dps8_socket_dev.c return rc; rc 1054 src/dps8/dps8_socket_dev.c rc = skt_read8 (unit_idx, p->IDCW_DEV_CODE, tally, buffer); rc 1058 src/dps8/dps8_socket_dev.c return rc; // 3:command pending, don't send terminate interrupt, or rc 1071 src/dps8/dps8_socket_dev.c int rc = get_ddcw (p, iom_unit_idx, chan, & ptro, expected_tally, & tally); rc 1072 src/dps8/dps8_socket_dev.c if (rc) rc 1073 src/dps8/dps8_socket_dev.c return rc; rc 1082 src/dps8/dps8_socket_dev.c rc = skt_write8 (iom_unit_idx, chan, unit_idx, p->IDCW_DEV_CODE, tally, buffer); rc 1086 src/dps8/dps8_socket_dev.c return rc; rc 1127 src/dps8/dps8_socket_dev.c int rc = 0; rc 1130 src/dps8/dps8_socket_dev.c rc = sk_cmd (iom_unit_idx, chan); rc 1137 src/dps8/dps8_socket_dev.c return rc; // don't continue down the dcw list. rc 1809 src/dps8/dps8_sys.c t_stat rc = sim_tape_sprecsf (& mt_unit[0], 1, & skipped); rc 1810 src/dps8/dps8_sys.c if (rc == SCPE_OK) rc 1812 src/dps8/dps8_sys.c return rc; rc 1861 src/dps8/dps8_sys.c t_stat rc = run_cmd (RU_CONT, ""); rc 1862 src/dps8/dps8_sys.c return rc; rc 2955 src/dps8/dps8_sys.c int rc = add_book_segment (name, (int) segno); rc 2956 src/dps8/dps8_sys.c if (rc < 0) rc 2975 src/dps8/dps8_sys.c int rc = add_book_segment (name, (int) (c3 ++)); rc 2976 src/dps8/dps8_sys.c if (rc < 0) rc 2992 src/dps8/dps8_sys.c int rc = lookup_book_segment (name); rc 2993 src/dps8/dps8_sys.c if (rc < 0) rc 3003 src/dps8/dps8_sys.c current = rc; rc 3030 src/dps8/dps8_sys.c int rc = add_book_segment (name, (int) segno); rc 3031 src/dps8/dps8_sys.c if (rc < 0) rc 3157 src/dps8/dps8_sys.c int rc = lookup_system_book_name (w1, w2, & segno, & comp_offset); rc 3158 src/dps8/dps8_sys.c if (rc) rc 3384 src/dps8/dps8_sys.c t_stat rc = brk_cmd (arg, reformatted); rc 3385 src/dps8/dps8_sys.c return rc; rc 3785 src/dps8/dps8_sys.c int rc = sscanf (buf, "%s", name); rc 3786 src/dps8/dps8_sys.c if (rc != 1) rc 3819 src/dps8/dps8_sys.c int rc = sscanf (buf, "%s %s %s", name, fname, perm); rc 3820 src/dps8/dps8_sys.c if (rc != 3) rc 3834 src/dps8/dps8_sys.c int rc = sscanf (buf, "%s", name); rc 3835 src/dps8/dps8_sys.c if (rc != 1) rc 3863 src/dps8/dps8_sys.c int rc = sscanf (buf, "%s", name); rc 3864 src/dps8/dps8_sys.c if (rc != 1) rc 4716 src/dps8/dps8_sys.c int rc = cfg_parse ("sys_set_config", cptr, sys_config_list, & cfg_state, rc 4718 src/dps8/dps8_sys.c if (rc == -1) // done rc 4722 src/dps8/dps8_sys.c if (rc == -2) // error rc 4728 src/dps8/dps8_sys.c const char * p = sys_config_list[rc].name; rc 4735 src/dps8/dps8_sys.c sim_msg ("error: sys_set_config: Invalid cfg_parse rc <%ld>\n", (long) rc); rc 252 src/dps8/shm.c int rc = 0; rc 255 src/dps8/shm.c rc = flock(fd, LOCK_EX | LOCK_NB); rc 258 src/dps8/shm.c if (rc < 0) rc 276 src/dps8/shm.c int rc = 0; rc 279 src/dps8/shm.c rc = fcntl(fd, F_SETLK, &lock); rc 282 src/dps8/shm.c if (rc < 0) rc 414 src/dps8/shm.c int rc = 0; rc 417 src/dps8/shm.c rc = flock(fd, LOCK_EX | LOCK_NB); rc 420 src/dps8/shm.c if (rc < 0) rc 435 src/dps8/shm.c int rc = 0; rc 438 src/dps8/shm.c rc = fcntl(fd, F_SETLK, &lock); rc 441 src/dps8/shm.c if (rc < 0) rc 87 src/dps8/threadz.c int rc; rc 88 src/dps8/threadz.c rc = pthread_mutex_trylock (& libuv_lock); rc 89 src/dps8/threadz.c if (rc) rc 95 src/dps8/threadz.c rc = pthread_mutex_unlock (& libuv_lock); rc 96 src/dps8/threadz.c if (rc) rc 97 src/dps8/threadz.c sim_printf ("test_libuv_lock pthread_mutex_lock libuv_lock %d\n", rc); rc 143 src/dps8/threadz.c int rc= pthread_rwlock_wrlock (& mem_lock); rc 144 src/dps8/threadz.c if (rc) rc 145 src/dps8/threadz.c sim_printf ("%s pthread_rwlock_rdlock mem_lock %d\n", __func__, rc); rc 161 src/dps8/threadz.c int rc= pthread_rwlock_rdlock (& mem_lock); rc 162 src/dps8/threadz.c if (rc) rc 163 src/dps8/threadz.c sim_printf ("%s pthread_rwlock_rdlock mem_lock %d\n", __func__, rc); rc 178 src/dps8/threadz.c int rc= pthread_rwlock_wrlock (& mem_lock); rc 179 src/dps8/threadz.c if (rc) rc 180 src/dps8/threadz.c sim_printf ("%s pthread_rwlock_wrlock mem_lock %d\n", __func__, rc); rc 197 src/dps8/threadz.c int rc = pthread_rwlock_unlock (& mem_lock); rc 198 src/dps8/threadz.c if (rc) rc 199 src/dps8/threadz.c sim_printf ("%s pthread_rwlock_ublock mem_lock %d\n", __func__, rc); rc 214 src/dps8/threadz.c int rc = pthread_rwlock_unlock (& mem_lock); rc 215 src/dps8/threadz.c if (rc) rc 216 src/dps8/threadz.c sim_printf ("%s pthread_rwlock_ublock mem_lock %d\n", __func__, rc); rc 224 src/dps8/threadz.c int rc = pthread_rwlock_unlock (& mem_lock); rc 225 src/dps8/threadz.c if (rc) rc 226 src/dps8/threadz.c sim_printf ("%s pthread_rwlock_unlock mem_lock %d\n", __func__, rc); rc 237 src/dps8/threadz.c int rc; rc 238 src/dps8/threadz.c rc = pthread_mutex_lock (lock); rc 239 src/dps8/threadz.c if (rc) rc 240 src/dps8/threadz.c sim_printf ("lock_ptr %d\n", rc); rc 246 src/dps8/threadz.c int rc; rc 247 src/dps8/threadz.c rc = pthread_mutex_unlock (lock); rc 248 src/dps8/threadz.c if (rc) rc 249 src/dps8/threadz.c sim_printf ("unlock_ptr %d\n", rc); rc 259 src/dps8/threadz.c int rc; rc 260 src/dps8/threadz.c rc = pthread_mutex_lock (& scu_lock); rc 261 src/dps8/threadz.c if (rc) rc 262 src/dps8/threadz.c sim_printf ("lock_scu pthread_spin_lock scu %d\n", rc); rc 268 src/dps8/threadz.c int rc; rc 269 src/dps8/threadz.c rc = pthread_mutex_unlock (& scu_lock); rc 270 src/dps8/threadz.c if (rc) rc 271 src/dps8/threadz.c sim_printf ("unlock_scu pthread_spin_lock scu %d\n", rc); rc 280 src/dps8/threadz.c int rc; rc 281 src/dps8/threadz.c rc = pthread_mutex_lock (& iom_lock); rc 282 src/dps8/threadz.c if (rc) rc 283 src/dps8/threadz.c sim_printf ("%s pthread_spin_lock iom %d\n", __func__, rc); rc 288 src/dps8/threadz.c int rc; rc 289 src/dps8/threadz.c rc = pthread_mutex_unlock (& iom_lock); rc 290 src/dps8/threadz.c if (rc) rc 291 src/dps8/threadz.c sim_printf ("%s pthread_spin_lock iom %d\n", __func__, rc); rc 302 src/dps8/threadz.c int rc; rc 303 src/dps8/threadz.c rc = pthread_mutex_lock (& tst_lock); rc 304 src/dps8/threadz.c if (rc) rc 305 src/dps8/threadz.c sim_printf ("lock_tst pthread_mutex_lock tst_lock %d\n", rc); rc 311 src/dps8/threadz.c int rc; rc 312 src/dps8/threadz.c rc = pthread_mutex_unlock (& tst_lock); rc 313 src/dps8/threadz.c if (rc) rc 314 src/dps8/threadz.c sim_printf ("unlock_tst pthread_mutex_lock tst_lock %d\n", rc); rc 322 src/dps8/threadz.c int rc; rc 323 src/dps8/threadz.c rc = pthread_mutex_trylock (& tst_lock); rc 324 src/dps8/threadz.c if (rc) rc 330 src/dps8/threadz.c rc = pthread_mutex_unlock (& tst_lock); rc 331 src/dps8/threadz.c if (rc) rc 332 src/dps8/threadz.c sim_printf ("test_tst_lock pthread_mutex_lock tst_lock %d\n", rc); rc 446 src/dps8/threadz.c int rc; rc 453 src/dps8/threadz.c rc = pthread_mutex_init (& p->runLock, NULL); rc 454 src/dps8/threadz.c if (rc) rc 455 src/dps8/threadz.c sim_printf ("createCPUThread pthread_mutex_init runLock %d\n", rc); rc 456 src/dps8/threadz.c rc = pthread_cond_init (& p->runCond, NULL); rc 457 src/dps8/threadz.c if (rc) rc 458 src/dps8/threadz.c sim_printf ("createCPUThread pthread_cond_init runCond %d\n", rc); rc 466 src/dps8/threadz.c rc = pthread_cond_init (& p->sleepCond, NULL); rc 468 src/dps8/threadz.c rc = pthread_condattr_init (& p->sleepCondAttr); rc 469 src/dps8/threadz.c if (rc) rc 470 src/dps8/threadz.c sim_printf ("createCPUThread pthread_condattr_init sleepCond %d\n", rc); rc 472 src/dps8/threadz.c rc = pthread_condattr_setclock (& p->sleepCondAttr, CLOCK_MONOTONIC); rc 473 src/dps8/threadz.c if (rc) { rc 480 src/dps8/threadz.c rc = pthread_cond_init (& p->sleepCond, & p->sleepCondAttr); rc 482 src/dps8/threadz.c rc = pthread_cond_init (& p->sleepCond, NULL); rc 484 src/dps8/threadz.c if (rc) rc 485 src/dps8/threadz.c sim_printf ("createCPUThread pthread_cond_init sleepCond %d\n", rc); rc 488 src/dps8/threadz.c rc = pthread_create_with_cpu_policy( rc 495 src/dps8/threadz.c rc = pthread_create( rc 501 src/dps8/threadz.c if (rc) rc 502 src/dps8/threadz.c sim_printf ("createCPUThread pthread_create %d\n", rc); rc 556 src/dps8/threadz.c int rc; rc 560 src/dps8/threadz.c rc = pthread_mutex_lock (& p->runLock); rc 561 src/dps8/threadz.c if (rc) rc 562 src/dps8/threadz.c sim_printf ("cpuRunningWait pthread_mutex_lock %d\n", rc); rc 565 src/dps8/threadz.c rc = pthread_cond_wait (& p->runCond, & p->runLock); rc 566 src/dps8/threadz.c if (rc) rc 567 src/dps8/threadz.c sim_printf ("cpuRunningWait pthread_cond_wait %d\n", rc); rc 569 src/dps8/threadz.c rc = pthread_mutex_unlock (& p->runLock); rc 570 src/dps8/threadz.c if (rc) rc 571 src/dps8/threadz.c sim_printf ("cpuRunningWait pthread_mutex_unlock %d\n", rc); rc 578 src/dps8/threadz.c int rc; rc 592 src/dps8/threadz.c rc = pthread_cond_timedwait (& p->sleepCond, & scu_lock, & absTime); rc 594 src/dps8/threadz.c if (rc == ETIMEDOUT) { rc 598 src/dps8/threadz.c if (rc) { rc 599 src/dps8/threadz.c sim_printf ("sleepCPU pthread_cond_timedwait rc %ld usec %ld TR %lu CPU %lu\n", (long) rc, (long) usec, (unsigned long) cpu.rTR, (unsigned long) current_running_cpu_idx); rc 620 src/dps8/threadz.c int rc; rc 623 src/dps8/threadz.c rc = pthread_cond_signal (& p->sleepCond); rc 624 src/dps8/threadz.c if (rc) rc 625 src/dps8/threadz.c sim_printf ("wakeCPU pthread_cond_signal %d\n", rc); rc 658 src/dps8/threadz.c int rc; rc 669 src/dps8/threadz.c rc = pthread_mutex_init (& p->intrLock, NULL); rc 670 src/dps8/threadz.c if (rc) rc 671 src/dps8/threadz.c sim_printf ("createIOMThread pthread_mutex_init intrLock %d\n", rc); rc 672 src/dps8/threadz.c rc = pthread_cond_init (& p->intrCond, NULL); rc 673 src/dps8/threadz.c if (rc) rc 674 src/dps8/threadz.c sim_printf ("createIOMThread pthread_cond_init intrCond %d\n", rc); rc 677 src/dps8/threadz.c rc = pthread_create_with_cpu_policy( rc 684 src/dps8/threadz.c rc = pthread_create( rc 690 src/dps8/threadz.c if (rc) rc 691 src/dps8/threadz.c sim_printf ("createIOMThread pthread_create %d\n", rc); rc 706 src/dps8/threadz.c int rc; rc 708 src/dps8/threadz.c rc = pthread_mutex_lock (& p->intrLock); rc 709 src/dps8/threadz.c if (rc) rc 710 src/dps8/threadz.c sim_printf ("iomInterruptWait pthread_mutex_lock %d\n", rc); rc 714 src/dps8/threadz.c rc = pthread_cond_wait (& p->intrCond, & p->intrLock); rc 715 src/dps8/threadz.c if (rc) rc 716 src/dps8/threadz.c sim_printf ("iomInterruptWait pthread_cond_wait %d\n", rc); rc 730 src/dps8/threadz.c int rc; rc 733 src/dps8/threadz.c rc = pthread_cond_signal (& p->intrCond); rc 734 src/dps8/threadz.c if (rc) rc 735 src/dps8/threadz.c sim_printf ("iomInterruptDone pthread_cond_signal %d\n", rc); rc 736 src/dps8/threadz.c rc = pthread_mutex_unlock (& p->intrLock); rc 737 src/dps8/threadz.c if (rc) rc 738 src/dps8/threadz.c sim_printf ("iomInterruptDone pthread_mutex_unlock %d\n", rc); rc 745 src/dps8/threadz.c int rc; rc 747 src/dps8/threadz.c rc = pthread_mutex_lock (& p->intrLock); rc 748 src/dps8/threadz.c if (rc) rc 749 src/dps8/threadz.c sim_printf ("iomDoneWait pthread_mutex_lock %d\n", rc); rc 752 src/dps8/threadz.c rc = pthread_cond_wait (& p->intrCond, & p->intrLock); rc 753 src/dps8/threadz.c if (rc) rc 754 src/dps8/threadz.c sim_printf ("iomDoneWait pthread_cond_wait %d\n", rc); rc 756 src/dps8/threadz.c rc = pthread_mutex_unlock (& p->intrLock); rc 757 src/dps8/threadz.c if (rc) rc 758 src/dps8/threadz.c sim_printf ("iomDoneWait pthread_mutex_unlock %d\n", rc); rc 765 src/dps8/threadz.c int rc; rc 767 src/dps8/threadz.c rc = pthread_mutex_lock (& p->intrLock); rc 768 src/dps8/threadz.c if (rc) rc 769 src/dps8/threadz.c sim_printf ("setIOMInterrupt pthread_mutex_lock %d\n", rc); rc 772 src/dps8/threadz.c rc = pthread_cond_wait(&p->intrCond, &p->intrLock); rc 773 src/dps8/threadz.c if (rc) rc 774 src/dps8/threadz.c sim_printf ("setIOMInterrupt pthread_cond_wait intrLock %d\n", rc); rc 780 src/dps8/threadz.c rc = pthread_cond_signal (& p->intrCond); rc 781 src/dps8/threadz.c if (rc) rc 782 src/dps8/threadz.c sim_printf ("setIOMInterrupt pthread_cond_signal %d\n", rc); rc 783 src/dps8/threadz.c rc = pthread_mutex_unlock (& p->intrLock); rc 784 src/dps8/threadz.c if (rc) rc 785 src/dps8/threadz.c sim_printf ("setIOMInterrupt pthread_mutex_unlock %d\n", rc); rc 825 src/dps8/threadz.c int rc; rc 836 src/dps8/threadz.c rc = pthread_mutex_init (& p->connectLock, NULL); rc 837 src/dps8/threadz.c if (rc) rc 838 src/dps8/threadz.c sim_printf ("createChnThread pthread_mutex_init connectLock %d\n", rc); rc 839 src/dps8/threadz.c rc = pthread_cond_init (& p->connectCond, NULL); rc 840 src/dps8/threadz.c if (rc) rc 841 src/dps8/threadz.c sim_printf ("createChnThread pthread_cond_init connectCond %d\n", rc); rc 844 src/dps8/threadz.c rc = pthread_create_with_cpu_policy( rc 851 src/dps8/threadz.c rc = pthread_create( rc 857 src/dps8/threadz.c if (rc) rc 858 src/dps8/threadz.c sim_printf ("createChnThread pthread_create %d\n", rc); rc 873 src/dps8/threadz.c int rc; rc 876 src/dps8/threadz.c rc = pthread_mutex_lock (& p->connectLock); rc 877 src/dps8/threadz.c if (rc) rc 878 src/dps8/threadz.c sim_printf ("chnConnectWait pthread_mutex_lock %d\n", rc); rc 882 src/dps8/threadz.c rc = pthread_cond_wait (& p->connectCond, & p->connectLock); rc 883 src/dps8/threadz.c if (rc) rc 884 src/dps8/threadz.c sim_printf ("chnConnectWait pthread_cond_wait %d\n", rc); rc 898 src/dps8/threadz.c int rc; rc 901 src/dps8/threadz.c rc = pthread_cond_signal (& p->connectCond); rc 902 src/dps8/threadz.c if (rc) rc 903 src/dps8/threadz.c sim_printf ("chnInterruptDone pthread_cond_signal %d\n", rc); rc 904 src/dps8/threadz.c rc = pthread_mutex_unlock (& p->connectLock); rc 905 src/dps8/threadz.c if (rc) rc 906 src/dps8/threadz.c sim_printf ("chnConnectDone pthread_mutex_unlock %d\n", rc); rc 913 src/dps8/threadz.c int rc; rc 915 src/dps8/threadz.c rc = pthread_mutex_lock (& p->connectLock); rc 916 src/dps8/threadz.c if (rc) rc 917 src/dps8/threadz.c sim_printf ("setChnConnect pthread_mutex_lock %d\n", rc); rc 920 src/dps8/threadz.c rc = pthread_cond_wait(&p->connectCond, &p->connectLock); rc 921 src/dps8/threadz.c if (rc) rc 922 src/dps8/threadz.c sim_printf ("setChnInterrupt pthread_cond_wait connectLock %d\n", rc); rc 928 src/dps8/threadz.c rc = pthread_cond_signal (& p->connectCond); rc 929 src/dps8/threadz.c if (rc) rc 930 src/dps8/threadz.c sim_printf ("setChnConnect pthread_cond_signal %d\n", rc); rc 931 src/dps8/threadz.c rc = pthread_mutex_unlock (& p->connectLock); rc 932 src/dps8/threadz.c if (rc) rc 933 src/dps8/threadz.c sim_printf ("setChnConnect pthread_mutex_unlock %d\n", rc); rc 222 src/dps8/udplib.c int rc; rc 255 src/dps8/udplib.c rc = fcntl (sock, F_SETFL, fcntl (sock, F_GETFL, 0) | O_NONBLOCK); rc 256 src/dps8/udplib.c if (rc == -1) rc 266 src/dps8/udplib.c rc = bind (sock, (struct sockaddr *) & si_me, sizeof (si_me)); rc 267 src/dps8/udplib.c if (rc == -1) rc 275 src/dps8/udplib.c rc = getaddrinfo (udp_links [link] . rhost, udp_links [link] . rport, NULL, rc 277 src/dps8/udplib.c if (rc == -1) rc 280 src/dps8/udplib.c rc = connect (sock, ai -> ai_addr, sizeof (struct sockaddr)); rc 281 src/dps8/udplib.c if (rc == -1) rc 362 src/dps8/udplib.c ssize_t rc = send (udp_links [link] . sock, & pkt, (size_t) pktlen, 0); rc 363 src/dps8/udplib.c if (rc == -1) rc 650 src/dps8/udplib.c int rc; rc 652 src/dps8/udplib.c rc = udp_create ("4500::4426", & linkno); rc 653 src/dps8/udplib.c if (rc < 0) rc 664 src/dps8/udplib.c rc = udp_receive (linkno, pkt, psz); rc 665 src/dps8/udplib.c if (rc < 0) rc 671 src/dps8/udplib.c else if (rc == 0) rc 678 src/dps8/udplib.c for (int i = 0; i < rc; i ++) rc 247 src/simh/sim_fio.c int rc = 0; rc 266 src/simh/sim_fio.c rc = fcntl (fileno(fsc), F_SETLK, &lock); rc 267 src/simh/sim_fio.c if (rc < 0) { rc 282 src/simh/sim_fio.c rc = flock (fileno(fsc), LOCK_EX | LOCK_NB); rc 283 src/simh/sim_fio.c if (rc < 0) {