buffer 1430 src/dps8/dps8_cpu.c char buffer [81] = ""; buffer 1432 src/dps8/dps8_cpu.c char * checksn = fgets (buffer, sizeof (buffer), fp); buffer 1436 src/dps8/dps8_cpu.c if (sscanf (buffer, "sn: %u", & cpu.switches.serno) == 1) buffer 1444 src/dps8/dps8_cpu.c else if (sscanf (buffer, "sn%u: %u", & cpun, & sn) == 2) buffer 545 src/dps8/dps8_crdpun.c static char get_lace_char(word36* buffer, uint char_pos) buffer 564 src/dps8/dps8_crdpun.c col_buffer[4 - col_offset] = (buffer[word_offset] >> (nibble_offset * 12)) & 0xFFF; buffer 589 src/dps8/dps8_crdpun.c static void scan_card_for_glyphs(pun_state_t * state, word36* buffer) buffer 593 src/dps8/dps8_crdpun.c char c = get_lace_char(buffer, c_pos); buffer 697 src/dps8/dps8_crdpun.c static void log_card(word12 tally, word36 * buffer) buffer 703 src/dps8/dps8_crdpun.c sim_printf (" %012llo\n", (unsigned long long)buffer [i]); buffer 720 src/dps8/dps8_crdpun.c word1 bit = getbits36_1 (buffer [wordno], fieldno * 12 + row); buffer 738 src/dps8/dps8_crdpun.c word1 bit = getbits36_1 (buffer [wordno], fieldno * 12 + row); buffer 1168 src/dps8/dps8_crdpun.c word36 buffer [p -> DDCW_TALLY]; buffer 1170 src/dps8/dps8_crdpun.c iom_indirect_data_service (iomUnitIdx, chan, buffer, & wordsProcessed, false); buffer 1175 src/dps8/dps8_crdpun.c log_card(p -> DDCW_TALLY, buffer); buffer 1178 src/dps8/dps8_crdpun.c parse_card( &pun_state [pun_unit_num], p -> DDCW_TALLY, buffer); buffer 417 src/dps8/dps8_crdrdr.c static int getCardLine (int fd, unsigned char * buffer) buffer 420 src/dps8/dps8_crdrdr.c buffer [n] = 0; buffer 429 src/dps8/dps8_crdrdr.c buffer [n ++] = ch; buffer 430 src/dps8/dps8_crdrdr.c buffer [n] = 0; buffer 440 src/dps8/dps8_crdrdr.c static int getCardData (int fd, char * buffer) buffer 442 src/dps8/dps8_crdrdr.c (void)memset (buffer, 0, 80); buffer 443 src/dps8/dps8_crdrdr.c ssize_t rc = read (fd, buffer, 80); buffer 450 src/dps8/dps8_crdrdr.c static int getRawCardData (int fd, uint8_t * buffer) buffer 452 src/dps8/dps8_crdrdr.c (void)memset (buffer, 0, rawCardImageBytes + 2); buffer 453 src/dps8/dps8_crdrdr.c ssize_t rc = read (fd, buffer, rawCardImageBytes); buffer 683 src/dps8/dps8_crdrdr.c word36 buffer [27]; buffer 689 src/dps8/dps8_crdrdr.c buffer [i] = extr36 ((uint8 *) rawCardImage, i); buffer 701 src/dps8/dps8_crdrdr.c buffer 728 src/dps8/dps8_crdrdr.c (void)memset (buffer, 0, sizeof (buffer)); buffer 732 src/dps8/dps8_crdrdr.c putbits36_12 (& buffer [wordno], fieldno * 12, (word12) hbuf [col]); buffer 740 src/dps8/dps8_crdrdr.c buffer 741 src/dps8/dps8_crdrdr.c buffer 753 src/dps8/dps8_crdrdr.c iom_indirect_data_service (iomUnitIdx, chan, buffer, & tally, true); buffer 922 src/dps8/dps8_disk.c word36 buffer[tally]; buffer 928 src/dps8/dps8_disk.c buffer[i] = w; buffer 930 src/dps8/dps8_disk.c iom_indirect_data_service (iomUnitIdx, chan, buffer, buffer 991 src/dps8/dps8_disk.c word36 buffer[tally]; buffer 992 src/dps8/dps8_disk.c iom_indirect_data_service (iomUnitIdx, chan, buffer, buffer 998 src/dps8/dps8_disk.c buffer[i]); buffer 1043 src/dps8/dps8_disk.c word36 buffer[tally]; buffer 1044 src/dps8/dps8_disk.c (void)memset (buffer, 0, sizeof (buffer)); buffer 1046 src/dps8/dps8_disk.c buffer[0] = nCmds; buffer 1049 src/dps8/dps8_disk.c iom_indirect_data_service (iomUnitIdx, chan, buffer, buffer 1149 src/dps8/dps8_disk.c word36 buffer[tally]; buffer 1150 src/dps8/dps8_disk.c (void)memset (buffer, 0, sizeof (buffer)); buffer 1151 src/dps8/dps8_disk.c putbits36_9 (& buffer[0], 0, 0x12); buffer 1152 src/dps8/dps8_disk.c putbits36_9 (& buffer[0], 9, 1); // h/w revision buffer 1153 src/dps8/dps8_disk.c putbits36_9 (& buffer[0], 18, '1'); // fw maj revision buffer 1154 src/dps8/dps8_disk.c putbits36_9 (& buffer[0], 27, 'a'); // fw sub revision buffer 1164 src/dps8/dps8_disk.c putbits36_9 (& buffer[1+dev_num], 0, dau_type); // dev.type buffer 1165 src/dps8/dps8_disk.c putbits36_9 (& buffer[1+dev_num], 9, dev_num); // dev.number buffer 1166 src/dps8/dps8_disk.c putbits36_9 (& buffer[1+dev_num], 18, 0); // dev.summary_status // XXX buffer 1167 src/dps8/dps8_disk.c putbits36_9 (& buffer[1+dev_num], 27, dev_num); // dev.port_number buffer 1171 src/dps8/dps8_disk.c iom_indirect_data_service (iom_unit_idx, chan, buffer, buffer 530 src/dps8/dps8_fnp2.c buffer 531 src/dps8/dps8_fnp2.c buffer 533 src/dps8/dps8_fnp2.c buffer 543 src/dps8/dps8_fnp2.c buffer 544 src/dps8/dps8_fnp2.c buffer 546 src/dps8/dps8_fnp2.c buffer 556 src/dps8/dps8_fnp2.c l_putbits36_9 (& v, 0, linep->buffer [i]); buffer 558 src/dps8/dps8_fnp2.c l_putbits36_9 (& v, 9, linep->buffer [i + 1]); buffer 560 src/dps8/dps8_fnp2.c l_putbits36_9 (& v, 18, linep->buffer [i + 2]); buffer 562 src/dps8/dps8_fnp2.c l_putbits36_9 (& v, 27, linep->buffer [i + 3]); buffer 895 src/dps8/dps8_fnp2.c linep->buffer[linep->nPos ++] = kar; buffer 896 src/dps8/dps8_fnp2.c linep->buffer[linep->nPos] = 0; buffer 1085 src/dps8/dps8_fnp2.c linep->buffer[linep->nPos++] = kar; buffer 1088 src/dps8/dps8_fnp2.c while ((size_t) linep->nPos < sizeof (linep->buffer) && linep->nPos < frsz) buffer 1089 src/dps8/dps8_fnp2.c linep->buffer[linep->nPos++] = 0; buffer 1107 src/dps8/dps8_fnp2.c linep->buffer[linep->nPos++] = kar; buffer 1108 src/dps8/dps8_fnp2.c linep->buffer[linep->nPos] = 0; buffer 1136 src/dps8/dps8_fnp2.c linep->buffer[linep->nPos] = 0; // remove char from buffer buffer 1149 src/dps8/dps8_fnp2.c linep->buffer[linep->nPos] = 0; buffer 1157 src/dps8/dps8_fnp2.c fnpuv_start_writestr (linep->line_client, linep->buffer); buffer 1168 src/dps8/dps8_fnp2.c linep->buffer[linep->nPos++] = kar; buffer 1169 src/dps8/dps8_fnp2.c linep->buffer[linep->nPos] = 0; buffer 1179 src/dps8/dps8_fnp2.c (size_t) linep->nPos >= sizeof (linep->buffer) || buffer 1262 src/dps8/dps8_fnp2.c linep->buffer[linep->nPos++] = c; buffer 1263 src/dps8/dps8_fnp2.c linep->buffer[linep->nPos] = 0; buffer 1348 src/dps8/dps8_fnp2.c if ((unsigned long) linep->nPos + len > sizeof (linep->buffer)) buffer 1352 src/dps8/dps8_fnp2.c memcpy (linep->buffer + linep->nPos, msg, len); buffer 1357 src/dps8/dps8_fnp2.c buffer 1359 src/dps8/dps8_fnp2.c buffer 1411 src/dps8/dps8_fnp2.c unsigned char * bufp = linep->buffer; buffer 1454 src/dps8/dps8_fnp2.c uint sz = (uint) (bufp - linep->buffer); buffer 1703 src/dps8/dps8_fnp2.c buffer 1704 src/dps8/dps8_fnp2.c buffer 1706 src/dps8/dps8_fnp2.c buffer 2886 src/dps8/dps8_fnp2.c if (p->nPos >= sizeof(p->buffer) - 1) buffer 2898 src/dps8/dps8_fnp2.c p->buffer[p->nPos] = 0; // remove char from buffer buffer 2907 src/dps8/dps8_fnp2.c p->buffer[p->nPos] = 0; buffer 2915 src/dps8/dps8_fnp2.c fnpuv_start_writestr (client, (unsigned char *) p->buffer); buffer 2929 src/dps8/dps8_fnp2.c p->buffer[p->nPos++] = (char) kar; buffer 2942 src/dps8/dps8_fnp2.c p->buffer[p->nPos] = 0; // remove char from buffer buffer 2951 src/dps8/dps8_fnp2.c p->buffer[p->nPos] = 0; buffer 2959 src/dps8/dps8_fnp2.c fnpuv_start_writestr (client, (unsigned char *) p->buffer); buffer 2972 src/dps8/dps8_fnp2.c memcpy (cpy, p->buffer, p->nPos); buffer 140 src/dps8/dps8_fnp2.h unsigned char buffer[1024]; // line buffer for initial device selection and line discipline buffer 1328 src/dps8/dps8_fnp2_iomcmd.c unsigned char * data_p = linep -> buffer; buffer 1344 src/dps8/dps8_fnp2_iomcmd.c if (isgraph (linep->buffer [i])) buffer 1345 src/dps8/dps8_fnp2_iomcmd.c sim_printf ("%c", linep->buffer [i]); buffer 1347 src/dps8/dps8_fnp2_iomcmd.c sim_printf ("\\%03o", linep->buffer [i]); buffer 487 src/dps8/dps8_mgp.c word36 buffer[4096]; /* tally size is max 4096 bytes */ buffer 490 src/dps8/dps8_mgp.c iom_unit_idx, chan, buffer, &words_processed, false); buffer 504 src/dps8/dps8_mgp.c if (( v = poll_from_cbridge(buffer, words_processed, 0)) < 0) buffer 519 src/dps8/dps8_mgp.c dumppkt("Read", buffer, words_processed); buffer 524 src/dps8/dps8_mgp.c iom_unit_idx, chan, buffer, &words_processed, true); buffer 550 src/dps8/dps8_mgp.c word36 buffer[4096]; /* tally size is max 4096 bytes */ buffer 553 src/dps8/dps8_mgp.c iom_unit_idx, chan, buffer, &words_processed, false); buffer 557 src/dps8/dps8_mgp.c dumppkt("Write", buffer, words_processed); buffer 559 src/dps8/dps8_mgp.c int v = handle_mgp_packet(buffer, words_processed); buffer 578 src/dps8/dps8_mgp.c iom_unit_idx, chan, buffer, &words_processed, true); buffer 674 src/dps8/dps8_mgp.c word36 buffer[128]; buffer 676 src/dps8/dps8_mgp.c (void)memset(buffer, 0, sizeof(buffer)); buffer 678 src/dps8/dps8_mgp.c int v = poll_from_cbridge(buffer, words_processed, 0); buffer 689 src/dps8/dps8_mgp.c dumppkt("Read", buffer, words_processed); buffer 691 src/dps8/dps8_mgp.c iom_unit_idx, chan, buffer, &words_processed, true); buffer 540 src/dps8/dps8_mt.c char buffer[len + 2]; buffer 544 src/dps8/dps8_mt.c strcpy(buffer, cptr); buffer 547 src/dps8/dps8_mt.c char *token = strtok(buffer, "="); buffer 882 src/dps8/dps8_mt.c static void deterimeFullTapeFileName(char * tapeFileName, char * buffer, int bufferLength) buffer 887 src/dps8/dps8_mt.c strncpy(buffer, tapeFileName, (unsigned long)bufferLength); buffer 888 src/dps8/dps8_mt.c buffer[bufferLength - 1] = 0; buffer 915 src/dps8/dps8_mt.c strncpy(buffer, tapeFileName, (unsigned long)bufferLength); buffer 916 src/dps8/dps8_mt.c buffer[bufferLength - 1] = 0; buffer 922 src/dps8/dps8_mt.c buffWrote = snprintf(buffer, buffer 1076 src/dps8/dps8_mt.c word36 buffer [tally]; buffer 1083 src/dps8/dps8_mt.c tape_statep -> tbc, & tape_statep -> words_processed, buffer + i); buffer 1086 src/dps8/dps8_mt.c tape_statep -> tbc, & tape_statep -> words_processed, buffer + i); buffer 1098 src/dps8/dps8_mt.c buffer 1107 src/dps8/dps8_mt.c iom_indirect_data_service (iomUnitIdx, chan, buffer, buffer 1268 src/dps8/dps8_mt.c word36 buffer [tally]; buffer 1270 src/dps8/dps8_mt.c iom_indirect_data_service (iomUnitIdx, chan, buffer, buffer 1278 src/dps8/dps8_mt.c buffer 1306 src/dps8/dps8_mt.c buffer [i]); buffer 1313 src/dps8/dps8_mt.c buffer [i]); buffer 1419 src/dps8/dps8_mt.c word36 buffer [bufsz]; buffer 1422 src/dps8/dps8_mt.c buffer [i] = 0; buffer 1450 src/dps8/dps8_mt.c buffer [cnt / 2] = ((word36) handler) << 18; buffer 1454 src/dps8/dps8_mt.c buffer [cnt / 2] |= handler; buffer 1458 src/dps8/dps8_mt.c iom_indirect_data_service (iomUnitIdx, chan, buffer, & bufsz, true); buffer 430 src/dps8/dps8_prt.c static int openPrtFile (int prt_unit_num, word36 * buffer, uint tally) buffer 438 src/dps8/dps8_prt.c if (tally == 1 && buffer[0] == 0014013000000llu) //-V536 buffer 445 src/dps8/dps8_prt.c int rc = parseID (buffer, tally, qno, name); buffer 477 src/dps8/dps8_prt.c static int eoj (word36 * buffer, uint tally) buffer 481 src/dps8/dps8_prt.c if (getbits36_9 (buffer[0], 0) != 037) buffer 483 src/dps8/dps8_prt.c if (getbits36_9 (buffer[0], 9) != 014) buffer 485 src/dps8/dps8_prt.c word9 ch = getbits36_9 (buffer[0], 18); buffer 488 src/dps8/dps8_prt.c ch = getbits36_9 (buffer[0], 27); buffer 491 src/dps8/dps8_prt.c ch = getbits36_9 (buffer[1], 0); buffer 494 src/dps8/dps8_prt.c ch = getbits36_9 (buffer[1], 9); buffer 497 src/dps8/dps8_prt.c ch = getbits36_9 (buffer[1], 18); buffer 500 src/dps8/dps8_prt.c if (getbits36_9 (buffer[1], 27) != 037) buffer 502 src/dps8/dps8_prt.c if (getbits36_9 (buffer[2], 0) != 005) buffer 571 src/dps8/dps8_prt.c buffer 572 src/dps8/dps8_prt.c buffer 595 src/dps8/dps8_prt.c buffer 616 src/dps8/dps8_prt.c static int print_buf (int prt_unit_num, bool isBCD, bool is_edited, int slew, word36 * buffer, uint tally) buffer 674 src/dps8/dps8_prt.c int rc = openPrtFile (prt_unit_num, buffer, tally); buffer 685 src/dps8/dps8_prt.c buffer 688 src/dps8/dps8_prt.c buffer 703 src/dps8/dps8_prt.c buffer 740 src/dps8/dps8_prt.c #define get_BCD_char(i) ((uint8_t) ((buffer[i / 6] >> ((5 - i % 6) * 6)) & 077)) buffer 846 src/dps8/dps8_prt.c #define get_ASCII_char(i) ((uint8_t) ((buffer[i / 4] >> ((3 - i % 4) * 9)) & 0377)) buffer 947 src/dps8/dps8_prt.c if ((! isBCD) && eoj (buffer, tally)) buffer 980 src/dps8/dps8_prt.c word36 buffer[tally]; buffer 981 src/dps8/dps8_prt.c (void)memset (buffer, 0, sizeof (buffer)); buffer 1004 src/dps8/dps8_prt.c iom_indirect_data_service (iom_unit_idx, chan, buffer, buffer 1069 src/dps8/dps8_prt.c word36 buffer[tally]; buffer 1071 src/dps8/dps8_prt.c iom_indirect_data_service (iom_unit_idx, chan, buffer, buffer 1077 src/dps8/dps8_prt.c buffer 1086 src/dps8/dps8_prt.c buffer 1094 src/dps8/dps8_prt.c int rc = print_buf (prt_unit_num, isBCD, is_edited, slew, buffer, tally); buffer 1107 src/dps8/dps8_prt.c buffer 330 src/dps8/dps8_socket_dev.c static void skt_socket (uint unit_idx, word5 dev_code, word36 * buffer) buffer 340 src/dps8/dps8_socket_dev.c int domain = (int) buffer[0]; buffer 341 src/dps8/dps8_socket_dev.c int type = (int) buffer[1]; buffer 342 src/dps8/dps8_socket_dev.c int protocol = (int) buffer[2]; buffer 372 src/dps8/dps8_socket_dev.c fd = socket ((int) buffer[0], (int) buffer[1], (int) buffer[2]); buffer 397 src/dps8/dps8_socket_dev.c buffer[3] = ((word36) ((word36s) fd)) & MASK36; // fd buffer 399 src/dps8/dps8_socket_dev.c set_error (& buffer[4], _errno); buffer 402 src/dps8/dps8_socket_dev.c static void skt_gethostbyname (word36 * buffer) buffer 418 src/dps8/dps8_socket_dev.c word9 cnt = getbits36_9 (buffer [0], 27); buffer 427 src/dps8/dps8_socket_dev.c buffer 447 src/dps8/dps8_socket_dev.c word9 ch = getbits36_9 (buffer[wordno], offset); buffer 467 src/dps8/dps8_socket_dev.c buffer[65] = ((word36) addr) << 4; buffer 473 src/dps8/dps8_socket_dev.c set_error (& buffer[66], 0); buffer 480 src/dps8/dps8_socket_dev.c case HOST_NOT_FOUND: set_error_str (& buffer[66], "HOST_NOT_FOUND"); break; buffer 481 src/dps8/dps8_socket_dev.c case NO_DATA: set_error_str (& buffer[66], "NO_DATA"); break; buffer 482 src/dps8/dps8_socket_dev.c case NO_RECOVERY: set_error_str (& buffer[66], "NO_RECOVERY"); break; buffer 483 src/dps8/dps8_socket_dev.c case TRY_AGAIN: set_error_str (& buffer[66], "TRY_AGAIN"); break; buffer 484 src/dps8/dps8_socket_dev.c default: set_error_str (& buffer[66], "EHUH"); break; buffer 489 src/dps8/dps8_socket_dev.c static void skt_bind (uint unit_idx, word6 dev_code, word36 * buffer) buffer 504 src/dps8/dps8_socket_dev.c int socket_fd = (int) buffer[0]; buffer 505 src/dps8/dps8_socket_dev.c int sin_family = (int) buffer[1]; buffer 506 src/dps8/dps8_socket_dev.c unsigned short sin_port = (unsigned short) getbits36_16 (buffer [2], 0); buffer 507 src/dps8/dps8_socket_dev.c word8 octet [4] = { getbits36_8 (buffer [3], 0), buffer 508 src/dps8/dps8_socket_dev.c getbits36_8 (buffer [3], 8), buffer 509 src/dps8/dps8_socket_dev.c getbits36_8 (buffer [3], 16), buffer 510 src/dps8/dps8_socket_dev.c getbits36_8 (buffer [3], 24)}; buffer 532 src/dps8/dps8_socket_dev.c set_error (& buffer[4], EBADF); buffer 551 src/dps8/dps8_socket_dev.c set_error (& buffer[4], _errno); buffer 554 src/dps8/dps8_socket_dev.c static void skt_listen (uint unit_idx, word6 dev_code, word36 * buffer) buffer 570 src/dps8/dps8_socket_dev.c int socket_fd = (int) buffer[0]; buffer 571 src/dps8/dps8_socket_dev.c int backlog = (int) buffer[1]; buffer 618 src/dps8/dps8_socket_dev.c buffer[2] = ((word36) ((word36s) rc)) & MASK36; // rc buffer 619 src/dps8/dps8_socket_dev.c set_error (& buffer[3], _errno); buffer 622 src/dps8/dps8_socket_dev.c static int skt_accept (uint unit_idx, word6 dev_code, word36 * buffer) buffer 634 src/dps8/dps8_socket_dev.c int socket_fd = (int) buffer[0]; buffer 639 src/dps8/dps8_socket_dev.c set_error (& buffer[4], EBADF); buffer 648 src/dps8/dps8_socket_dev.c static void skt_close (uint unit_idx, word6 dev_code, word36 * buffer) buffer 662 src/dps8/dps8_socket_dev.c int socket_fd = (int) buffer[0]; buffer 692 src/dps8/dps8_socket_dev.c buffer[1] = ((word36) ((word36s) rc)) & MASK36; // rc buffer 693 src/dps8/dps8_socket_dev.c set_error (& buffer[2], _errno); buffer 696 src/dps8/dps8_socket_dev.c static int skt_read8 (uint unit_idx, word6 dev_code, UNUSED uint tally, word36 * buffer) buffer 713 src/dps8/dps8_socket_dev.c int socket_fd = (int) buffer[0]; buffer 714 src/dps8/dps8_socket_dev.c uint count = (uint) buffer[1]; buffer 721 src/dps8/dps8_socket_dev.c set_error (& buffer[4], EBADF); buffer 730 src/dps8/dps8_socket_dev.c static int skt_write8 (uint iom_unit_idx, uint chan, uint unit_idx, word6 dev_code, uint tally, word36 * buffer) buffer 755 src/dps8/dps8_socket_dev.c int socket_fd = (int) buffer[0]; buffer 764 src/dps8/dps8_socket_dev.c set_error (& buffer[3], EBADF); buffer 770 src/dps8/dps8_socket_dev.c word36 count36 = buffer[1]; buffer 790 src/dps8/dps8_socket_dev.c netdata[n] = getbits36_8 (buffer [5 + wordno], charno * 9 + 1); buffer 798 src/dps8/dps8_socket_dev.c buffer[2] = ((word36) ((word36s) rc)) & MASK36; // rc buffer 799 src/dps8/dps8_socket_dev.c set_error (& buffer[3], _errno); buffer 885 src/dps8/dps8_socket_dev.c word36 buffer [expected_tally]; buffer 887 src/dps8/dps8_socket_dev.c iom_indirect_data_service (iom_unit_idx, chan, buffer, buffer 890 src/dps8/dps8_socket_dev.c skt_socket (unit_idx, p->IDCW_DEV_CODE, buffer); buffer 892 src/dps8/dps8_socket_dev.c iom_indirect_data_service (iom_unit_idx, chan, buffer, buffer 910 src/dps8/dps8_socket_dev.c word36 buffer [expected_tally]; buffer 912 src/dps8/dps8_socket_dev.c iom_indirect_data_service (iom_unit_idx, chan, buffer, buffer 915 src/dps8/dps8_socket_dev.c skt_bind (unit_idx, p->IDCW_DEV_CODE, buffer); buffer 917 src/dps8/dps8_socket_dev.c iom_indirect_data_service (iom_unit_idx, chan, buffer, buffer 943 src/dps8/dps8_socket_dev.c word36 buffer [expected_tally]; buffer 945 src/dps8/dps8_socket_dev.c iom_indirect_data_service (iom_unit_idx, chan, buffer, buffer 948 src/dps8/dps8_socket_dev.c skt_gethostbyname (buffer); buffer 950 src/dps8/dps8_socket_dev.c iom_indirect_data_service (iom_unit_idx, chan, buffer, buffer 969 src/dps8/dps8_socket_dev.c word36 buffer [expected_tally]; buffer 971 src/dps8/dps8_socket_dev.c iom_indirect_data_service (iom_unit_idx, chan, buffer, buffer 974 src/dps8/dps8_socket_dev.c skt_listen (unit_idx, p->IDCW_DEV_CODE, buffer); buffer 976 src/dps8/dps8_socket_dev.c iom_indirect_data_service (iom_unit_idx, chan, buffer, buffer 995 src/dps8/dps8_socket_dev.c word36 buffer [expected_tally]; buffer 997 src/dps8/dps8_socket_dev.c iom_indirect_data_service (iom_unit_idx, chan, buffer, buffer 1001 src/dps8/dps8_socket_dev.c rc = skt_accept (unit_idx, p->IDCW_DEV_CODE, buffer); buffer 1003 src/dps8/dps8_socket_dev.c iom_indirect_data_service (iom_unit_idx, chan, buffer, buffer 1025 src/dps8/dps8_socket_dev.c word36 buffer [expected_tally]; buffer 1027 src/dps8/dps8_socket_dev.c iom_indirect_data_service (iom_unit_idx, chan, buffer, buffer 1030 src/dps8/dps8_socket_dev.c skt_close (unit_idx, p->IDCW_DEV_CODE, buffer); buffer 1032 src/dps8/dps8_socket_dev.c iom_indirect_data_service (iom_unit_idx, chan, buffer, buffer 1050 src/dps8/dps8_socket_dev.c word36 buffer[4096]; /* tally size is max 4096 bytes */ buffer 1052 src/dps8/dps8_socket_dev.c iom_indirect_data_service (iom_unit_idx, chan, buffer, buffer 1056 src/dps8/dps8_socket_dev.c rc = skt_read8 (unit_idx, p->IDCW_DEV_CODE, tally, buffer); buffer 1058 src/dps8/dps8_socket_dev.c iom_indirect_data_service (iom_unit_idx, chan, buffer, buffer 1079 src/dps8/dps8_socket_dev.c word36 buffer[4096]; /* tally size is max 4096 bytes */ buffer 1081 src/dps8/dps8_socket_dev.c iom_indirect_data_service (iom_unit_idx, chan, buffer, buffer 1084 src/dps8/dps8_socket_dev.c rc = skt_write8 (iom_unit_idx, chan, unit_idx, p->IDCW_DEV_CODE, tally, buffer); buffer 1086 src/dps8/dps8_socket_dev.c iom_indirect_data_service (iom_unit_idx, chan, buffer, buffer 1166 src/dps8/dps8_socket_dev.c word36 buffer [7]; buffer 1168 src/dps8/dps8_socket_dev.c buffer[0] = ((word36) ((word36s) sk_data.unit_data[unit_idx][dev_code].accept_fd)) & MASK36; buffer 1169 src/dps8/dps8_socket_dev.c buffer[1] = ((word36) ((word36s) fd)) & MASK36; buffer 1170 src/dps8/dps8_socket_dev.c buffer[2] = ((word36) ((word36s) from.sin_family)) & MASK36; buffer 1172 src/dps8/dps8_socket_dev.c putbits36_16 (& buffer[3], 0, port); buffer 1174 src/dps8/dps8_socket_dev.c buffer[4] = ((word36) addr) << 4; buffer 1175 src/dps8/dps8_socket_dev.c set_error (& buffer[5], _errno); buffer 1181 src/dps8/dps8_socket_dev.c iom_indirect_data_service (iom_unit_idx, chan, buffer, buffer 1194 src/dps8/dps8_socket_dev.c word36 buffer [buffer_size_wds]; buffer 1196 src/dps8/dps8_socket_dev.c (void)memset (buffer, 0, sizeof (word36) * buffer_size_wds); buffer 1208 src/dps8/dps8_socket_dev.c buffer[0] = ((word36) ((word36s) sk_data.unit_data[unit_idx][dev_code].read_fd)) & MASK36; buffer 1209 src/dps8/dps8_socket_dev.c buffer[1] = ((word36) (sk_data.unit_data[unit_idx][dev_code].read_buffer_sz)) & MASK36; buffer 1210 src/dps8/dps8_socket_dev.c buffer[2] = ((word36) ((word36s) nread)) & MASK36; buffer 1211 src/dps8/dps8_socket_dev.c set_error (& buffer[3], _errno); buffer 1217 src/dps8/dps8_socket_dev.c putbits36_9 (& buffer [5 + wordno], charno * 9, (word9) netdata [n]); buffer 1225 src/dps8/dps8_socket_dev.c iom_indirect_data_service (iom_unit_idx, chan, buffer, buffer 47 src/dps8/dps8_utils.c char * dump_flags(char * buffer, word18 flags) buffer 49 src/dps8/dps8_utils.c (void)sprintf(buffer, "%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s", buffer 66 src/dps8/dps8_utils.c return buffer; buffer 44 src/dps8/dps8_utils.h char * dump_flags(char * buffer, word18 flags); buffer 61 src/dps8/fnptelnet.c (* p->read_cb) (client, (ssize_t) event->data.size, (unsigned char *)event->data.buffer); buffer 75 src/dps8/fnptelnet.c (* p->write_actual_cb) (client, (unsigned char *) event->data.buffer, (ssize_t) event->data.size); buffer 1253 src/dps8/fnpuv.c unsigned char buffer [1500 + 16]; buffer 1254 src/dps8/fnpuv.c ssize_t nread = read (linep->tun_fd, buffer, sizeof (buffer)); buffer 1273 src/dps8/fnpuv.c xbufr [i * 2 + 0] = bin2hex [(buffer [i] >> 4) & 0xf]; buffer 1274 src/dps8/fnpuv.c xbufr [i * 2 + 1] = bin2hex [(buffer [i] >> 0) & 0xf]; buffer 1285 src/dps8/fnpuv.c buffer [0], buffer [1], buffer [2], buffer [3], buffer 1286 src/dps8/fnpuv.c buffer [4], buffer [5], buffer [6], buffer [7]); buffer 1288 src/dps8/fnpuv.c buffer [8], buffer [9], buffer [10], buffer [11], buffer 1289 src/dps8/fnpuv.c buffer [12], buffer [13], buffer [14], buffer [15]); buffer 1290 src/dps8/fnpuv.c uint version = (buffer [ip + 0] >> 4) & 0xf; buffer 1291 src/dps8/fnpuv.c uint ihl = (buffer [ip + 0]) & 0xf; buffer 1293 src/dps8/fnpuv.c uint tos = buffer [ip + 1]; buffer 1294 src/dps8/fnpuv.c uint tl = ((uint) (buffer [ip + 2]) << 8) + buffer 1295 src/dps8/fnpuv.c buffer [ip + 3]; buffer 1296 src/dps8/fnpuv.c uint id = ((uint) (buffer [ip + 4]) << 8) + buffer 1297 src/dps8/fnpuv.c buffer [ip + 5]; buffer 1298 src/dps8/fnpuv.c uint df = (buffer [ip + 6] & 0x40) ? 1 : 0; buffer 1299 src/dps8/fnpuv.c uint mf = (buffer [ip + 6] & 0x20) ? 1 : 0; buffer 1300 src/dps8/fnpuv.c uint fragment_offset = ((uint) (buffer [ip + 6] & 0x1f) << 8) + buffer 1301 src/dps8/fnpuv.c buffer [ip + 7]; buffer 1302 src/dps8/fnpuv.c uint ttl = buffer [ip + 8]; buffer 1303 src/dps8/fnpuv.c uint protocol = buffer [ip + 9]; buffer 1304 src/dps8/fnpuv.c uint header_checksum = (((uint) buffer [ip + 10]) << 8) + buffer 1305 src/dps8/fnpuv.c buffer [ip + 11]; buffer 1306 src/dps8/fnpuv.c uint source_address = (((uint) buffer [ip + 12]) << 24) + buffer 1307 src/dps8/fnpuv.c (((uint) buffer [ip + 13]) << 16) + buffer 1308 src/dps8/fnpuv.c (((uint) buffer [ip + 14]) << 8) + buffer 1309 src/dps8/fnpuv.c buffer [ip + 15]; buffer 1310 src/dps8/fnpuv.c uint dest_address = (((uint) buffer [ip + 16]) << 24) + buffer 1311 src/dps8/fnpuv.c (((uint) buffer [ip + 17]) << 16) + buffer 1312 src/dps8/fnpuv.c (((uint) buffer [ip + 18]) << 8) + buffer 1313 src/dps8/fnpuv.c buffer [ip + 19]; buffer 1316 src/dps8/fnpuv.c uint type = buffer [payload_offset + 0]; buffer 1320 src/dps8/fnpuv.c buffer [ip + 12], buffer [ip + 13], buffer [ip + 14], buffer [ip + 15], buffer 1321 src/dps8/fnpuv.c buffer [ip + 16], buffer [ip + 17], buffer [ip + 18], buffer [ip + 19]); buffer 1327 src/dps8/fnpuv.c buffer [payload_offset + 0], buffer [payload_offset + 1], buffer [payload_offset + 2], buffer [payload_offset + 3], buffer 1328 src/dps8/fnpuv.c buffer [payload_offset + 4], buffer [payload_offset + 5], buffer [payload_offset + 6], buffer [payload_offset + 7]); buffer 29 src/dps8/fnpuv.h char buffer [1024]; buffer 120 src/dps8/libtelnet.c char *buffer; buffer 165 src/dps8/libtelnet.c char buffer[512]; buffer 170 src/dps8/libtelnet.c (void)vsnprintf(buffer, sizeof(buffer), fmt, va); buffer 178 src/dps8/libtelnet.c ev.error.msg = buffer; buffer 185 src/dps8/libtelnet.c static void _send(telnet_t *telnet, const char *buffer, buffer 190 src/dps8/libtelnet.c ev.data.buffer = buffer; buffer 470 src/dps8/libtelnet.c char* buffer, size_t size) { buffer 482 src/dps8/libtelnet.c if ((unsigned)buffer[0] != TELNET_ENVIRON_SEND && buffer 483 src/dps8/libtelnet.c (unsigned)buffer[0] != TELNET_ENVIRON_IS && buffer 484 src/dps8/libtelnet.c (unsigned)buffer[0] != TELNET_ENVIRON_INFO) { buffer 491 src/dps8/libtelnet.c ev.environ.cmd = (unsigned char) buffer[0]; buffer 507 src/dps8/libtelnet.c if ((unsigned)buffer[1] != TELNET_ENVIRON_VAR && buffer 508 src/dps8/libtelnet.c (unsigned)buffer[1] != TELNET_ENVIRON_USERVAR) { buffer 515 src/dps8/libtelnet.c if ((unsigned)buffer[size - 1] == TELNET_ENVIRON_ESC) { buffer 523 src/dps8/libtelnet.c for (c = buffer + 1; c < buffer + size; ++c) { buffer 541 src/dps8/libtelnet.c out = buffer; buffer 542 src/dps8/libtelnet.c c = buffer + 1; buffer 550 src/dps8/libtelnet.c while (c < buffer + size) { buffer 573 src/dps8/libtelnet.c if (c < buffer + size && *c == TELNET_ENVIRON_VALUE) { buffer 576 src/dps8/libtelnet.c while (c < buffer + size) { buffer 611 src/dps8/libtelnet.c static int _ttype_telnet(telnet_t *telnet, const char* buffer, size_t size) { buffer 622 src/dps8/libtelnet.c if (buffer[0] != TELNET_TTYPE_IS && buffer 623 src/dps8/libtelnet.c buffer[0] != TELNET_TTYPE_SEND) { buffer 630 src/dps8/libtelnet.c if (buffer[0] == TELNET_TTYPE_IS) { buffer 639 src/dps8/libtelnet.c memcpy(name, buffer + 1, size - 1); buffer 670 src/dps8/libtelnet.c ev.sub.buffer = telnet->buffer; buffer 677 src/dps8/libtelnet.c return _ttype_telnet(telnet, telnet->buffer, telnet->buffer_pos); buffer 680 src/dps8/libtelnet.c return _environ_telnet(telnet, telnet->sb_telopt, telnet->buffer, buffer 707 src/dps8/libtelnet.c if (telnet->buffer != 0) { buffer 708 src/dps8/libtelnet.c FREE(telnet->buffer); buffer 709 src/dps8/libtelnet.c telnet->buffer = 0; //-V1048 buffer 749 src/dps8/libtelnet.c new_buffer = (char *)realloc(telnet->buffer, _buffer_sizes[i + 1]); buffer 756 src/dps8/libtelnet.c telnet->buffer = new_buffer; buffer 761 src/dps8/libtelnet.c telnet->buffer[telnet->buffer_pos++] = (char) byte; buffer 765 src/dps8/libtelnet.c static void _process(telnet_t *telnet, const char *buffer, size_t size) { buffer 770 src/dps8/libtelnet.c byte = (unsigned char) buffer[i]; buffer 779 src/dps8/libtelnet.c ev.data.buffer = buffer + start; buffer 789 src/dps8/libtelnet.c ev.data.buffer = buffer + start; buffer 802 src/dps8/libtelnet.c ev.data.buffer = (char*)&byte; buffer 805 src/dps8/libtelnet.c byte = (unsigned char) buffer[i]; buffer 840 src/dps8/libtelnet.c ev.data.buffer = (char*)&byte; buffer 900 src/dps8/libtelnet.c telnet_recv(telnet, &buffer[start], size - start); buffer 936 src/dps8/libtelnet.c telnet_recv(telnet, &buffer[start], size - start); buffer 956 src/dps8/libtelnet.c ev.data.buffer = buffer + start; buffer 963 src/dps8/libtelnet.c void telnet_recv(telnet_t *telnet, const char *buffer, buffer 965 src/dps8/libtelnet.c _process(telnet, buffer, size); buffer 1062 src/dps8/libtelnet.c void telnet_send(telnet_t *telnet, const char *buffer, buffer 1068 src/dps8/libtelnet.c if (buffer[i] == (char)TELNET_IAC) { buffer 1071 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); buffer 1082 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); buffer 1087 src/dps8/libtelnet.c void telnet_send_text(telnet_t *telnet, const char *buffer, buffer 1093 src/dps8/libtelnet.c if (buffer[i] == (char)TELNET_IAC) { buffer 1096 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); buffer 1105 src/dps8/libtelnet.c (buffer[i] == '\r' || buffer[i] == '\n')) { buffer 1108 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); buffer 1113 src/dps8/libtelnet.c if (buffer[i] == '\r') { buffer 1125 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); buffer 1140 src/dps8/libtelnet.c char buffer[1024]; buffer 1141 src/dps8/libtelnet.c char *output = buffer; buffer 1147 src/dps8/libtelnet.c rs = vsnprintf(buffer, sizeof(buffer), fmt, va); buffer 1148 src/dps8/libtelnet.c if ((unsigned long) rs >= sizeof(buffer)) { buffer 1189 src/dps8/libtelnet.c if (output != buffer) { buffer 1210 src/dps8/libtelnet.c char buffer[1024]; buffer 1211 src/dps8/libtelnet.c char *output = buffer; buffer 1217 src/dps8/libtelnet.c rs = vsnprintf(buffer, sizeof(buffer), fmt, va); buffer 1218 src/dps8/libtelnet.c if ((unsigned long) rs >= sizeof(buffer)) { buffer 1235 src/dps8/libtelnet.c if (output != buffer) { buffer 262 src/dps8/libtelnet.h const char *buffer; /* byte buffer */ buffer 299 src/dps8/libtelnet.h const char *buffer; /* data of sub-negotiation */ buffer 393 src/dps8/libtelnet.h extern void telnet_recv(telnet_t *telnet, const char *buffer, buffer 426 src/dps8/libtelnet.h const char *buffer, size_t size); buffer 437 src/dps8/libtelnet.h const char *buffer, size_t size); buffer 432 src/dps8/uvutil.c (unsigned char *)event->data.buffer); buffer 438 src/dps8/uvutil.c accessStartWriteActual (client, (char *) event->data.buffer, buffer 88 src/libsir/include/sir/filesystem.h int _sir_aixself(char* buffer, size_t* size); buffer 92 src/libsir/include/sir/filesystem.h int _sir_openbsdself(char* buffer, int size); buffer 96 src/libsir/include/sir/filesystem.h int _sir_resolvepath(const char* restrict path, char* restrict buffer, size_t size); buffer 416 src/libsir/include/sir/helpers.h bool _sir_formattime(time_t now, char* buffer, const char* format) { buffer 417 src/libsir/include/sir/helpers.h if (!buffer || !format) buffer 426 src/libsir/include/sir/helpers.h return NULL != ptb && 0 != strftime(buffer, SIR_MAXTIME, format, ptb); buffer 203 src/libsir/include/sir/platform.h int pthread_getname_np(pthread_t thread, char* buffer, size_t length); buffer 244 src/libsir/src/sirfilesystem.c char* buffer = NULL; buffer 248 src/libsir/src/sirfilesystem.c _sir_safefree(&buffer); buffer 249 src/libsir/src/sirfilesystem.c buffer = (char*)calloc(size, sizeof(char)); buffer 250 src/libsir/src/sirfilesystem.c if (NULL == buffer) { buffer 257 src/libsir/src/sirfilesystem.c ssize_t rdlink = _sir_readlink(PROC_SELF, buffer, size - 1); buffer 276 src/libsir/src/sirfilesystem.c int ret = _sir_aixself(buffer, &size); buffer 289 src/libsir/src/sirfilesystem.c (void)_sir_openbsdself(buffer, length); buffer 290 src/libsir/src/sirfilesystem.c resolved = _sir_validptrnofail(buffer); buffer 294 src/libsir/src/sirfilesystem.c int ret = sysctl(mib, 4, buffer, &size, NULL, 0); buffer 307 src/libsir/src/sirfilesystem.c find_path(B_APP_IMAGE_SYMBOL, B_FIND_PATH_IMAGE_PATH, NULL, buffer, SIR_MAXPATH); buffer 319 src/libsir/src/sirfilesystem.c int ret = _NSGetExecutablePath(buffer, (uint32_t*)&size); buffer 334 src/libsir/src/sirfilesystem.c DWORD ret = GetModuleFileNameA(NULL, buffer, (DWORD)size); buffer 353 src/libsir/src/sirfilesystem.c _sir_safefree(&buffer); buffer 355 src/libsir/src/sirfilesystem.c return buffer; buffer 446 src/libsir/src/sirfilesystem.c int _sir_aixself(char* buffer, size_t* size) { buffer 456 src/libsir/src/sirfilesystem.c if ((buffer == NULL) || (size == NULL)) buffer 483 src/libsir/src/sirfilesystem.c (void)_sir_strncpy(buffer, SIR_MAXPATH, symlink, SIR_MAXPATH); buffer 485 src/libsir/src/sirfilesystem.c (void)snprintf(buffer, *size - 1, "%s/%s", (char*)dirname(symlink), buffer 488 src/libsir/src/sirfilesystem.c *size = strnlen(buffer, SIR_MAXPATH); buffer 504 src/libsir/src/sirfilesystem.c (void)_sir_strncpy(buffer, SIR_MAXPATH, symlink, SIR_MAXPATH); buffer 506 src/libsir/src/sirfilesystem.c (void)snprintf(buffer, *size - 1, "%s/%s", (char*)dirname(symlink), temp_buffer); buffer 508 src/libsir/src/sirfilesystem.c *size = strnlen(buffer, SIR_MAXPATH); buffer 521 src/libsir/src/sirfilesystem.c (void)_sir_strncpy(buffer, SIR_MAXPATH, symlink, SIR_MAXPATH); buffer 523 src/libsir/src/sirfilesystem.c (void)snprintf(buffer, *size - 1, "%s/%s", (char*)dirname(symlink), temp_buffer); buffer 525 src/libsir/src/sirfilesystem.c *size = strnlen(buffer, SIR_MAXPATH); buffer 559 src/libsir/src/sirfilesystem.c (void)_sir_strncpy(buffer, SIR_MAXPATH, symlink, SIR_MAXPATH); buffer 561 src/libsir/src/sirfilesystem.c (void)snprintf(buffer, *size - 1, "%s/%s", (char*)dirname(symlink), temp_buffer); buffer 563 src/libsir/src/sirfilesystem.c *size = strnlen(buffer, SIR_MAXPATH); buffer 571 src/libsir/src/sirfilesystem.c (void)_sir_strncpy(buffer, SIR_MAXPATH, symlink, SIR_MAXPATH); buffer 573 src/libsir/src/sirfilesystem.c (void)snprintf(buffer, *size - 1, "%s/%s", (char*)dirname(symlink), temp_buffer); buffer 575 src/libsir/src/sirfilesystem.c *size = strnlen(buffer, SIR_MAXPATH); buffer 586 src/libsir/src/sirfilesystem.c int _sir_aixself(char* buffer, size_t* size) { buffer 608 src/libsir/src/sirfilesystem.c (void)_sir_strncpy(buffer, *size, tmp2, strnlen(tmp2, *size - 1)); buffer 610 src/libsir/src/sirfilesystem.c (void)_sir_resolvepath(tmp, buffer, *size); buffer 612 src/libsir/src/sirfilesystem.c if (_sir_validstrnofail(buffer)) buffer 635 src/libsir/src/sirfilesystem.c int _sir_openbsdself(char* buffer, int size) { buffer 671 src/libsir/src/sirfilesystem.c (void)memcpy(buffer, resolved, (size_t)length); buffer 682 src/libsir/src/sirfilesystem.c int _sir_resolvepath(const char* restrict path, char* restrict buffer, size_t size) { buffer 683 src/libsir/src/sirfilesystem.c if (!_sir_validstr(path) || !_sir_validptr(buffer)) buffer 717 src/libsir/src/sirfilesystem.c (void)_sir_strncpy(buffer, size, tmp2, (size_t)length); buffer 8583 src/simh/scp.c t_stat sprint_val (char *buffer, t_value val, uint32 radix, buffer 8620 src/simh/scp.c if (NULL == buffer) /* Potentially unsafe wraparound if */ buffer 8622 src/simh/scp.c *buffer = '\0'; buffer 8625 src/simh/scp.c strcpy(buffer, dbuf+d); buffer 10031 src/simh/scp.c memmove(snd->buffer, snd->buffer+snd->extoff, snd->insoff-snd->extoff); buffer 10037 src/simh/scp.c snd->buffer = (uint8 *)realloc(snd->buffer, snd->bufsize); buffer 10038 src/simh/scp.c if (!snd->buffer) buffer 10051 src/simh/scp.c memcpy(snd->buffer+snd->insoff, data, size); buffer 10078 src/simh/scp.c fprint_buffer_string (st, snd->buffer+snd->extoff, snd->insoff-snd->extoff); buffer 10119 src/simh/scp.c *stat = snd->buffer[snd->extoff++] | SCPE_KFLAG;/* get one */ buffer 661 src/simh/sim_defs.h uint8 *buffer; /* buffer */ buffer 404 src/simh/sim_tape.c t_mtrlnt buffer [256]; /* local tape buffer */ buffer 448 src/simh/sim_tape.c bufcap = sizeof (buffer) /* to the full size of the buffer */ buffer 449 src/simh/sim_tape.c / sizeof (buffer [0]); buffer 451 src/simh/sim_tape.c bufcap = sim_fread (buffer, /* fill the buffer */ buffer 465 src/simh/sim_tape.c || buffer [0] == MTR_EOM) /* or at the logical EOM */ buffer 484 src/simh/sim_tape.c *bc = buffer [bufcntr++]; /* store the metadata marker value */ buffer 619 src/simh/sim_tape.c t_mtrlnt buffer [256]; /* local tape buffer */ buffer 659 src/simh/sim_tape.c else if (uptr->pos < sizeof (buffer)) /* if less than a full buffer remains */ buffer 667 src/simh/sim_tape.c bufcntr = sim_fread (buffer, sizeof (t_mtrlnt), /* fill the buffer */ buffer 677 src/simh/sim_tape.c bufcap = sizeof (buffer) /* to the full size of the buffer */ buffer 678 src/simh/sim_tape.c / sizeof (buffer [0]); buffer 681 src/simh/sim_tape.c *bc = buffer [--bufcntr]; /* store the metadata marker value */ buffer 3588 src/simh/sim_tmxr.c if (lp->send.buffer)