linep 429 src/dps8/dps8_fnp2.c struct t_line * linep = & fudp->MState.line[lineno]; linep 430 src/dps8/dps8_fnp2.c linep->waitForMbxDone = true; linep 496 src/dps8/dps8_fnp2.c struct t_line * linep = & fudp->MState.line[lineno]; linep 503 src/dps8/dps8_fnp2.c uint n_chars = min(linep->nPos, 100); linep 518 src/dps8/dps8_fnp2.c linep 520 src/dps8/dps8_fnp2.c linep 521 src/dps8/dps8_fnp2.c linep 523 src/dps8/dps8_fnp2.c linep 533 src/dps8/dps8_fnp2.c linep 534 src/dps8/dps8_fnp2.c linep 536 src/dps8/dps8_fnp2.c linep 545 src/dps8/dps8_fnp2.c if (i < linep->nPos) linep 546 src/dps8/dps8_fnp2.c l_putbits36_9 (& v, 0, linep->buffer [i]); linep 547 src/dps8/dps8_fnp2.c if (i + 1 < linep->nPos) linep 548 src/dps8/dps8_fnp2.c l_putbits36_9 (& v, 9, linep->buffer [i + 1]); linep 549 src/dps8/dps8_fnp2.c if (i + 2 < linep->nPos) linep 550 src/dps8/dps8_fnp2.c l_putbits36_9 (& v, 18, linep->buffer [i + 2]); linep 551 src/dps8/dps8_fnp2.c if (i + 3 < linep->nPos) linep 552 src/dps8/dps8_fnp2.c l_putbits36_9 (& v, 27, linep->buffer [i + 3]); linep 563 src/dps8/dps8_fnp2.c l_putbits36_1 (& data, 17, linep->input_break ? 1 : 0); linep 580 src/dps8/dps8_fnp2.c struct t_line * linep = & fudp->MState.line[lineno]; linep 593 src/dps8/dps8_fnp2.c iom_direct_data_service (iom_unit_idx, chan_num, fsmbx+MYSTERY+0, & linep->lineStatus0, direct_store); linep 594 src/dps8/dps8_fnp2.c iom_direct_data_service (iom_unit_idx, chan_num, fsmbx+MYSTERY+1, & linep->lineStatus1, direct_store); linep 603 src/dps8/dps8_fnp2.c struct t_line * linep = & fudp->MState.line[lineno]; linep 613 src/dps8/dps8_fnp2.c l_putbits36_18 (& data, 0, (word18) linep->nPos); // cmd_data_len XXX linep 625 src/dps8/dps8_fnp2.c l_putbits36_12 (& data, 24, (word12) linep->nPos); linep 635 src/dps8/dps8_fnp2.c l_putbits36_1 (& data, 17, linep->input_break ? 1 : 0); linep 705 src/dps8/dps8_fnp2.c struct t_line * linep = & fudp->MState.line[lineno]; linep 757 src/dps8/dps8_fnp2.c l_putbits36_9 (& data, 27, linep->lineType); // ??? 0 instead of 27 ? linep 788 src/dps8/dps8_fnp2.c static inline bool processInputCharacter (struct t_line * linep, unsigned char kar, linep 791 src/dps8/dps8_fnp2.c if (! linep->line_client) linep 798 src/dps8/dps8_fnp2.c if (! linep->is_tun) linep 802 src/dps8/dps8_fnp2.c uvClientData * p = linep->line_client->data; linep 806 src/dps8/dps8_fnp2.c if (p && p->telnetp && linep->was_CR && kar == 0) linep 809 src/dps8/dps8_fnp2.c linep->was_CR = false; linep 812 src/dps8/dps8_fnp2.c linep->was_CR = kar == 015; linep 817 src/dps8/dps8_fnp2.c if (linep->service == service_login) linep 819 src/dps8/dps8_fnp2.c if (linep->echoPlex) linep 824 src/dps8/dps8_fnp2.c if (linep->crecho && kar == '\n') linep 826 src/dps8/dps8_fnp2.c fnpuv_start_writestr (linep->line_client, (unsigned char *) "\r\n"); linep 830 src/dps8/dps8_fnp2.c else if (linep->lfecho && kar == '\r') linep 832 src/dps8/dps8_fnp2.c fnpuv_start_writestr (linep->line_client, (unsigned char *) "\r\n"); linep 836 src/dps8/dps8_fnp2.c else if (linep->tabecho && kar == '\t') linep 839 src/dps8/dps8_fnp2.c uint nCol = linep->nPos; linep 844 src/dps8/dps8_fnp2.c fnpuv_start_writestr (linep->line_client, (unsigned char *) " "); linep 860 src/dps8/dps8_fnp2.c fnpuv_start_writestr (linep->line_client, str); linep 865 src/dps8/dps8_fnp2.c if (linep->breakAll) linep 867 src/dps8/dps8_fnp2.c linep->buffer[linep->nPos ++] = kar; linep 868 src/dps8/dps8_fnp2.c linep->buffer[linep->nPos] = 0; linep 893 src/dps8/dps8_fnp2.c if (linep->echnego_on) linep 895 src/dps8/dps8_fnp2.c if (linep->echnego_break_table[kar]) linep 908 src/dps8/dps8_fnp2.c linep->echnego_on = false; linep 929 src/dps8/dps8_fnp2.c linep->input_break = false; linep 939 src/dps8/dps8_fnp2.c linep->echnego_unechoed_cnt ++; linep 942 src/dps8/dps8_fnp2.c linep->nPos, linep->echnego_unechoed_cnt); linep 944 src/dps8/dps8_fnp2.c linep->accept_input = 1; linep 953 src/dps8/dps8_fnp2.c fnpuv_start_writestr (linep->line_client, str); linep 962 src/dps8/dps8_fnp2.c linep->echnego_unechoed_cnt = 0; linep 964 src/dps8/dps8_fnp2.c if (linep->echnego_screen_left) linep 965 src/dps8/dps8_fnp2.c linep->echnego_screen_left --; linep 967 src/dps8/dps8_fnp2.c sim_printf ("echnego_screen_left %u\n", linep->echnego_screen_left); linep 970 src/dps8/dps8_fnp2.c if (linep->echnego_screen_left == 0) linep 983 src/dps8/dps8_fnp2.c linep->echnego_on = false; linep 999 src/dps8/dps8_fnp2.c linep->input_break = false; linep 1010 src/dps8/dps8_fnp2.c linep 1014 src/dps8/dps8_fnp2.c linep->nPos, linep->echnego_unechoed_cnt); linep 1016 src/dps8/dps8_fnp2.c linep->accept_input = 1; linep 1031 src/dps8/dps8_fnp2.c linep->echnego_unechoed_cnt += linep->nPos; linep 1033 src/dps8/dps8_fnp2.c linep->input_break = true; linep 1034 src/dps8/dps8_fnp2.c linep->accept_input = 1; linep 1037 src/dps8/dps8_fnp2.c linep->nPos, linep->echnego_unechoed_cnt); linep 1042 src/dps8/dps8_fnp2.c if ((linep-> frame_begin != 0 && linep 1043 src/dps8/dps8_fnp2.c linep-> frame_begin == kar) || linep 1044 src/dps8/dps8_fnp2.c (linep-> frame_end != 0 && linep 1045 src/dps8/dps8_fnp2.c linep-> frame_end == kar)) linep 1049 src/dps8/dps8_fnp2.c linep 1051 src/dps8/dps8_fnp2.c linep 1052 src/dps8/dps8_fnp2.c linep 1059 src/dps8/dps8_fnp2.c linep->buffer[linep->nPos++] = kar; linep 1061 src/dps8/dps8_fnp2.c uint frsz = linep->block_xfer_in_frame_sz; linep 1062 src/dps8/dps8_fnp2.c while ((size_t) linep->nPos < sizeof (linep->buffer) && linep->nPos < frsz) linep 1063 src/dps8/dps8_fnp2.c linep->buffer[linep->nPos++] = 0; linep 1064 src/dps8/dps8_fnp2.c linep->accept_input = 1; linep 1065 src/dps8/dps8_fnp2.c linep->input_break = true; linep 1081 src/dps8/dps8_fnp2.c linep->buffer[linep->nPos++] = kar; linep 1082 src/dps8/dps8_fnp2.c linep->buffer[linep->nPos] = 0; linep 1083 src/dps8/dps8_fnp2.c linep->accept_input = 1; linep 1084 src/dps8/dps8_fnp2.c linep->input_break = true; linep 1091 src/dps8/dps8_fnp2.c if (linep->handleQuit) linep 1093 src/dps8/dps8_fnp2.c linep->line_break=true; linep 1105 src/dps8/dps8_fnp2.c if (linep->nPos > 0) linep 1107 src/dps8/dps8_fnp2.c fnpuv_start_writestr (linep->line_client, (unsigned char *) "\b \b"); linep 1109 src/dps8/dps8_fnp2.c linep->nPos -= 1; // back up buffer pointer linep 1110 src/dps8/dps8_fnp2.c linep->buffer[linep->nPos] = 0; // remove char from buffer linep 1115 src/dps8/dps8_fnp2.c fnpuv_start_writestr (linep->line_client, (unsigned char *) "\a"); linep 1122 src/dps8/dps8_fnp2.c linep->nPos = 0; linep 1123 src/dps8/dps8_fnp2.c linep->buffer[linep->nPos] = 0; linep 1124 src/dps8/dps8_fnp2.c fnpuv_start_writestr (linep->line_client, (unsigned char *) "^U\r\n"); linep 1130 src/dps8/dps8_fnp2.c fnpuv_start_writestr (linep->line_client, (unsigned char *) "^R\r\n"); // echo ^R linep 1131 src/dps8/dps8_fnp2.c fnpuv_start_writestr (linep->line_client, linep->buffer); linep 1142 src/dps8/dps8_fnp2.c linep->buffer[linep->nPos++] = kar; linep 1143 src/dps8/dps8_fnp2.c linep->buffer[linep->nPos] = 0; linep 1149 src/dps8/dps8_fnp2.c ((linep->service == service_autocall || linep 1150 src/dps8/dps8_fnp2.c linep->service == service_slave) && linep 1151 src/dps8/dps8_fnp2.c linep->inUsed >= linep->inSize) || linep 1153 src/dps8/dps8_fnp2.c (size_t) linep->nPos >= sizeof (linep->buffer) || linep 1156 src/dps8/dps8_fnp2.c linep 1159 src/dps8/dps8_fnp2.c linep 1161 src/dps8/dps8_fnp2.c ((linep->block_xfer_out_frame_sz != 0) linep 1164 src/dps8/dps8_fnp2.c (linep->nPos >= linep->block_xfer_out_frame_sz) linep 1167 src/dps8/dps8_fnp2.c (linep->inputBufferSize != 0 && linep->nPos >= linep->inputBufferSize)) linep 1170 src/dps8/dps8_fnp2.c linep->accept_input = 1; linep 1171 src/dps8/dps8_fnp2.c linep->input_break = false; linep 1173 src/dps8/dps8_fnp2.c if (linep->service == service_slave || linep->service == service_autocall) linep 1176 src/dps8/dps8_fnp2.c if (linep->is_tun) linep 1177 src/dps8/dps8_fnp2.c linep->input_break = endOfBuffer; linep 1180 src/dps8/dps8_fnp2.c linep->input_break = true; linep 1202 src/dps8/dps8_fnp2.c static void fnpProcessBuffer (struct t_line * linep) linep 1206 src/dps8/dps8_fnp2.c if ((! linep->is_tun) && ! linep->line_client) linep 1208 src/dps8/dps8_fnp2.c if (! linep->line_client) linep 1211 src/dps8/dps8_fnp2.c if (linep->inBuffer) linep 1212 src/dps8/dps8_fnp2.c FREE (linep->inBuffer); linep 1213 src/dps8/dps8_fnp2.c linep->inBuffer = NULL; linep 1214 src/dps8/dps8_fnp2.c linep->inSize = 0; linep 1215 src/dps8/dps8_fnp2.c linep->inUsed = 0; linep 1219 src/dps8/dps8_fnp2.c while (linep->inBuffer && linep->inUsed < linep->inSize) linep 1221 src/dps8/dps8_fnp2.c unsigned char c = linep->inBuffer [linep->inUsed ++]; linep 1223 src/dps8/dps8_fnp2.c bool eob = linep->inUsed >= linep->inSize; linep 1226 src/dps8/dps8_fnp2.c FREE (linep->inBuffer); linep 1227 src/dps8/dps8_fnp2.c linep->inBuffer = NULL; linep 1228 src/dps8/dps8_fnp2.c linep->inSize = 0; linep 1229 src/dps8/dps8_fnp2.c linep->inUsed = 0; linep 1231 src/dps8/dps8_fnp2.c if (linep->line_client) linep 1232 src/dps8/dps8_fnp2.c fnpuv_read_start (linep->line_client); linep 1234 src/dps8/dps8_fnp2.c if (linep->service == service_3270) linep 1236 src/dps8/dps8_fnp2.c linep->buffer[linep->nPos++] = c; linep 1237 src/dps8/dps8_fnp2.c linep->buffer[linep->nPos] = 0; linep 1240 src/dps8/dps8_fnp2.c if (processInputCharacter (linep, c, eob)) linep 1254 src/dps8/dps8_fnp2.c struct t_line * linep = & fnpData.fnpUnitData[fnp_unit_idx].MState.line[lineno]; linep 1257 src/dps8/dps8_fnp2.c if (linep->accept_input) linep 1261 src/dps8/dps8_fnp2.c if (linep->input_reply_pending) linep 1265 src/dps8/dps8_fnp2.c if (!linep->inBuffer) linep 1268 src/dps8/dps8_fnp2.c fnpProcessBuffer (linep); linep 1318 src/dps8/dps8_fnp2.c struct t_line * linep = & fnpData.fnpUnitData[fnpno].MState.line[lineno]; linep 1319 src/dps8/dps8_fnp2.c if ((unsigned long) linep->nPos + len > sizeof (linep->buffer)) linep 1323 src/dps8/dps8_fnp2.c memcpy (linep->buffer + linep->nPos, msg, len); linep 1324 src/dps8/dps8_fnp2.c linep->nPos += len; linep 1328 src/dps8/dps8_fnp2.c linep 1330 src/dps8/dps8_fnp2.c linep 1333 src/dps8/dps8_fnp2.c linep->force_accept_input = true; linep 1334 src/dps8/dps8_fnp2.c linep->accept_input = 1; linep 1335 src/dps8/dps8_fnp2.c linep->input_break = brk ? 1 : 0; linep 1366 src/dps8/dps8_fnp2.c struct t_line * linep = & fnpData.fnpUnitData[fnpno].MState.line[lineno]; linep 1369 src/dps8/dps8_fnp2.c if (linep->accept_input) linep 1371 src/dps8/dps8_fnp2.c if (linep->input_reply_pending) linep 1377 src/dps8/dps8_fnp2.c uint left = linep->sync_msg_size; linep 1379 src/dps8/dps8_fnp2.c unsigned char * bufp = linep->buffer; linep 1417 src/dps8/dps8_fnp2.c linep->input_break = 1; linep 1422 src/dps8/dps8_fnp2.c uint sz = (uint) (bufp - linep->buffer); linep 1425 src/dps8/dps8_fnp2.c linep->force_accept_input = true; linep 1426 src/dps8/dps8_fnp2.c linep->accept_input = 1; linep 1427 src/dps8/dps8_fnp2.c linep->nPos = sz; linep 1441 src/dps8/dps8_fnp2.c struct t_line * linep = & fnpData.fnpUnitData[fnpno].MState.line[lineno]; linep 1454 src/dps8/dps8_fnp2.c linep->lineStatus0 = 6llu << 18; // IBM3270_WRITE_COMPLETE linep 1455 src/dps8/dps8_fnp2.c linep->lineStatus1 = 0; linep 1456 src/dps8/dps8_fnp2.c linep->sendLineStatus = true; linep 1534 src/dps8/dps8_fnp2.c struct t_line * linep = & fnpData.fnpUnitData[fnp_unit_idx].MState.line[lineno]; linep 1538 src/dps8/dps8_fnp2.c if (linep -> line_disconnected > 1) linep 1541 src/dps8/dps8_fnp2.c if (linep->inBuffer && linep->inUsed < linep->inSize) linep 1544 src/dps8/dps8_fnp2.c linep -> line_disconnected = DISC_DELAY; linep 1549 src/dps8/dps8_fnp2.c -- linep -> line_disconnected; linep 1555 src/dps8/dps8_fnp2.c if (linep->waitForMbxDone) linep 1560 src/dps8/dps8_fnp2.c bool do_send_output = linep->send_output == 1; linep 1562 src/dps8/dps8_fnp2.c if (linep -> send_output > 0) linep 1563 src/dps8/dps8_fnp2.c linep->send_output --; linep 1573 src/dps8/dps8_fnp2.c else if (linep->acu_dial_failure) linep 1576 src/dps8/dps8_fnp2.c linep->acu_dial_failure = false; linep 1588 src/dps8/dps8_fnp2.c else if (linep->listen && linep->accept_new_terminal) linep 1591 src/dps8/dps8_fnp2.c linep->accept_new_terminal = false; linep 1597 src/dps8/dps8_fnp2.c else if (linep -> ack_echnego_init) linep 1600 src/dps8/dps8_fnp2.c linep -> ack_echnego_init = false; linep 1601 src/dps8/dps8_fnp2.c linep -> send_output = SEND_OUTPUT_DELAY; linep 1607 src/dps8/dps8_fnp2.c else if (linep -> ack_echnego_stop) linep 1610 src/dps8/dps8_fnp2.c linep -> ack_echnego_stop = false; linep 1611 src/dps8/dps8_fnp2.c linep -> send_output = SEND_OUTPUT_DELAY; linep 1618 src/dps8/dps8_fnp2.c else if (linep -> line_disconnected == 1) linep 1621 src/dps8/dps8_fnp2.c linep -> line_disconnected = 0; linep 1622 src/dps8/dps8_fnp2.c linep -> listen = false; linep 1626 src/dps8/dps8_fnp2.c else if (linep -> line_disconnected) linep 1629 src/dps8/dps8_fnp2.c linep -> line_disconnected = false; linep 1630 src/dps8/dps8_fnp2.c linep -> listen = false; linep 1637 src/dps8/dps8_fnp2.c else if (linep -> wru_timeout) linep 1640 src/dps8/dps8_fnp2.c linep -> wru_timeout = false; linep 1646 src/dps8/dps8_fnp2.c else if (linep->accept_input && ! linep->waitForMbxDone) //-V560 linep 1648 src/dps8/dps8_fnp2.c if (linep->accept_input == 1) linep 1654 src/dps8/dps8_fnp2.c if (0 && linep->nPos == 0) linep 1663 src/dps8/dps8_fnp2.c linep 1664 src/dps8/dps8_fnp2.c linep 1665 src/dps8/dps8_fnp2.c linep 1666 src/dps8/dps8_fnp2.c linep 1668 src/dps8/dps8_fnp2.c linep 1685 src/dps8/dps8_fnp2.c linep 1688 src/dps8/dps8_fnp2.c if (linep->force_accept_input || linep->nPos > 100) linep 1692 src/dps8/dps8_fnp2.c linep->input_reply_pending = true; linep 1700 src/dps8/dps8_fnp2.c linep->nPos = 0; linep 1707 src/dps8/dps8_fnp2.c linep->accept_input --; linep 1714 src/dps8/dps8_fnp2.c else if (linep->line_break) linep 1717 src/dps8/dps8_fnp2.c linep -> line_break = false; linep 1719 src/dps8/dps8_fnp2.c linep -> send_output = SEND_OUTPUT_DELAY; linep 1722 src/dps8/dps8_fnp2.c else if (linep->sendLineStatus) linep 1724 src/dps8/dps8_fnp2.c linep->sendLineStatus = false; linep 2469 src/dps8/dps8_fnp2.c struct t_line * linep = & fnpData.fnpUnitData[fnp_unit_idx].MState.line[lineno]; linep 2470 src/dps8/dps8_fnp2.c if (! linep->listen) linep 2472 src/dps8/dps8_fnp2.c if (linep->service == service_login && linep 2473 src/dps8/dps8_fnp2.c ! linep->line_disconnected && linep 2474 src/dps8/dps8_fnp2.c ! linep->line_client && linep 2613 src/dps8/dps8_fnp2.c struct t_line * linep = & fnpData.fnpUnitData[fnpno].MState.line[lineno]; linep 2621 src/dps8/dps8_fnp2.c if (linep->inBuffer) linep 2624 src/dps8/dps8_fnp2.c unsigned char * new = realloc (linep->inBuffer, (unsigned long) (linep->inSize + nread)); linep 2630 src/dps8/dps8_fnp2.c memcpy (new + linep->inSize, buf, (unsigned long) nread); linep 2631 src/dps8/dps8_fnp2.c linep->inSize += nread; linep 2632 src/dps8/dps8_fnp2.c linep->inBuffer = new; linep 2636 src/dps8/dps8_fnp2.c linep->inBuffer = malloc ((unsigned long) nread); linep 2637 src/dps8/dps8_fnp2.c if (! linep->inBuffer) linep 2642 src/dps8/dps8_fnp2.c memcpy (linep->inBuffer, buf, (unsigned long) nread); linep 2643 src/dps8/dps8_fnp2.c linep->inSize = (uint) nread; linep 2644 src/dps8/dps8_fnp2.c linep->inUsed = 0; linep 2677 src/dps8/dps8_fnp2.c struct t_line * linep = & fnpData.fnpUnitData[fnpno].MState.line[lineno]; linep 2680 src/dps8/dps8_fnp2.c if (! linep->inBuffer) linep 2684 src/dps8/dps8_fnp2.c if (! linep->listen) linep 2686 src/dps8/dps8_fnp2.c if (! linep->inBuffer) linep 2732 src/dps8/dps8_fnp2.c void reset_line (struct t_line * linep) linep 2734 src/dps8/dps8_fnp2.c linep->was_CR = false; linep 2735 src/dps8/dps8_fnp2.c linep->inputBufferSize = 0; linep 2736 src/dps8/dps8_fnp2.c linep->ctrlStrIdx = 0; linep 2737 src/dps8/dps8_fnp2.c linep->breakAll = false; linep 2738 src/dps8/dps8_fnp2.c linep->handleQuit = false; linep 2739 src/dps8/dps8_fnp2.c linep->echoPlex = false; linep 2740 src/dps8/dps8_fnp2.c linep->crecho = false; linep 2741 src/dps8/dps8_fnp2.c linep->lfecho = false; linep 2742 src/dps8/dps8_fnp2.c linep->tabecho = false; linep 2743 src/dps8/dps8_fnp2.c linep->replay = false; linep 2744 src/dps8/dps8_fnp2.c linep->polite = false; linep 2745 src/dps8/dps8_fnp2.c linep->prefixnl = false; linep 2746 src/dps8/dps8_fnp2.c linep->eight_bit_out = false; linep 2747 src/dps8/dps8_fnp2.c linep->eight_bit_in = false; linep 2748 src/dps8/dps8_fnp2.c linep->odd_parity = false; linep 2749 src/dps8/dps8_fnp2.c linep->output_flow_control = false; linep 2750 src/dps8/dps8_fnp2.c linep->input_flow_control = false; linep 2751 src/dps8/dps8_fnp2.c linep->block_xfer_in_frame_sz = 0; linep 2752 src/dps8/dps8_fnp2.c linep->block_xfer_out_frame_sz = 0; linep 2753 src/dps8/dps8_fnp2.c memset (linep->delay_table, 0, sizeof (linep->delay_table)); linep 2754 src/dps8/dps8_fnp2.c linep->inputSuspendLen = 0; linep 2755 src/dps8/dps8_fnp2.c memset (linep->inputSuspendStr, 0, sizeof (linep->inputSuspendStr)); linep 2756 src/dps8/dps8_fnp2.c linep->inputResumeLen = 0; linep 2757 src/dps8/dps8_fnp2.c memset (linep->inputResumeStr, 0, sizeof (linep->inputResumeStr)); linep 2758 src/dps8/dps8_fnp2.c linep->outputSuspendLen = 0; linep 2759 src/dps8/dps8_fnp2.c memset (linep->outputSuspendStr, 0, sizeof (linep->outputSuspendStr)); linep 2760 src/dps8/dps8_fnp2.c linep->outputResumeLen = 0; linep 2761 src/dps8/dps8_fnp2.c memset (linep->outputResumeStr, 0, sizeof (linep->outputResumeStr)); linep 2762 src/dps8/dps8_fnp2.c linep->frame_begin = 0; linep 2763 src/dps8/dps8_fnp2.c linep->frame_end = 0; linep 2764 src/dps8/dps8_fnp2.c memset (linep->echnego_break_table, 0, sizeof (linep->echnego_break_table)); linep 2765 src/dps8/dps8_fnp2.c linep->echnego_sync_ctr = 0; linep 2766 src/dps8/dps8_fnp2.c linep->echnego_screen_left = 0; linep 2767 src/dps8/dps8_fnp2.c linep->echnego_unechoed_cnt = 0; linep 2768 src/dps8/dps8_fnp2.c linep->echnego_on = false; linep 2769 src/dps8/dps8_fnp2.c linep->echnego_synced = false; linep 2770 src/dps8/dps8_fnp2.c linep->line_break = false; linep 166 src/dps8/dps8_fnp2_iomcmd.c struct t_line * linep = & decoded_p->fudp->MState.line[decoded_p->slot_no]; linep 178 src/dps8/dps8_fnp2_iomcmd.c if (linep->line_client && linep->service == service_login) linep 179 src/dps8/dps8_fnp2_iomcmd.c fnpuv_start_writestr (linep->line_client, (unsigned char *) "Multics has disconnected you\r\n"); linep 181 src/dps8/dps8_fnp2_iomcmd.c linep -> line_disconnected = DISC_DELAY; linep 183 src/dps8/dps8_fnp2_iomcmd.c linep -> line_disconnected = true; linep 185 src/dps8/dps8_fnp2_iomcmd.c linep -> listen = false; linep 186 src/dps8/dps8_fnp2_iomcmd.c if (linep->line_client) linep 188 src/dps8/dps8_fnp2_iomcmd.c close_connection ((uv_stream_t *) linep->line_client); linep 210 src/dps8/dps8_fnp2_iomcmd.c linep->lineType = (word9) getbits36_18 (command_data[0], 0); linep 220 src/dps8/dps8_fnp2_iomcmd.c linep->frame_begin = d1; linep 221 src/dps8/dps8_fnp2_iomcmd.c linep->frame_end = d2; linep 406 src/dps8/dps8_fnp2_iomcmd.c linep->sync_msg_size = (uint) getbits36_18 (command_data[0], 0); linep 479 src/dps8/dps8_fnp2_iomcmd.c memset (linep->echnego_break_table, 0, linep 480 src/dps8/dps8_fnp2_iomcmd.c sizeof (linep->echnego_break_table)); linep 484 src/dps8/dps8_fnp2_iomcmd.c memset (linep->echnego_break_table, 1, linep 485 src/dps8/dps8_fnp2_iomcmd.c sizeof (linep->echnego_break_table)); linep 503 src/dps8/dps8_fnp2_iomcmd.c linep->echnego_break_table[offset++] = linep 506 src/dps8/dps8_fnp2_iomcmd.c linep->echnego_break_table[offset++] = linep 517 src/dps8/dps8_fnp2_iomcmd.c linep 542 src/dps8/dps8_fnp2_iomcmd.c linep->echnego_sync_ctr = linep 544 src/dps8/dps8_fnp2_iomcmd.c linep->echnego_screen_left = getbits36_18 (command_data[0], 18); linep 548 src/dps8/dps8_fnp2_iomcmd.c "unechoed cnt %d\n", linep->echnego_sync_ctr, linep 549 src/dps8/dps8_fnp2_iomcmd.c linep->echnego_screen_left,linep->echnego_unechoed_cnt); linep 556 src/dps8/dps8_fnp2_iomcmd.c linep->echnego_on = linep 557 src/dps8/dps8_fnp2_iomcmd.c linep->echnego_sync_ctr == linep->echnego_unechoed_cnt; linep 560 src/dps8/dps8_fnp2_iomcmd.c sim_printf ("echnego is %s\n", linep->echnego_on ? "on" : "off"); linep 573 src/dps8/dps8_fnp2_iomcmd.c linep->echnego_on = false; linep 575 src/dps8/dps8_fnp2_iomcmd.c linep->ack_echnego_stop = true; linep 593 src/dps8/dps8_fnp2_iomcmd.c linep->echnego_unechoed_cnt = 0; linep 596 src/dps8/dps8_fnp2_iomcmd.c linep->ack_echnego_init = true; linep 613 src/dps8/dps8_fnp2_iomcmd.c linep->inputSuspendStr[0] = getbits36_8 (suspendStr, 10); linep 614 src/dps8/dps8_fnp2_iomcmd.c linep->inputSuspendStr[1] = getbits36_8 (suspendStr, 19); linep 615 src/dps8/dps8_fnp2_iomcmd.c linep->inputSuspendStr[2] = getbits36_8 (suspendStr, 28); linep 622 src/dps8/dps8_fnp2_iomcmd.c linep->inputSuspendLen = suspendLen; linep 625 src/dps8/dps8_fnp2_iomcmd.c linep->inputResumeStr[0] = getbits36_8 (resumeStr, 10); linep 626 src/dps8/dps8_fnp2_iomcmd.c linep->inputResumeStr[1] = getbits36_8 (resumeStr, 19); linep 627 src/dps8/dps8_fnp2_iomcmd.c linep->inputResumeStr[2] = getbits36_8 (resumeStr, 28); linep 634 src/dps8/dps8_fnp2_iomcmd.c linep->inputResumeLen = resumeLen; linep 646 src/dps8/dps8_fnp2_iomcmd.c linep->outputSuspendStr[0] = getbits36_8 (suspendStr, 10); linep 647 src/dps8/dps8_fnp2_iomcmd.c linep->outputSuspendStr[1] = getbits36_8 (suspendStr, 19); linep 648 src/dps8/dps8_fnp2_iomcmd.c linep->outputSuspendStr[2] = getbits36_8 (suspendStr, 28); linep 655 src/dps8/dps8_fnp2_iomcmd.c linep->outputSuspendLen = suspendLen; linep 658 src/dps8/dps8_fnp2_iomcmd.c linep->outputResumeStr[0] = getbits36_8 (resumeStr, 10); linep 659 src/dps8/dps8_fnp2_iomcmd.c linep->outputResumeStr[1] = getbits36_8 (resumeStr, 19); linep 660 src/dps8/dps8_fnp2_iomcmd.c linep->outputResumeStr[2] = getbits36_8 (resumeStr, 28); linep 667 src/dps8/dps8_fnp2_iomcmd.c linep->outputResumeLen = resumeLen; linep 686 src/dps8/dps8_fnp2_iomcmd.c linep->fullDuplex = !! flag; linep 694 src/dps8/dps8_fnp2_iomcmd.c linep->crecho = !! flag; linep 702 src/dps8/dps8_fnp2_iomcmd.c linep->lfecho = !! flag; linep 712 src/dps8/dps8_fnp2_iomcmd.c linep -> send_output = SEND_OUTPUT_DELAY; linep 720 src/dps8/dps8_fnp2_iomcmd.c linep->tabecho = !! flag; linep 729 src/dps8/dps8_fnp2_iomcmd.c linep->listen = !! flag; linep 730 src/dps8/dps8_fnp2_iomcmd.c linep->inputBufferSize = bufsz; linep 732 src/dps8/dps8_fnp2_iomcmd.c if (linep->service == service_undefined) linep 733 src/dps8/dps8_fnp2_iomcmd.c linep->service = service_login; linep 735 src/dps8/dps8_fnp2_iomcmd.c if (linep->service == service_login && linep -> line_client) linep 737 src/dps8/dps8_fnp2_iomcmd.c fnpuv_start_writestr (linep->line_client, linep 738 src/dps8/dps8_fnp2_iomcmd.c linep->listen ? linep 742 src/dps8/dps8_fnp2_iomcmd.c if (linep->service == service_slave && ! linep -> line_client) linep 751 src/dps8/dps8_fnp2_iomcmd.c linep->handleQuit = !! flag; linep 760 src/dps8/dps8_fnp2_iomcmd.c linep->ctrlStrIdx = idx; linep 767 src/dps8/dps8_fnp2_iomcmd.c linep -> wru_timeout = true; linep 775 src/dps8/dps8_fnp2_iomcmd.c linep->echoPlex = !! flag; linep 797 src/dps8/dps8_fnp2_iomcmd.c linep->replay = !! flag; linep 805 src/dps8/dps8_fnp2_iomcmd.c linep->polite = !! flag; linep 814 src/dps8/dps8_fnp2_iomcmd.c linep->block_xfer_out_frame_sz = bufsiz1; linep 815 src/dps8/dps8_fnp2_iomcmd.c linep->block_xfer_in_frame_sz = bufsiz2; linep 830 src/dps8/dps8_fnp2_iomcmd.c linep->inputBufferSize = sz; linep 839 src/dps8/dps8_fnp2_iomcmd.c linep->breakAll = !! flag; linep 847 src/dps8/dps8_fnp2_iomcmd.c linep->prefixnl = !! flag; linep 855 src/dps8/dps8_fnp2_iomcmd.c linep->input_flow_control = !! flag; linep 863 src/dps8/dps8_fnp2_iomcmd.c linep->output_flow_control = !! flag; linep 871 src/dps8/dps8_fnp2_iomcmd.c linep->odd_parity = !! flag; linep 879 src/dps8/dps8_fnp2_iomcmd.c linep->eight_bit_in = !! flag; linep 887 src/dps8/dps8_fnp2_iomcmd.c linep->eight_bit_out = !! flag; linep 933 src/dps8/dps8_fnp2_iomcmd.c linep->delay_table[0] = d1; linep 934 src/dps8/dps8_fnp2_iomcmd.c linep->delay_table[1] = d2; linep 935 src/dps8/dps8_fnp2_iomcmd.c linep->delay_table[2] = d3; linep 936 src/dps8/dps8_fnp2_iomcmd.c linep->delay_table[3] = d4; linep 937 src/dps8/dps8_fnp2_iomcmd.c linep->delay_table[4] = d5; linep 938 src/dps8/dps8_fnp2_iomcmd.c linep->delay_table[5] = d6; linep 1075 src/dps8/dps8_fnp2_iomcmd.c static void tun_write (struct t_line * linep, uint16_t * data, uint tally) linep 1090 src/dps8/dps8_fnp2_iomcmd.c linep->in_frame = true; linep 1091 src/dps8/dps8_fnp2_iomcmd.c linep->frameLen = 0; linep 1095 src/dps8/dps8_fnp2_iomcmd.c if (! linep->in_frame) linep 1098 src/dps8/dps8_fnp2_iomcmd.c if (linep->frameLen >= 2+1500) linep 1103 src/dps8/dps8_fnp2_iomcmd.c linep->frame[linep->frameLen ++] = (uint8_t) (data [i] & 0xff); linep 1108 src/dps8/dps8_fnp2_iomcmd.c if (linep->frameLen >= 2) linep 1110 src/dps8/dps8_fnp2_iomcmd.c uint16_t target = (uint16_t) ((linep->frame[0] & 0xff) << 8) | (linep->frame[1]); linep 1111 src/dps8/dps8_fnp2_iomcmd.c if (target + 2 >= linep->frameLen) linep 1114 src/dps8/dps8_fnp2_iomcmd.c fnpuv_tun_write (linep); linep 1115 src/dps8/dps8_fnp2_iomcmd.c linep->in_frame = false; linep 1124 src/dps8/dps8_fnp2_iomcmd.c struct t_line * linep = & decoded_p->fudp->MState.line[decoded_p->slot_no]; linep 1169 src/dps8/dps8_fnp2_iomcmd.c if (linep->is_tun && tally > 0) linep 1171 src/dps8/dps8_fnp2_iomcmd.c tun_write (linep, data9, tally); linep 1175 src/dps8/dps8_fnp2_iomcmd.c if (tally > 0 && linep->line_client) linep 1177 src/dps8/dps8_fnp2_iomcmd.c if (! linep->line_client || ! linep->line_client->data) //-V560 linep 1182 src/dps8/dps8_fnp2_iomcmd.c uvClientData * p = linep->line_client->data; linep 1183 src/dps8/dps8_fnp2_iomcmd.c (* p->write_cb) (linep->line_client, data, tally); linep 1272 src/dps8/dps8_fnp2_iomcmd.c struct t_line * linep = & decoded_p->fudp->MState.line[decoded_p->slot_no]; linep 1273 src/dps8/dps8_fnp2_iomcmd.c unsigned char * data_p = linep -> buffer; linep 1275 src/dps8/dps8_fnp2_iomcmd.c n_chars = min(n_chars, linep -> nPos); linep 1286 src/dps8/dps8_fnp2_iomcmd.c { sim_printf ("[%u][FNP emulator: nPos %d long IN: '", decoded_p->slot_no, linep->nPos); linep 1287 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < linep->nPos; i ++) linep 1289 src/dps8/dps8_fnp2_iomcmd.c if (isgraph (linep->buffer [i])) linep 1290 src/dps8/dps8_fnp2_iomcmd.c sim_printf ("%c", linep->buffer [i]); linep 1292 src/dps8/dps8_fnp2_iomcmd.c sim_printf ("\\%03o", linep->buffer [i]); linep 1325 src/dps8/dps8_fnp2_iomcmd.c l_putbits36_1 (& v, 17, linep->input_break ? 1 : 0); linep 1329 src/dps8/dps8_fnp2_iomcmd.c linep->input_reply_pending = false; linep 1330 src/dps8/dps8_fnp2_iomcmd.c linep->input_break = false; linep 1331 src/dps8/dps8_fnp2_iomcmd.c linep->nPos = 0; linep 1600 src/dps8/dps8_fnp2_iomcmd.c struct t_line * linep = & decoded_p->fudp->MState.line[decoded_p->fudp->fnpMBXlineno[mbx]]; linep 1601 src/dps8/dps8_fnp2_iomcmd.c sim_debug (DBG_TRACE, & fnp_dev, "clearing wait; was %d\n", linep->waitForMbxDone); linep 1602 src/dps8/dps8_fnp2_iomcmd.c linep->waitForMbxDone = false; linep 2287 src/dps8/dps8_fnp2_iomcmd.c struct t_line * linep = & fudp->MState.line[lineno]; linep 2296 src/dps8/dps8_fnp2_iomcmd.c linep->lineType = line_type; linep 282 src/dps8/fnpuv.c struct t_line * linep = & fnpData.fnpUnitData[fnpno].MState.line[lineno]; linep 286 src/dps8/fnpuv.c linep->accept_input = 1; linep 287 src/dps8/fnpuv.c linep->line_break=true; linep 343 src/dps8/fnpuv.c struct t_line * linep = & fnpData.fnpUnitData[p->fnpno].MState.line[p->lineno]; linep 344 src/dps8/fnpuv.c if (linep->service == service_3270) linep 353 src/dps8/fnpuv.c linep -> line_disconnected = DISC_DELAY; linep 355 src/dps8/fnpuv.c linep -> line_disconnected = true; linep 357 src/dps8/fnpuv.c linep -> listen = false; linep 358 src/dps8/fnpuv.c if (linep->inBuffer) linep 359 src/dps8/fnpuv.c FREE (linep->inBuffer); linep 360 src/dps8/fnpuv.c linep->inBuffer = NULL; linep 361 src/dps8/fnpuv.c linep->inSize = 0; linep 362 src/dps8/fnpuv.c linep->inUsed = 0; linep 363 src/dps8/fnpuv.c linep->nPos = 0; linep 365 src/dps8/fnpuv.c if (linep->line_client) linep 369 src/dps8/fnpuv.c linep->line_client = NULL; linep 821 src/dps8/fnpuv.c struct t_line * linep = & fnpData.fnpUnitData[p->fnpno].MState.line[p->lineno]; linep 824 src/dps8/fnpuv.c if (linep->line_client) linep 833 src/dps8/fnpuv.c linep->line_client = client; linep 897 src/dps8/fnpuv.c struct t_line * linep = & fnpData.fnpUnitData[p->fnpno].MState.line[p->lineno]; linep 898 src/dps8/fnpuv.c if (linep->lineType == 0) /* LINE_NONE */ linep 899 src/dps8/fnpuv.c linep->lineType = 1; /* LINE_ASCII */ linep 900 src/dps8/fnpuv.c linep->accept_new_terminal = true; linep 901 src/dps8/fnpuv.c reset_line (linep); linep 980 src/dps8/fnpuv.c struct t_line * linep = & fnpData.fnpUnitData[p->fnpno].MState.line[p->lineno]; linep 986 src/dps8/fnpuv.c linep->acu_dial_failure = true; linep 990 src/dps8/fnpuv.c uv_read_start ((uv_stream_t *) linep->line_client, alloc_buffer, fuv_read_cb); linep 991 src/dps8/fnpuv.c linep->listen = true; linep 992 src/dps8/fnpuv.c if (linep->lineType == 0) /* LINE_NONE */ linep 993 src/dps8/fnpuv.c linep->lineType = 1; /* LINE_ASCII */ linep 994 src/dps8/fnpuv.c linep->accept_new_terminal = true; linep 995 src/dps8/fnpuv.c linep->was_CR = false; linep 996 src/dps8/fnpuv.c linep->line_client->data = p; linep 1013 src/dps8/fnpuv.c struct t_line * linep = & fnpData.fnpUnitData[fnpno].MState.line[lineno]; linep 1048 src/dps8/fnpuv.c linep->is_tun = false; linep 1051 src/dps8/fnpuv.c if (linep->tun_fd <= 0) linep 1054 src/dps8/fnpuv.c linep->tun_fd = tun_alloc (a_name); linep 1055 src/dps8/fnpuv.c if (linep->tun_fd < 0) linep 1057 src/dps8/fnpuv.c sim_printf ("\r[FNP emulation: dialout TUN tun_alloc returned %d errno %d]\r\n", linep->tun_fd, errno); linep 1060 src/dps8/fnpuv.c int flags = fcntl (linep->tun_fd, F_GETFL, 0); linep 1067 src/dps8/fnpuv.c int ret = fcntl (linep->tun_fd, F_SETFL, flags); linep 1074 src/dps8/fnpuv.c linep->is_tun = true; linep 1099 src/dps8/fnpuv.c linep->acu_dial_failure = true; linep 1110 src/dps8/fnpuv.c linep->line_client = (uv_tcp_t *) malloc (sizeof (uv_tcp_t)); linep 1111 src/dps8/fnpuv.c if (!linep->line_client) linep 1123 src/dps8/fnpuv.c uv_tcp_init (fnpData.loop, linep->line_client); linep 1144 src/dps8/fnpuv.c linep->line_client->data = p; linep 1150 src/dps8/fnpuv.c p->telnetp = ltnConnect (linep->line_client); linep 1163 src/dps8/fnpuv.c uv_tcp_connect (& linep->doConnect, linep->line_client, (const struct sockaddr *) & dest, on_dialout_connect); linep 1171 src/dps8/fnpuv.c linep 1179 src/dps8/fnpuv.c linep 1180 src/dps8/fnpuv.c linep 1193 src/dps8/fnpuv.c struct t_line * linep = & fnpData.fnpUnitData[fnpno].MState.line[lineno]; linep 1196 src/dps8/fnpuv.c if (linep->server.data) linep 1199 src/dps8/fnpuv.c uv_tcp_init (fnpData.loop, & linep->server); linep 1227 src/dps8/fnpuv.c linep->server.data = p; linep 1228 src/dps8/fnpuv.c linep->line_client = NULL; linep 1231 src/dps8/fnpuv.c uv_ip4_addr (fnpData.telnet_address, linep->port, & addr); linep 1232 src/dps8/fnpuv.c uv_tcp_bind (& linep->server, (const struct sockaddr *) & addr, 0); linep 1233 src/dps8/fnpuv.c int r = uv_listen ((uv_stream_t *) & linep->server, DEFAULT_BACKLOG, linep 1237 src/dps8/fnpuv.c sim_printf ("\r[FNP emulation: listen error: %s:%ld: %s]\r\n", fnpData.telnet_address, (long) linep->port, uv_strerror (r)); linep 1239 src/dps8/fnpuv.c sim_printf ("\r[FNP emulation: listening on %s:%ld]\r\n", fnpData.telnet_address, (long) linep->port); linep 1245 src/dps8/fnpuv.c linep 1246 src/dps8/fnpuv.c linep 1258 src/dps8/fnpuv.c linep 1279 src/dps8/fnpuv.c linep 1282 src/dps8/fnpuv.c linep 1283 src/dps8/fnpuv.c linep 1284 src/dps8/fnpuv.c linep 1285 src/dps8/fnpuv.c linep 1310 src/dps8/fnpuv.c struct t_line * linep = & fnpData.fnpUnitData[fnpno].MState.line[lineno]; linep 1311 src/dps8/fnpuv.c if (linep->inBuffer) linep 1313 src/dps8/fnpuv.c unsigned char * new = realloc (linep->inBuffer, (unsigned long) (linep->inSize + nread)); linep 1326 src/dps8/fnpuv.c memcpy (new + linep->inSize, buf, (unsigned long) nread); linep 1327 src/dps8/fnpuv.c linep->inSize += nread; linep 1328 src/dps8/fnpuv.c linep->inBuffer = new; linep 1332 src/dps8/fnpuv.c linep->inBuffer = malloc ((unsigned long) nread); linep 1333 src/dps8/fnpuv.c if (! linep->inBuffer) linep 1345 src/dps8/fnpuv.c memcpy (linep->inBuffer, buf, (unsigned long) nread); linep 1346 src/dps8/fnpuv.c linep->inSize = (uint) nread; linep 1347 src/dps8/fnpuv.c linep->inUsed = 0; linep 1352 src/dps8/fnpuv.c static void fnoTUNProcessLine (int fnpno, int lineno, struct t_line * linep) linep 1356 src/dps8/fnpuv.c ssize_t nread = read (linep->tun_fd, buffer, sizeof (buffer)); linep 1451 src/dps8/fnpuv.c struct t_line * linep = & fnpData.fnpUnitData[fnpno].MState.line[lineno]; linep 1452 src/dps8/fnpuv.c if (linep->is_tun) linep 1453 src/dps8/fnpuv.c fnoTUNProcessLine (fnpno, lineno, linep); linep 65 src/dps8/fnpuv.h void reset_line (struct t_line * linep);