buf 609 src/decNumber/decNumberLocal.h # define GETCOEFFBILL(df, buf) { \ buf 611 src/decNumber/decNumberLocal.h (buf)[0]=DPD2BIN0[sourhi&0x3ff] \ buf 616 src/decNumber/decNumberLocal.h # define GETCOEFFBILL(df, buf) { \ buf 619 src/decNumber/decNumberLocal.h (buf)[0]=DPD2BIN0[sourlo&0x3ff] \ buf 623 src/decNumber/decNumberLocal.h (buf)[1]=DPD2BIN0[((sourhi<<2) | (sourlo>>30))&0x3ff] \ buf 628 src/decNumber/decNumberLocal.h # define GETCOEFFBILL(df, buf) { \ buf 631 src/decNumber/decNumberLocal.h (buf)[0]=DPD2BIN0[sourlo&0x3ff] \ buf 635 src/decNumber/decNumberLocal.h (buf)[1]=DPD2BIN0[((sourml<<2) | (sourlo>>30))&0x3ff] \ buf 639 src/decNumber/decNumberLocal.h (buf)[2]=DPD2BIN0[((sourmh<<4) | (sourml>>28))&0x3ff] \ buf 643 src/decNumber/decNumberLocal.h (buf)[3]=DPD2BIN0[((sourhi<<6) | (sourmh>>26))&0x3ff] \ buf 656 src/decNumber/decNumberLocal.h # define GETCOEFFTHOU(df, buf) { \ buf 658 src/decNumber/decNumberLocal.h (buf)[0]=DPD2BIN[sourhi&0x3ff]; \ buf 659 src/decNumber/decNumberLocal.h (buf)[1]=DPD2BIN[(sourhi>>10)&0x3ff]; \ buf 660 src/decNumber/decNumberLocal.h (buf)[2]=DECCOMBMSD[sourhi>>26];} buf 663 src/decNumber/decNumberLocal.h # define GETCOEFFTHOU(df, buf) { \ buf 666 src/decNumber/decNumberLocal.h (buf)[0]=DPD2BIN[sourlo&0x3ff]; \ buf 667 src/decNumber/decNumberLocal.h (buf)[1]=DPD2BIN[(sourlo>>10)&0x3ff]; \ buf 668 src/decNumber/decNumberLocal.h (buf)[2]=DPD2BIN[(sourlo>>20)&0x3ff]; \ buf 670 src/decNumber/decNumberLocal.h (buf)[3]=DPD2BIN[((sourhi<<2) | (sourlo>>30))&0x3ff]; \ buf 671 src/decNumber/decNumberLocal.h (buf)[4]=DPD2BIN[(sourhi>>8)&0x3ff]; \ buf 672 src/decNumber/decNumberLocal.h (buf)[5]=DECCOMBMSD[sourhi>>26];} buf 675 src/decNumber/decNumberLocal.h # define GETCOEFFTHOU(df, buf) { \ buf 678 src/decNumber/decNumberLocal.h (buf)[0]=DPD2BIN[sourlo&0x3ff]; \ buf 679 src/decNumber/decNumberLocal.h (buf)[1]=DPD2BIN[(sourlo>>10)&0x3ff]; \ buf 680 src/decNumber/decNumberLocal.h (buf)[2]=DPD2BIN[(sourlo>>20)&0x3ff]; \ buf 682 src/decNumber/decNumberLocal.h (buf)[3]=DPD2BIN[((sourml<<2) | (sourlo>>30))&0x3ff]; \ buf 683 src/decNumber/decNumberLocal.h (buf)[4]=DPD2BIN[(sourml>>8)&0x3ff]; \ buf 684 src/decNumber/decNumberLocal.h (buf)[5]=DPD2BIN[(sourml>>18)&0x3ff]; \ buf 686 src/decNumber/decNumberLocal.h (buf)[6]=DPD2BIN[((sourmh<<4) | (sourml>>28))&0x3ff]; \ buf 687 src/decNumber/decNumberLocal.h (buf)[7]=DPD2BIN[(sourmh>>6)&0x3ff]; \ buf 688 src/decNumber/decNumberLocal.h (buf)[8]=DPD2BIN[(sourmh>>16)&0x3ff]; \ buf 690 src/decNumber/decNumberLocal.h (buf)[9]=DPD2BIN[((sourhi<<6) | (sourmh>>26))&0x3ff]; \ buf 691 src/decNumber/decNumberLocal.h (buf)[10]=DPD2BIN[(sourhi>>4)&0x3ff]; \ buf 692 src/decNumber/decNumberLocal.h (buf)[11]=DECCOMBMSD[sourhi>>26];} buf 700 src/decNumber/decNumberLocal.h # define ADDCOEFFTHOU(df, buf) { \ buf 702 src/decNumber/decNumberLocal.h (buf)[0]+=DPD2BIN[sourhi&0x3ff]; \ buf 703 src/decNumber/decNumberLocal.h if (buf[0]>999) {buf[0]-=1000; buf[1]++;} \ buf 704 src/decNumber/decNumberLocal.h (buf)[1]+=DPD2BIN[(sourhi>>10)&0x3ff]; \ buf 705 src/decNumber/decNumberLocal.h if (buf[1]>999) {buf[1]-=1000; buf[2]++;} \ buf 706 src/decNumber/decNumberLocal.h (buf)[2]+=DECCOMBMSD[sourhi>>26];} buf 709 src/decNumber/decNumberLocal.h # define ADDCOEFFTHOU(df, buf) { \ buf 712 src/decNumber/decNumberLocal.h (buf)[0]+=DPD2BIN[sourlo&0x3ff]; \ buf 713 src/decNumber/decNumberLocal.h if (buf[0]>999) {buf[0]-=1000; buf[1]++;} \ buf 714 src/decNumber/decNumberLocal.h (buf)[1]+=DPD2BIN[(sourlo>>10)&0x3ff]; \ buf 715 src/decNumber/decNumberLocal.h if (buf[1]>999) {buf[1]-=1000; buf[2]++;} \ buf 716 src/decNumber/decNumberLocal.h (buf)[2]+=DPD2BIN[(sourlo>>20)&0x3ff]; \ buf 717 src/decNumber/decNumberLocal.h if (buf[2]>999) {buf[2]-=1000; buf[3]++;} \ buf 719 src/decNumber/decNumberLocal.h (buf)[3]+=DPD2BIN[((sourhi<<2) | (sourlo>>30))&0x3ff]; \ buf 720 src/decNumber/decNumberLocal.h if (buf[3]>999) {buf[3]-=1000; buf[4]++;} \ buf 721 src/decNumber/decNumberLocal.h (buf)[4]+=DPD2BIN[(sourhi>>8)&0x3ff]; \ buf 722 src/decNumber/decNumberLocal.h if (buf[4]>999) {buf[4]-=1000; buf[5]++;} \ buf 723 src/decNumber/decNumberLocal.h (buf)[5]+=DECCOMBMSD[sourhi>>26];} buf 726 src/decNumber/decNumberLocal.h # define ADDCOEFFTHOU(df, buf) { \ buf 729 src/decNumber/decNumberLocal.h (buf)[0]+=DPD2BIN[sourlo&0x3ff]; \ buf 730 src/decNumber/decNumberLocal.h if (buf[0]>999) {buf[0]-=1000; buf[1]++;} \ buf 731 src/decNumber/decNumberLocal.h (buf)[1]+=DPD2BIN[(sourlo>>10)&0x3ff]; \ buf 732 src/decNumber/decNumberLocal.h if (buf[1]>999) {buf[1]-=1000; buf[2]++;} \ buf 733 src/decNumber/decNumberLocal.h (buf)[2]+=DPD2BIN[(sourlo>>20)&0x3ff]; \ buf 734 src/decNumber/decNumberLocal.h if (buf[2]>999) {buf[2]-=1000; buf[3]++;} \ buf 736 src/decNumber/decNumberLocal.h (buf)[3]+=DPD2BIN[((sourml<<2) | (sourlo>>30))&0x3ff]; \ buf 737 src/decNumber/decNumberLocal.h if (buf[3]>999) {buf[3]-=1000; buf[4]++;} \ buf 738 src/decNumber/decNumberLocal.h (buf)[4]+=DPD2BIN[(sourml>>8)&0x3ff]; \ buf 739 src/decNumber/decNumberLocal.h if (buf[4]>999) {buf[4]-=1000; buf[5]++;} \ buf 740 src/decNumber/decNumberLocal.h (buf)[5]+=DPD2BIN[(sourml>>18)&0x3ff]; \ buf 741 src/decNumber/decNumberLocal.h if (buf[5]>999) {buf[5]-=1000; buf[6]++;} \ buf 743 src/decNumber/decNumberLocal.h (buf)[6]+=DPD2BIN[((sourmh<<4) | (sourml>>28))&0x3ff]; \ buf 744 src/decNumber/decNumberLocal.h if (buf[6]>999) {buf[6]-=1000; buf[7]++;} \ buf 745 src/decNumber/decNumberLocal.h (buf)[7]+=DPD2BIN[(sourmh>>6)&0x3ff]; \ buf 746 src/decNumber/decNumberLocal.h if (buf[7]>999) {buf[7]-=1000; buf[8]++;} \ buf 747 src/decNumber/decNumberLocal.h (buf)[8]+=DPD2BIN[(sourmh>>16)&0x3ff]; \ buf 748 src/decNumber/decNumberLocal.h if (buf[8]>999) {buf[8]-=1000; buf[9]++;} \ buf 750 src/decNumber/decNumberLocal.h (buf)[9]+=DPD2BIN[((sourhi<<6) | (sourmh>>26))&0x3ff]; \ buf 751 src/decNumber/decNumberLocal.h if (buf[9]>999) {buf[9]-=1000; buf[10]++;} \ buf 752 src/decNumber/decNumberLocal.h (buf)[10]+=DPD2BIN[(sourhi>>4)&0x3ff]; \ buf 753 src/decNumber/decNumberLocal.h if (buf[10]>999) {buf[10]-=1000; buf[11]++;} \ buf 754 src/decNumber/decNumberLocal.h (buf)[11]+=DECCOMBMSD[sourhi>>26];} buf 376 src/dps8/dps8_addrmods.c char buf [256]; buf 379 src/dps8/dps8_addrmods.c __func__, op_desc_str (buf), cpu.TPR.CA); buf 441 src/dps8/dps8_addrmods.c __func__, cpu.rTAG, get_mod_string (buf, cpu.rTAG), Tm, Td, cpu.cu.CT_HOLD); buf 679 src/dps8/dps8_addrmods.c get_mod_string (buf, GET_TAG (cpu.itxPair[0]))); buf 118 src/dps8/dps8_append.c static char *str_sdw (char * buf, sdw_s *SDW); buf 369 src/dps8/dps8_append.c char buf[256]; buf 370 src/dps8/dps8_append.c (void)buf; buf 372 src/dps8/dps8_append.c DBGAPP ("%s(2):SDWAM[%d]=%s\n", __func__, _n, str_sdw (buf, cpu.SDW)); buf 399 src/dps8/dps8_append.c char buf[256]; buf 400 src/dps8/dps8_append.c (void)buf; buf 402 src/dps8/dps8_append.c DBGAPP ("%s(2):SDWAM[%d]=%s\n", __func__, toffset + setno, str_sdw (buf, cpu.SDW)); buf 522 src/dps8/dps8_append.c char buf[256]; buf 523 src/dps8/dps8_append.c (void)buf; buf 524 src/dps8/dps8_append.c DBGAPP ("%s (2):SDW0=%s\n", __func__, str_SDW0 (buf, & cpu.SDW0)); buf 529 src/dps8/dps8_append.c static char *str_sdw (char * buf, sdw_s *SDW) buf 532 src/dps8/dps8_append.c sprintf (buf, "*** SDW Uninitialized ***"); buf 534 src/dps8/dps8_append.c sprintf (buf, buf 541 src/dps8/dps8_append.c return buf; buf 551 src/dps8/dps8_append.c char buf[256]; buf 552 src/dps8/dps8_append.c (void)buf; buf 558 src/dps8/dps8_append.c sim_printf ("SDWAM n:%d %s\n", _n, str_sdw (buf, p)); buf 630 src/dps8/dps8_append.c char buf[256]; buf 631 src/dps8/dps8_append.c (void) buf; buf 633 src/dps8/dps8_append.c DBGAPP ("%s(2):SDWAM[%d]=%s\n", __func__, _n, str_sdw (buf, p)); buf 673 src/dps8/dps8_append.c char buf[256]; buf 674 src/dps8/dps8_append.c (void) buf; buf 676 src/dps8/dps8_append.c DBGAPP ("%s(2):SDWAM[%d]=%s\n", __func__, toffset + setno, str_sdw (buf, cpu.SDW)); buf 1287 src/dps8/dps8_cable.c t_stat sys_cable (int32 arg, const char * buf) buf 1289 src/dps8/dps8_cable.c char * copy = strdup (buf); buf 1537 src/dps8/dps8_cable.c t_stat sys_cable_show (int32 dump, UNUSED const char * buf) buf 1703 src/dps8/dps8_cable.c t_stat sys_cable_ripout (UNUSED int32 arg, UNUSED const char * buf) buf 266 src/dps8/dps8_cable.h t_stat sys_cable (UNUSED int32 arg, const char * buf); buf 290 src/dps8/dps8_cable.h t_stat sys_cable (UNUSED int32 arg, const char * buf); buf 291 src/dps8/dps8_cable.h t_stat sys_cable_ripout (UNUSED int32 arg, UNUSED const char * buf); buf 292 src/dps8/dps8_cable.h t_stat sys_cable_show (UNUSED int32 arg, UNUSED const char * buf); buf 727 src/dps8/dps8_console.c word36 buf[n_words + 1]; buf 729 src/dps8/dps8_console.c memset (buf, 0, sizeof (word36) * (n_words + 1)); buf 730 src/dps8/dps8_console.c word36 * bufp = buf; buf 806 src/dps8/dps8_console.c iom_indirect_data_service (iomUnitIdx, chan_num, buf, & n_words, true); buf 953 src/dps8/dps8_console.c char buf[256]; buf 956 src/dps8/dps8_console.c sprintf (buf, "^T attn %c %c cnt %d next %d\r\n", buf 960 src/dps8/dps8_console.c console_putstr (conUnitIdx, buf); buf 1018 src/dps8/dps8_console.c char buf[4096]; buf 1019 src/dps8/dps8_console.c sprintf (buf, "\r%s returned %d '%s'\r\n", buf 1021 src/dps8/dps8_console.c console_putstr (conUnitIdx, buf); buf 1489 src/dps8/dps8_console.c word36 buf[tally]; buf 1490 src/dps8/dps8_console.c iom_indirect_data_service (iomUnitIdx, chan, buf, & tally, false); buf 1496 src/dps8/dps8_console.c buf 1498 src/dps8/dps8_console.c buf 1512 src/dps8/dps8_console.c buf 1514 src/dps8/dps8_console.c buf 1526 src/dps8/dps8_console.c word36 * bufp = buf; buf 1232 src/dps8/dps8_cpu.c char * str_SDW0 (char * buf, sdw0_s * SDW) buf 1234 src/dps8/dps8_cpu.c sprintf (buf, "ADDR=%06o R1=%o R2=%o R3=%o F=%o FC=%o BOUND=%o R=%o " buf 1239 src/dps8/dps8_cpu.c return buf; buf 3494 src/dps8/dps8_cpu.c t_stat set_mem_watch (int32 arg, const char * buf) buf 3496 src/dps8/dps8_cpu.c if (strlen (buf) == 0) buf 3508 src/dps8/dps8_cpu.c long int n = strtol (buf, & end, 0); buf 4517 src/dps8/dps8_cpu.c char * buf = stackbuf; buf 4533 src/dps8/dps8_cpu.c buf [bufsize-1] = '\0'; buf 4539 src/dps8/dps8_cpu.c len = vsprintf (buf, fmt, arglist); buf 4541 src/dps8/dps8_cpu.c len = vsnprintf (buf, (int)((unsigned long)(bufsize)-1), fmt, arglist); buf 4549 src/dps8/dps8_cpu.c if (buf != stackbuf) buf 4550 src/dps8/dps8_cpu.c FREE (buf); buf 4554 src/dps8/dps8_cpu.c buf = (char *) malloc ((unsigned long) bufsize); buf 4555 src/dps8/dps8_cpu.c if (buf == NULL) /* out of memory */ buf 4557 src/dps8/dps8_cpu.c buf[bufsize-1] = '\0'; buf 4567 src/dps8/dps8_cpu.c if ('\n' == buf[i]) buf 4575 src/dps8/dps8_cpu.c current_running_cpu_idx, dptr->name, debug_type, i-j, &buf[j]); buf 4583 src/dps8/dps8_cpu.c if (buf != stackbuf) buf 4584 src/dps8/dps8_cpu.c FREE (buf); buf 2370 src/dps8/dps8_cpu.h t_stat set_mem_watch (int32 arg, const char * buf); buf 2372 src/dps8/dps8_cpu.h char *str_SDW0 (char * buf, sdw_s *SDW); buf 2273 src/dps8/dps8_fnp2.c buf 2275 src/dps8/dps8_fnp2.c buf 2278 src/dps8/dps8_fnp2.c buf 2372 src/dps8/dps8_fnp2.c t_stat set_fnp_server_port (UNUSED int32 arg, const char * buf) buf 2379 src/dps8/dps8_fnp2.c if (! buf) buf 2381 src/dps8/dps8_fnp2.c int n = atoi (buf); buf 2392 src/dps8/dps8_fnp2.c t_stat set_fnp_server_address (UNUSED int32 arg, const char * buf) buf 2399 src/dps8/dps8_fnp2.c if ( (!buf) || (buf[0] == 0) ) buf 2403 src/dps8/dps8_fnp2.c fnpData.telnet_address = strdup (buf); buf 2423 src/dps8/dps8_fnp2.c t_stat set_fnp_3270_server_port (UNUSED int32 arg, const char * buf) buf 2431 src/dps8/dps8_fnp2.c if (! buf) buf 2433 src/dps8/dps8_fnp2.c int n = atoi (buf); buf 2444 src/dps8/dps8_fnp2.c t_stat fnp_start (UNUSED int32 arg, UNUSED const char * buf) buf 2547 src/dps8/dps8_fnp2.c unsigned char buf [l]; buf 2549 src/dps8/dps8_fnp2.c buf[i] = a2e[msg[i]]; buf 2561 src/dps8/dps8_fnp2.c fnpuv_start_3270_write (client, buf, (ssize_t) l); buf 2584 src/dps8/dps8_fnp2.c unsigned char buf [256]; buf 2585 src/dps8/dps8_fnp2.c sprintf ((char *) buf, "DPS8/M 3270 connection to %c.%03d.%ld ttype %s\n", fnpno+'a',lineno, (long)p->stationNo, p->ttype); buf 2587 src/dps8/dps8_fnp2.c fnp3270Msg (client, buf); buf 2591 src/dps8/dps8_fnp2.c void processLineInput (uv_tcp_t * client, unsigned char * buf, ssize_t nread) buf 2630 src/dps8/dps8_fnp2.c memcpy (new + linep->inSize, buf, (unsigned long) nread); buf 2642 src/dps8/dps8_fnp2.c memcpy (linep->inBuffer, buf, (unsigned long) nread); buf 2652 src/dps8/dps8_fnp2.c void process3270Input (uv_tcp_t * client, unsigned char * buf, ssize_t nread) buf 2671 src/dps8/dps8_fnp2.c for (int i = 0; i < nread; i ++) sim_debug (DBG_TRACE, & fnp_dev, "%c", isgraph (e2a[buf[i]]) ? e2a[buf[i]] : '.'); buf 2673 src/dps8/dps8_fnp2.c for (int i = 0; i < nread; i ++) sim_debug (DBG_TRACE, & fnp_dev, " %02x", buf[i]); buf 2708 src/dps8/dps8_fnp2.c memcpy (new + stn_p->stn_in_size, buf, (unsigned long) nread); buf 2720 src/dps8/dps8_fnp2.c memcpy (stn_p->stn_in_buffer, buf, (unsigned long) nread); buf 2773 src/dps8/dps8_fnp2.c void processUserInput (uv_tcp_t * client, unsigned char * buf, ssize_t nread) buf 2783 src/dps8/dps8_fnp2.c unsigned char kar = buf [nchar]; buf 341 src/dps8/dps8_fnp2.h t_stat set_fnp_server_port (int32 arg, const char * buf); buf 342 src/dps8/dps8_fnp2.h t_stat set_fnp_server_address (int32 arg, const char * buf); buf 343 src/dps8/dps8_fnp2.h t_stat set_fnp_3270_server_port (int32 arg, const char * buf); buf 344 src/dps8/dps8_fnp2.h t_stat fnp_start (UNUSED int32 arg, UNUSED const char * buf); buf 347 src/dps8/dps8_fnp2.h void processUserInput (uv_tcp_t * client, unsigned char * buf, ssize_t nread); buf 348 src/dps8/dps8_fnp2.h void processLineInput (uv_tcp_t * client, unsigned char * buf, ssize_t nread); buf 350 src/dps8/dps8_fnp2.h void process3270Input (uv_tcp_t * client, unsigned char * buf, ssize_t nread); buf 89 src/dps8/dps8_ins.c char buf [256]; buf 95 src/dps8/dps8_ins.c __func__, disassemble (buf, IWB_IRODD), i->info->mne, i->info->flags); buf 168 src/dps8/dps8_ins.c char buf [256]; buf 174 src/dps8/dps8_ins.c __func__, disassemble (buf, IWB_IRODD), i->info->mne, i->info->flags); buf 1040 src/dps8/dps8_ins.c t_stat display_the_matrix (UNUSED int32 arg, UNUSED const char * buf) buf 1158 src/dps8/dps8_ins.c char buf [256]; buf 1209 src/dps8/dps8_ins.c disassemble (buf, IWB_IRODD), buf 1226 src/dps8/dps8_ins.c disassemble (buf, IWB_IRODD), buf 1249 src/dps8/dps8_ins.c disassemble (buf, IWB_IRODD), buf 1267 src/dps8/dps8_ins.c disassemble (buf, IWB_IRODD), buf 2219 src/dps8/dps8_ins.c char buf [256]; buf 2220 src/dps8/dps8_ins.c sim_debug (DBG_REGDUMPAQI, &cpu_dev, "A=%012"PRIo64" Q=%012"PRIo64" IR:%s\n", cpu.rA, cpu.rQ, dump_flags (buf, cpu.cu.IR)); buf 9314 src/dps8/dps8_ins.c buf 9346 src/dps8/dps8_ins.c buf 9356 src/dps8/dps8_ins.c buf 9364 src/dps8/dps8_ins.c buf 9365 src/dps8/dps8_ins.c buf 27 src/dps8/dps8_ins.h t_stat display_the_matrix (int32 arg, const char * buf); buf 76 src/dps8/dps8_mgp.c static void dumppkt(char *hdr, word36 *buf, uint words); buf 77 src/dps8/dps8_mgp.c static int handle_mgp_packet(word36 *buf, uint words); buf 78 src/dps8/dps8_mgp.c static int poll_from_cbridge(word36 *buf, uint words, uint probe_only); buf 126 src/dps8/dps8_mgp.c hash32s(const void *buf, size_t len, uint32_t h) buf 128 src/dps8/dps8_mgp.c const unsigned char *p = buf; buf 841 src/dps8/dps8_mgp.c copy_packet9_to_cbridge8(word36 *buf, uint words, u_char *dest, int dlen) buf 849 src/dps8/dps8_mgp.c dest[j] = getbits36_9(buf[MGP_PACKET_HEADER_SIZE + j / 4], ( j % 4 ) * 9); buf 856 src/dps8/dps8_mgp.c copy_cbridge8_to_packet9(u_char *src, int slen, word36 *buf, uint words) buf 862 src/dps8/dps8_mgp.c putbits36_9(&buf[MGP_PACKET_HEADER_SIZE + j / 4], ( j % 4 ) * 9, src[j]); buf 869 src/dps8/dps8_mgp.c mgp_checksum_raw(word36 *buf, uint words) buf 875 src/dps8/dps8_mgp.c cks += getbits36_9(buf[j / 4], ( j % 4 ) * 9); buf 915 src/dps8/dps8_mgp.c parse_packet_header(word36 *buf, uint words) buf 939 src/dps8/dps8_mgp.c int checksum = getbits36_9(buf[0], 0); buf 940 src/dps8/dps8_mgp.c int id = getbits36_9(buf[0], 9); buf 941 src/dps8/dps8_mgp.c int pktype = getbits36_9(buf[0], 18); buf 943 src/dps8/dps8_mgp.c int f_unus = getbits36_1(buf[0], 27); buf 944 src/dps8/dps8_mgp.c int f_nak = getbits36_1(buf[0], 28); buf 945 src/dps8/dps8_mgp.c int f_rnow = getbits36_1(buf[0], 29); buf 946 src/dps8/dps8_mgp.c int f_pad = getbits36_5(buf[0], 30); buf 947 src/dps8/dps8_mgp.c int f_loop = getbits36_1(buf[0], 35); buf 958 src/dps8/dps8_mgp.c int framenr = getbits36_9(buf[1], 0); buf 959 src/dps8/dps8_mgp.c int rcpt = getbits36_9(buf[1], 9); buf 960 src/dps8/dps8_mgp.c int pknr = getbits36_9(buf[1], 18); buf 961 src/dps8/dps8_mgp.c int acknr = getbits36_9(buf[1], 27); buf 969 src/dps8/dps8_mgp.c int bytecount = ( getbits36_9(buf[2], 0) & 0xff ) buf 970 src/dps8/dps8_mgp.c | (( getbits36_9(buf[2], 9) & 0xff ) << 8 ); buf 971 src/dps8/dps8_mgp.c int srcprc = ( getbits36_9(buf[2], 18) & 0xff ) buf 972 src/dps8/dps8_mgp.c | (( getbits36_9(buf[2], 27) & 0xff ) << 8 ); buf 977 src/dps8/dps8_mgp.c int dstprc = ( getbits36_9(buf[3], 0) & 0xff ) buf 978 src/dps8/dps8_mgp.c | (( getbits36_9(buf[3], 9) & 0xff ) << 8 ); buf 979 src/dps8/dps8_mgp.c int chopcode = getbits36_9(buf[3], 18); buf 980 src/dps8/dps8_mgp.c int mbz = getbits36_9(buf[3], 27); buf 990 src/dps8/dps8_mgp.c unparse_packet_header(struct mgp_packet_header *p, word36 *buf, uint words) buf 1000 src/dps8/dps8_mgp.c putbits36_9(&buf[0], 0, p->checksum); buf 1001 src/dps8/dps8_mgp.c putbits36_9(&buf[0], 9, p->identification); buf 1002 src/dps8/dps8_mgp.c putbits36_9(&buf[0], 18, p->packet_type); buf 1003 src/dps8/dps8_mgp.c putbits36_1(&buf[0], 27, p->flags.unusable); buf 1004 src/dps8/dps8_mgp.c putbits36_1(&buf[0], 28, p->flags.nak); buf 1005 src/dps8/dps8_mgp.c putbits36_1(&buf[0], 29, p->flags.reply_now); buf 1006 src/dps8/dps8_mgp.c putbits36_5(&buf[0], 30, p->flags.padding); buf 1007 src/dps8/dps8_mgp.c putbits36_1(&buf[0], 35, p->flags.loopback); buf 1009 src/dps8/dps8_mgp.c putbits36_9(&buf[1], 0, p->frame_number); buf 1010 src/dps8/dps8_mgp.c putbits36_9(&buf[1], 9, p->receipt_number); buf 1011 src/dps8/dps8_mgp.c putbits36_9(&buf[1], 18, p->packet_number); buf 1012 src/dps8/dps8_mgp.c putbits36_9(&buf[1], 27, p->ack_number); buf 1017 src/dps8/dps8_mgp.c putbits36_9(&buf[2], 0, p->byte_count & 0xff); buf 1018 src/dps8/dps8_mgp.c putbits36_9(&buf[2], 9, p->byte_count >> 8 ); buf 1019 src/dps8/dps8_mgp.c putbits36_9(&buf[2], 18, p->source_process & 0xff); buf 1020 src/dps8/dps8_mgp.c putbits36_9(&buf[2], 27, p->source_process >> 8 ); buf 1022 src/dps8/dps8_mgp.c putbits36_9(&buf[3], 0, p->destination_process & 0xff); buf 1023 src/dps8/dps8_mgp.c putbits36_9(&buf[3], 9, p->destination_process >> 8 ); buf 1025 src/dps8/dps8_mgp.c putbits36_9(&buf[3], 18, p->chaos_opcode); buf 1026 src/dps8/dps8_mgp.c putbits36_9(&buf[3], 27, p->reserved); buf 1030 src/dps8/dps8_mgp.c dumppkt(char *hdr, word36 *buf, uint words) buf 1033 src/dps8/dps8_mgp.c struct mgp_packet_header *p = parse_packet_header(buf, words); buf 1072 src/dps8/dps8_mgp.c int lh = getbits36_18 (buf[i], 0); buf 1073 src/dps8/dps8_mgp.c int rh = getbits36_18 (buf[i], 18); buf 1074 src/dps8/dps8_mgp.c int b0 = getbits36_9 (buf[i], 0); buf 1075 src/dps8/dps8_mgp.c int b1 = getbits36_9 (buf[i], 9); buf 1076 src/dps8/dps8_mgp.c int b2 = getbits36_9 (buf[i], 18); buf 1077 src/dps8/dps8_mgp.c int b3 = getbits36_9 (buf[i], 27); buf 1381 src/dps8/dps8_mgp.c handle_packet(int opcode, struct mgp_packet_header *p, word36 *buf, buf 1396 src/dps8/dps8_mgp.c buf, words, pkt + CBRIDGE_PACKET_HEADER_SIZE, p->byte_count); buf 1404 src/dps8/dps8_mgp.c handle_close(struct mgp_packet_header *p, word36 *buf, uint words) buf 1413 src/dps8/dps8_mgp.c copy_cbridge8_to_packet9((u_char *)"wait", 4, buf, 1); buf 1419 src/dps8/dps8_mgp.c handle_lose(int conni, struct mgp_packet_header *p, word36 *buf, uint words) buf 1422 src/dps8/dps8_mgp.c int v = handle_packet(CHOP_LOS, p, buf, words); buf 1430 src/dps8/dps8_mgp.c handle_connect(struct mgp_packet_header *p, word36 *buf, uint words) buf 1434 src/dps8/dps8_mgp.c copy_packet9_to_cbridge8(buf, buf 1552 src/dps8/dps8_mgp.c handle_mgp_packet(word36 *buf, uint words) buf 1554 src/dps8/dps8_mgp.c struct mgp_packet_header *p = parse_packet_header(buf, words); buf 1596 src/dps8/dps8_mgp.c rval = handle_connect(p, buf, words); buf 1602 src/dps8/dps8_mgp.c p->chaos_opcode ? p->chaos_opcode : CHOP_OPN, p, buf, words); buf 1606 src/dps8/dps8_mgp.c rval = handle_close(p, buf, words); buf 1610 src/dps8/dps8_mgp.c rval = handle_lose(i, p, buf, words); buf 1616 src/dps8/dps8_mgp.c p->chaos_opcode ? p->chaos_opcode : CHOP_DAT, p, buf, words); buf 1756 src/dps8/dps8_mgp.c make_mgp_packet(u_char opcode, u_char *pkt, uint pklen, word36 *buf, buf 1768 src/dps8/dps8_mgp.c unparse_packet_header(&hdr, buf, words); buf 1771 src/dps8/dps8_mgp.c copy_cbridge8_to_packet9(pkt, pklen, buf, words); buf 1781 src/dps8/dps8_mgp.c make_status_packet(int conni, word36 *buf, uint words) buf 1792 src/dps8/dps8_mgp.c unparse_packet_header(&hdr, buf, words); buf 1804 src/dps8/dps8_mgp.c make_noop_packet(word36 *buf, uint words) buf 1816 src/dps8/dps8_mgp.c unparse_packet_header(&hdr, buf, words); buf 1827 src/dps8/dps8_mgp.c make_open_packet(u_char opcode, u_char *pkt, uint pklen, word36 *buf, buf 1834 src/dps8/dps8_mgp.c return make_mgp_packet(opcode, pkt, 0, buf, words, conni); buf 1848 src/dps8/dps8_mgp.c return make_mgp_packet(opcode, pkt + 2, pklen - 2, buf, words, conni); buf 1860 src/dps8/dps8_mgp.c make_connect_packet(u_char *pkt, uint pklen, word36 *buf, uint words, buf 1903 src/dps8/dps8_mgp.c (u_char *)connect, strlen(connect), buf, words, conni); buf 1907 src/dps8/dps8_mgp.c receive_cbridge_opcode(u_char copcode, u_char *cbuf, uint clen, word36 *buf, buf 1926 src/dps8/dps8_mgp.c return make_connect_packet(cbuf, clen, buf, words, conni); buf 1930 src/dps8/dps8_mgp.c return make_open_packet(copcode, cbuf, clen, buf, words, conni); buf 1947 src/dps8/dps8_mgp.c int v = make_mgp_packet(copcode, cbuf, clen, buf, words, conni); buf 1956 src/dps8/dps8_mgp.c return make_mgp_packet(copcode, cbuf, clen, buf, words, conni); buf 1964 src/dps8/dps8_mgp.c poll_from_cbridge(word36 *buf, uint words, uint probe_only) buf 2160 src/dps8/dps8_mgp.c copcode, cbuf, clen, buf, words, i); buf 2170 src/dps8/dps8_mgp.c make_status_packet(statusconn, buf, words); buf 2204 src/dps8/dps8_mgp.c make_noop_packet(buf, words); buf 1000 src/dps8/dps8_mt.c t_stat rc = sim_tape_rdrecf (unitp, & tape_statep -> buf [0], & tape_statep -> tbc, buf 1078 src/dps8/dps8_mt.c rc2 = extractASCII36FromBuffer (tape_statep -> buf, buf 1081 src/dps8/dps8_mt.c rc2 = extractWord36FromBuffer (tape_statep -> buf, buf 1189 src/dps8/dps8_mt.c word36 buf [tally]; buf 1191 src/dps8/dps8_mt.c memset (buf, 0, sizeof (word36) * tally); buf 1194 src/dps8/dps8_mt.c putbits36_18 (buf + i, 0, mem [i * 2]); buf 1195 src/dps8/dps8_mt.c putbits36_18 (buf + i, 18, mem [i * 2 + 1]); buf 1197 src/dps8/dps8_mt.c iom_indirect_data_service (iomUnitIdx, chan, buf, & tally, true); buf 1297 src/dps8/dps8_mt.c rc2 = insertASCII36toBuffer (tape_statep -> buf, buf 1304 src/dps8/dps8_mt.c rc2 = insertWord36toBuffer (tape_statep -> buf, buf 1333 src/dps8/dps8_mt.c int ret = sim_tape_wrrecf (unitp, tape_statep -> buf, tape_statep -> tbc); buf 2436 src/dps8/dps8_mt.c t_stat mount_tape (UNUSED int32 arg, const char * buf) buf 2438 src/dps8/dps8_mt.c size_t bufl = strlen (buf) + 1; buf 2442 src/dps8/dps8_mt.c int nParams = sscanf (buf, "%s %s %s", fname, ring, drive); buf 33 src/dps8/dps8_mt.h uint8 buf [BUFSZ]; buf 63 src/dps8/dps8_mt.h t_stat mount_tape (int32 arg, const char * buf); buf 1893 src/dps8/dps8_prt.c t_stat burst_printer (UNUSED int32 arg, const char * buf) buf 1897 src/dps8/dps8_prt.c if (strcmp (buf, prt_state[i].device_name) == 0) buf 1909 src/dps8/dps8_prt.c sim_printf ("burst can't find printer named '%s'\n", buf); buf 27 src/dps8/dps8_prt.h t_stat burst_printer (UNUSED int32 arg, const char * buf); buf 1309 src/dps8/dps8_scu.c static char * pcells (uint scu_unit_idx, char * buf) buf 1314 src/dps8/dps8_scu.c buf [i] = '1'; buf 1316 src/dps8/dps8_scu.c buf [i] = '0'; buf 1318 src/dps8/dps8_scu.c buf [N_CELL_INTERRUPTS] = '\0'; buf 1319 src/dps8/dps8_scu.c return buf; buf 1822 src/dps8/dps8_sys.c static t_stat set_default_base_system (UNUSED int32 arg, UNUSED const char * buf) buf 1840 src/dps8/dps8_sys.c static t_stat boot_skip (int32 UNUSED arg, UNUSED const char * buf) buf 1853 src/dps8/dps8_sys.c static t_stat do_execute_fault (UNUSED int32 arg, UNUSED const char * buf) buf 1865 src/dps8/dps8_sys.c static t_stat do_restart (UNUSED int32 arg, UNUSED const char * buf) buf 1873 src/dps8/dps8_sys.c if (buf) buf 1875 src/dps8/dps8_sys.c n = (int) strtol (buf, NULL, 0); buf 1899 src/dps8/dps8_sys.c static t_stat set_sys_polling_interval (UNUSED int32 arg, const char * buf) buf 1901 src/dps8/dps8_sys.c if (! buf) buf 1903 src/dps8/dps8_sys.c int n = atoi (buf); buf 1914 src/dps8/dps8_sys.c static t_stat set_sys_slow_polling_interval (UNUSED int32 arg, const char * buf) buf 1916 src/dps8/dps8_sys.c if (! buf) buf 1918 src/dps8/dps8_sys.c int n = atoi (buf); buf 1929 src/dps8/dps8_sys.c static t_stat set_sys_poll_check_rate (UNUSED int32 arg, const char * buf) buf 1931 src/dps8/dps8_sys.c if (! buf) buf 1933 src/dps8/dps8_sys.c int n = atoi (buf); buf 1985 src/dps8/dps8_sys.c static t_stat dps_debug_mme_cntdwn (UNUSED int32 arg, const char * buf) buf 1987 src/dps8/dps8_sys.c sim_deb_mme_cntdwn = strtoull (buf, NULL, 0); buf 1992 src/dps8/dps8_sys.c static t_stat dps_debug_skip (UNUSED int32 arg, const char * buf) buf 1995 src/dps8/dps8_sys.c sim_deb_skip_limit = strtoull (buf, NULL, 0); buf 2000 src/dps8/dps8_sys.c static t_stat dps_debug_start (UNUSED int32 arg, const char * buf) buf 2002 src/dps8/dps8_sys.c sim_deb_start = strtoull (buf, NULL, 0); buf 2007 src/dps8/dps8_sys.c static t_stat dps_debug_stop (UNUSED int32 arg, const char * buf) buf 2009 src/dps8/dps8_sys.c sim_deb_stop = strtoull (buf, NULL, 0); buf 2014 src/dps8/dps8_sys.c static t_stat dps_debug_break (UNUSED int32 arg, const char * buf) buf 2016 src/dps8/dps8_sys.c sim_deb_break = strtoull (buf, NULL, 0); buf 2017 src/dps8/dps8_sys.c if (buf[0] == '+') buf 2023 src/dps8/dps8_sys.c static t_stat dps_debug_segno (int32 arg, const char * buf) buf 2027 src/dps8/dps8_sys.c unsigned long segno = strtoul (buf, NULL, 0); buf 2047 src/dps8/dps8_sys.c static t_stat dps_debug_ringno (UNUSED int32 arg, const char * buf) buf 2049 src/dps8/dps8_sys.c sim_deb_ringno = strtoull (buf, NULL, 0); buf 2054 src/dps8/dps8_sys.c static t_stat dps_debug_bar (int32 arg, UNUSED const char * buf) buf 2291 src/dps8/dps8_sys.c static t_stat abs_addr (UNUSED int32 arg, const char * buf) buf 2295 src/dps8/dps8_sys.c if (sscanf (buf, "%o:%o", & segno, & offset) != 2) buf 2400 src/dps8/dps8_sys.c static char buf[129]; buf 2420 src/dps8/dps8_sys.c sprintf (buf, "%s:%s+0%0o", book_segments[i].segname, buf 2427 src/dps8/dps8_sys.c return buf; buf 2445 src/dps8/dps8_sys.c sprintf (buf, "%s:%s+0%0o", book_segments[i].segname, buf 2448 src/dps8/dps8_sys.c return buf; buf 2458 src/dps8/dps8_sys.c sprintf (buf, "%s:+0%0o", book_segments[i].segname, buf 2460 src/dps8/dps8_sys.c return buf; buf 2503 src/dps8/dps8_sys.c buf 2504 src/dps8/dps8_sys.c buf 2506 src/dps8/dps8_sys.c buf 2514 src/dps8/dps8_sys.c buf 2515 src/dps8/dps8_sys.c buf 2517 src/dps8/dps8_sys.c buf 2772 src/dps8/dps8_sys.c static t_stat stack_trace (UNUSED int32 arg, UNUSED const char * buf) buf 2938 src/dps8/dps8_sys.c static t_stat list_source_at (UNUSED int32 arg, UNUSED const char * buf) buf 2943 src/dps8/dps8_sys.c if (sscanf (buf, "%o:%o", & segno, & offset) != 2) buf 2957 src/dps8/dps8_sys.c static t_stat load_system_book (UNUSED int32 arg, UNUSED const char * buf) buf 2968 src/dps8/dps8_sys.c FILE * fp = fopen (buf, "r"); buf 2971 src/dps8/dps8_sys.c sim_msg ("error opening file %s\n", buf); buf 3101 src/dps8/dps8_sys.c static t_stat add_system_book_entry (UNUSED int32 arg, const char * buf) buf 3113 src/dps8/dps8_sys.c if (sscanf (buf, "%32s %32s %o %o %o %o %o %o %o", buf 3137 src/dps8/dps8_sys.c static t_stat lookup_system_book (UNUSED int32 arg, const char * buf) buf 3139 src/dps8/dps8_sys.c char w1[strlen (buf)]; buf 3140 src/dps8/dps8_sys.c char w2[strlen (buf)]; buf 3141 src/dps8/dps8_sys.c char w3[strlen (buf)]; buf 3144 src/dps8/dps8_sys.c size_t colon = strcspn (buf, ":"); buf 3145 src/dps8/dps8_sys.c if (buf[colon] != ':') buf 3148 src/dps8/dps8_sys.c strncpy (w1, buf, colon); buf 3152 src/dps8/dps8_sys.c size_t plus = strcspn (buf + colon + 1, "+"); buf 3153 src/dps8/dps8_sys.c if (buf[colon + 1 + plus] == '+') buf 3155 src/dps8/dps8_sys.c strncpy (w2, buf + colon + 1, plus); buf 3157 src/dps8/dps8_sys.c (void)strcpy (w3, buf + colon + 1 + plus + 1); buf 3161 src/dps8/dps8_sys.c (void)strcpy (w2, buf + colon + 1); buf 3356 src/dps8/dps8_sys.c static t_stat virt_address (UNUSED int32 arg, const char * buf) buf 3359 src/dps8/dps8_sys.c if (sscanf (buf, "%o", & address) != 1) buf 3366 src/dps8/dps8_sys.c static t_stat set_search_path (UNUSED int32 arg, UNUSED const char * buf) buf 3372 src/dps8/dps8_sys.c source_search_path = strdup (buf); buf 3397 src/dps8/dps8_sys.c t_stat brkbrk (UNUSED int32 arg, UNUSED const char * buf) buf 3405 src/dps8/dps8_sys.c static t_stat sbreak (int32 arg, const char * buf) buf 3410 src/dps8/dps8_sys.c int cnt = sscanf (buf, "%o:%o%n", & segno, & offset, & where); buf 3415 src/dps8/dps8_sys.c char reformatted[strlen (buf) + 20]; buf 3416 src/dps8/dps8_sys.c sprintf (reformatted, "0%04o%06o%s", segno, offset, buf + where); buf 3423 src/dps8/dps8_sys.c static t_stat dfx1entry (UNUSED int32 arg, UNUSED const char * buf) buf 3462 src/dps8/dps8_sys.c static t_stat dfx1exit (UNUSED int32 arg, UNUSED const char * buf) buf 3470 src/dps8/dps8_sys.c static t_stat dv2scale (UNUSED int32 arg, UNUSED const char * buf) buf 3477 src/dps8/dps8_sys.c static t_stat dfx2entry (UNUSED int32 arg, UNUSED const char * buf) buf 3533 src/dps8/dps8_sys.c static t_stat mdfx3entry (UNUSED int32 arg, UNUSED const char * buf) buf 3577 src/dps8/dps8_sys.c static t_stat smfx1entry (UNUSED int32 arg, UNUSED const char * buf) buf 3622 src/dps8/dps8_sys.c static t_stat search_memory (UNUSED int32 arg, const char * buf) buf 3625 src/dps8/dps8_sys.c if (sscanf (buf, "%llo", & value) != 1) buf 3635 src/dps8/dps8_sys.c static t_stat set_dbg_cpu_mask (int32 UNUSED arg, const char * UNUSED buf) buf 3638 src/dps8/dps8_sys.c int cnt = sscanf (buf, "%u", & msk); buf 3656 src/dps8/dps8_sys.c static t_stat scraper (UNUSED int32 arg, const char * buf) buf 3658 src/dps8/dps8_sys.c if (strcasecmp (buf, "start") == 0) buf 3660 src/dps8/dps8_sys.c if (strcasecmp (buf, "stop") == 0) buf 3662 src/dps8/dps8_sys.c if (strcasecmp (buf, "msg") == 0) buf 3666 src/dps8/dps8_sys.c if (strncasecmp (buf, "msg ", 4) == 0) buf 3668 src/dps8/dps8_sys.c const char * p = buf + 4; buf 3738 src/dps8/dps8_sys.c static t_stat set_dbgevent (int32 arg, const char * buf) buf 3747 src/dps8/dps8_sys.c if (strlen (buf) > dbgevent_tagsize - 1) buf 3749 src/dps8/dps8_sys.c sim_printf ("command too long %lu/%u\r\n", strlen (buf), dbgevent_tagsize -1); buf 3755 src/dps8/dps8_sys.c if (sscanf (buf, "%o:%o", & segno, & offset) != 2) buf 3767 src/dps8/dps8_sys.c strncpy (dbgevents[n_dbgevents].tag, buf, dbgevent_tagsize - 1); buf 3779 src/dps8/dps8_sys.c if (sscanf (buf, "%o:%o", & segno, & offset) != 2) buf 3816 src/dps8/dps8_sys.c t_stat rewind_media (int32 arg, const char * buf) { buf 3817 src/dps8/dps8_sys.c char name[strlen (buf)]; buf 3819 src/dps8/dps8_sys.c int rc = sscanf (buf, "%s", name); buf 3842 src/dps8/dps8_sys.c t_stat load_media (int32 arg, const char * buf) buf 3847 src/dps8/dps8_sys.c char name[strlen (buf)]; buf 3848 src/dps8/dps8_sys.c char fname[strlen (buf)]; buf 3849 src/dps8/dps8_sys.c char perm[strlen (buf)]; buf 3853 src/dps8/dps8_sys.c int rc = sscanf (buf, "%s %s %s", name, fname, perm); buf 3868 src/dps8/dps8_sys.c int rc = sscanf (buf, "%s", name); buf 3895 src/dps8/dps8_sys.c t_stat ready_media (int32 arg, const char * buf) { buf 3896 src/dps8/dps8_sys.c char name[strlen (buf)]; buf 3897 src/dps8/dps8_sys.c int rc = sscanf (buf, "%s", name); buf 3926 src/dps8/dps8_sys.c static t_stat trkw (UNUSED int32 arg, const char * buf) buf 3932 src/dps8/dps8_sys.c static t_stat trkr (UNUSED int32 arg, const char * buf) buf 4209 src/dps8/dps8_sys.c hash32s(const void *buf, size_t len, uint32_t h) buf 4211 src/dps8/dps8_sys.c const unsigned char *p = buf; buf 4857 src/dps8/dps8_sys.c char buf[256]; buf 4859 src/dps8/dps8_sys.c char *d = disassemble(buf, word1); buf 90 src/dps8/dps8_sys.h t_stat brkbrk (int32 arg, const char * buf); buf 1625 src/dps8/dps8_utils.c char * buf = strdup (str); buf 1626 src/dps8/dps8_utils.c if (!buf) buf 1638 src/dps8/dps8_utils.c char * p = buf; buf 1709 src/dps8/dps8_utils.c return buf; buf 262 src/dps8/fnpuv.c uv_buf_t * buf) buf 266 src/dps8/fnpuv.c * buf = uv_buf_init ((char *) malloc (suggested_size), (uint) suggested_size); buf 295 src/dps8/fnpuv.c unsigned char * buf) buf 297 src/dps8/fnpuv.c processLineInput (client, buf, nread); buf 302 src/dps8/fnpuv.c unsigned char * buf) buf 304 src/dps8/fnpuv.c process3270Input (client, buf, nread); buf 312 src/dps8/fnpuv.c unsigned char * buf) buf 315 src/dps8/fnpuv.c processUserInput (client, buf, nread); buf 401 src/dps8/fnpuv.c const uv_buf_t* buf) buf 422 src/dps8/fnpuv.c telnet_recv (p->telnetp, buf->base, (size_t) nread); buf 427 src/dps8/fnpuv.c (* p->read_cb) ((uv_tcp_t *) stream, nread, (unsigned char *) buf->base); buf 432 src/dps8/fnpuv.c buf 436 src/dps8/fnpuv.c buf 443 src/dps8/fnpuv.c if (buf->base) buf 444 src/dps8/fnpuv.c free (buf->base); /* X-LINTED: FREE */ buf 581 src/dps8/fnpuv.c uv_buf_t buf = uv_buf_init ((char *) malloc ((unsigned long) datalen), (uint) datalen); buf 584 src/dps8/fnpuv.c req->data = buf.base; buf 587 src/dps8/fnpuv.c memcpy (buf.base, data, (unsigned long) datalen); buf 588 src/dps8/fnpuv.c int ret = uv_write (req, (uv_stream_t *) stn_client, & buf, 1, fuv_write_3270_cb); buf 619 src/dps8/fnpuv.c uv_buf_t buf = uv_buf_init ((char *) malloc ((unsigned long) datalen), (uint) datalen); buf 622 src/dps8/fnpuv.c req->data = buf.base; buf 625 src/dps8/fnpuv.c memcpy (buf.base, data, (unsigned long) datalen); buf 626 src/dps8/fnpuv.c int ret = uv_write (req, (uv_stream_t *) client, & buf, 1, fuv_write_cb); buf 1295 src/dps8/fnpuv.c static void processPacketInput (int fnpno, int lineno, unsigned char * buf, ssize_t nread) buf 1326 src/dps8/fnpuv.c memcpy (new + linep->inSize, buf, (unsigned long) nread); buf 1345 src/dps8/fnpuv.c memcpy (linep->inBuffer, buf, (unsigned long) nread); buf 20 src/dps8/fnpuv.h typedef void (* uv_read_cb_t) (uv_tcp_t * client, ssize_t nread, unsigned char * buf); buf 51 src/dps8/fnpuv.h void fnpuv_unassociated_readcb (uv_tcp_t * client, ssize_t nread, unsigned char * buf); buf 52 src/dps8/fnpuv.h void fnpuv_associated_readcb (uv_tcp_t * client, ssize_t nread, unsigned char * buf); buf 63 src/dps8/fnpuv.h unsigned char * buf); buf 341 src/dps8/hdbg.c char buf[256]; buf 350 src/dps8/hdbg.c disassemble (buf, p->trace.inst)); buf 360 src/dps8/hdbg.c disassemble (buf, p->trace.inst)); buf 659 src/dps8/hdbg.c t_stat hdbg_cpu_mask (UNUSED int32 arg, const char * buf) buf 661 src/dps8/hdbg.c hdbgCPUMask = strtoul (buf, NULL, 0); buf 667 src/dps8/hdbg.c t_stat hdbg_size (UNUSED int32 arg, const char * buf) { buf 668 src/dps8/hdbg.c hdbgSize = strtoul (buf, NULL, 0); buf 675 src/dps8/hdbg.c t_stat hdbgSegmentNumber (UNUSED int32 arg, const char * buf) { buf 676 src/dps8/hdbg.c hdbgSegNum = strtoul (buf, NULL, 8); buf 682 src/dps8/hdbg.c t_stat hdbgBlacklist (UNUSED int32 arg, const char * buf) { buf 683 src/dps8/hdbg.c char work[strlen (buf) + 1]; buf 684 src/dps8/hdbg.c if (sscanf (buf, "%s", work) != 1) buf 700 src/dps8/hdbg.c t_stat hdbg_print (UNUSED int32 arg, const char * buf) { buf 28 src/dps8/hdbg.h t_stat hdbg_size (int32 arg, UNUSED const char * buf); buf 29 src/dps8/hdbg.h t_stat hdbg_print (int32 arg, UNUSED const char * buf); buf 30 src/dps8/hdbg.h t_stat hdbg_cpu_mask (UNUSED int32 arg, const char * buf); buf 31 src/dps8/hdbg.h t_stat hdbgSegmentNumber (UNUSED int32 arg, const char * buf); buf 32 src/dps8/hdbg.h t_stat hdbgBlacklist (UNUSED int32 arg, const char * buf); buf 405 src/dps8/segldr.c t_stat segment_loader (int32 arg, const char * buf) buf 407 src/dps8/segldr.c size_t bufl = strlen (buf) + 1; buf 409 src/dps8/segldr.c int nParams = sscanf (buf, "%s %s %s", p1, p2, p3); buf 20 src/dps8/segldr.h t_stat segment_loader (int32 arg, const char * buf); buf 61 src/dps8/shm.c char buf[256]; buf 67 src/dps8/shm.c sprintf(buf, "dps8m.%s", key); buf 70 src/dps8/shm.c sprintf(lck, ".%s", buf); buf 91 src/dps8/shm.c int fd = open(buf, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); buf 98 src/dps8/shm.c buf, buf 105 src/dps8/shm.c unlink(buf); buf 264 src/dps8/shm.c buf, buf 288 src/dps8/shm.c buf, buf 310 src/dps8/shm.c buf, buf 327 src/dps8/shm.c buf, buf 339 src/dps8/shm.c buf, buf 352 src/dps8/shm.c char buf[256]; buf 358 src/dps8/shm.c sprintf(buf, "dps8m.%s", key); buf 361 src/dps8/shm.c sprintf(lck, ".%s", buf); buf 376 src/dps8/shm.c int fd = open(buf, O_RDWR, 0); buf 383 src/dps8/shm.c buf, buf 426 src/dps8/shm.c buf, buf 447 src/dps8/shm.c buf, buf 487 src/dps8/shm.c buf, buf 31 src/dps8/tracker.c int brkbrk (int32_t arg, const char * buf); buf 70 src/dps8/utfile.c hash32s(const void *buf, size_t len, uint32_t h) buf 72 src/dps8/utfile.c const unsigned char *p = buf; buf 42 src/dps8/uvutil.c unsigned char * buf); buf 49 src/dps8/uvutil.c uv_buf_t * buf) buf 53 src/dps8/uvutil.c * buf = uv_buf_init ((char *) malloc (suggested_size), buf 114 src/dps8/uvutil.c const uv_buf_t* buf) buf 128 src/dps8/uvutil.c telnet_recv (access->telnetp, buf->base, (size_t) nread); buf 134 src/dps8/uvutil.c (unsigned char *) buf->base); buf 137 src/dps8/uvutil.c if (buf->base) buf 138 src/dps8/uvutil.c free (buf->base); /* X-LINTED: FREE */ buf 176 src/dps8/uvutil.c uv_buf_t buf = uv_buf_init ((char *) malloc ((unsigned long) datalen), buf 179 src/dps8/uvutil.c req->data = buf.base; buf 181 src/dps8/uvutil.c memcpy (buf.base, data, (unsigned long) datalen); buf 183 src/dps8/uvutil.c int ret = uv_write (req, (uv_stream_t *) client, & buf, 1, buf 222 src/dps8/uvutil.c static void accessLogon (uv_access * access, unsigned char * buf, ssize_t nread) buf 226 src/dps8/uvutil.c unsigned char kar = buf[nchar]; buf 365 src/dps8/uvutil.c static void accessProcessInput (uv_access * access, unsigned char * buf, buf 386 src/dps8/uvutil.c memcpy (new + access->inSize, buf, (unsigned long) nread); buf 405 src/dps8/uvutil.c memcpy (access->inBuffer, buf, (unsigned long) nread); buf 419 src/dps8/uvutil.c unsigned char * buf) buf 423 src/dps8/uvutil.c accessProcessInput (access, buf, nread); buf 425 src/dps8/uvutil.c accessLogon (access, buf, nread); buf 131 src/simh/linehistory.c char *buf; /* Edited line buffer. */ buf 296 src/simh/linehistory.c char buf[32]; buf 307 src/simh/linehistory.c while (i < sizeof ( buf ) - 1) buf 309 src/simh/linehistory.c if (read(ifd, buf + i, 1) != 1) buf 314 src/simh/linehistory.c if (buf[i] == 'R') buf 321 src/simh/linehistory.c buf[i] = '\0'; buf 324 src/simh/linehistory.c if (buf[0] != ESC || buf[1] != '[') buf 329 src/simh/linehistory.c if (sscanf(buf + 2, "%d;%d", &rows, &cols) != 2) buf 446 src/simh/linehistory.c completionCallback(ls->buf, &lc); buf 463 src/simh/linehistory.c ls->buf = lc.cvec[i]; buf 467 src/simh/linehistory.c ls->buf = saved.buf; buf 497 src/simh/linehistory.c nwritten = snprintf(ls->buf, ls->buflen, "%s", lc.cvec[i]); buf 642 src/simh/linehistory.c char *hint = hintsCallback(l->buf, &color, &bold); buf 697 src/simh/linehistory.c char *buf = l->buf; buf 704 src/simh/linehistory.c buf++; buf 730 src/simh/linehistory.c abAppend(&ab, buf, len); buf 815 src/simh/linehistory.c abAppend(&ab, l->buf, l->len); buf 905 src/simh/linehistory.c l->buf[l->pos] = c; buf 908 src/simh/linehistory.c l->buf[l->len] = '\0'; buf 929 src/simh/linehistory.c memmove(l->buf + l->pos + 1, l->buf + l->pos, l->len - l->pos); buf 930 src/simh/linehistory.c l->buf[l->pos] = c; buf 933 src/simh/linehistory.c l->buf[l->len] = '\0'; buf 972 src/simh/linehistory.c if (l->buf[l->pos] == ' ') buf 974 src/simh/linehistory.c while (l->pos < l->len && l->buf[l->pos] == ' ') buf 980 src/simh/linehistory.c while (l->pos < l->len && l->buf[l->pos] != ' ') buf 996 src/simh/linehistory.c if (l->buf[l->pos - 1] == ' ') buf 1001 src/simh/linehistory.c if (l->buf[l->pos] == ' ') buf 1003 src/simh/linehistory.c while (l->pos > 0 && l->buf[l->pos] == ' ') buf 1009 src/simh/linehistory.c while (l->pos > 0 && l->buf[l->pos - 1] != ' ') buf 1057 src/simh/linehistory.c history[history_len - 1 - l->history_index] = strdup(l->buf); buf 1083 src/simh/linehistory.c strncpy(l->buf, history[history_len - 1 - l->history_index], l->buflen); buf 1084 src/simh/linehistory.c l->buf[l->buflen - 1] = '\0'; buf 1085 src/simh/linehistory.c l->len = l->pos = strlen(l->buf); buf 1109 src/simh/linehistory.c history[history_len - 1 - l->history_index] = strdup(l->buf); buf 1136 src/simh/linehistory.c if (strncmp(l->buf, history[cnt], l->pos) == 0) buf 1138 src/simh/linehistory.c strncpy(l->buf, history[cnt], l->buflen); buf 1139 src/simh/linehistory.c l->buf[l->buflen - 1] = '\0'; buf 1141 src/simh/linehistory.c l->len = strlen(l->buf); buf 1165 src/simh/linehistory.c if (strncmp(l->buf, history[cnt], l->pos) == 0) buf 1167 src/simh/linehistory.c strncpy(l->buf, history[cnt], l->buflen); buf 1168 src/simh/linehistory.c l->buf[l->buflen - 1] = '\0'; buf 1170 src/simh/linehistory.c l->len = strlen(l->buf); buf 1196 src/simh/linehistory.c memmove(l->buf + l->pos, l->buf + l->pos + 1, l->len - l->pos - 1); buf 1198 src/simh/linehistory.c l->buf[l->len] = '\0'; buf 1209 src/simh/linehistory.c memmove(l->buf + l->pos - 1, l->buf + l->pos, l->len - l->pos); buf 1212 src/simh/linehistory.c l->buf[l->len] = '\0'; buf 1228 src/simh/linehistory.c while (l->pos > 0 && l->buf[l->pos - 1] == ' ') buf 1232 src/simh/linehistory.c while (l->pos > 0 && l->buf[l->pos - 1] != ' ') buf 1237 src/simh/linehistory.c memmove(l->buf + l->pos, l->buf + old_pos, l->len - old_pos + 1); buf 1248 src/simh/linehistory.c while (next_word_end < l->len && l->buf[next_word_end] == ' ') buf 1252 src/simh/linehistory.c while (next_word_end < l->len && l->buf[next_word_end] != ' ') buf 1256 src/simh/linehistory.c memmove(l->buf + l->pos, l->buf + next_word_end, l->len - next_word_end); buf 1273 src/simh/linehistory.c linenoiseEdit(int stdin_fd, int stdout_fd, char *buf, size_t buflen, buf 1285 src/simh/linehistory.c l.buf = buf; buf 1296 src/simh/linehistory.c l.buf[0] = '\0'; buf 1517 src/simh/linehistory.c buf[0] = '\0'; buf 1523 src/simh/linehistory.c buf[l.pos] = '\0'; buf 1556 src/simh/linehistory.c linenoiseRaw(char *buf, size_t buflen, const char *prompt) buf 1571 src/simh/linehistory.c count = linenoiseEdit(STDIN_FILENO, STDOUT_FILENO, buf, buflen, prompt); buf 1649 src/simh/linehistory.c char buf[LINENOISE_MAX_LINE]; buf 1668 src/simh/linehistory.c if (fgets(buf, LINENOISE_MAX_LINE, stdin) == NULL) buf 1673 src/simh/linehistory.c len = strlen(buf); buf 1674 src/simh/linehistory.c while (len && ( buf[len - 1] == '\n' || buf[len - 1] == '\r' )) buf 1677 src/simh/linehistory.c buf[len] = '\0'; buf 1679 src/simh/linehistory.c return ( strdup(buf)); buf 1683 src/simh/linehistory.c count = linenoiseRaw(buf, LINENOISE_MAX_LINE, prompt); buf 1689 src/simh/linehistory.c return ( strdup(buf)); buf 203 src/simh/scp.c void (*sim_vm_sprint_addr) (char *buf, DEVICE *dptr, t_addr addr) = NULL; buf 255 src/simh/scp.c CONST char *sim_brk_getact (char *buf, int32 size); buf 2207 src/simh/scp.c char buf[CBUFSIZE], header[CBUFSIZE]; buf 2223 src/simh/scp.c sprintf (buf, "SET %s %s%s", sim_dname (dptr), mptr->mstring, (strchr(mptr->mstring, '=')) ? "" : (MODMASK(mptr,MTAB_VALR) ? "=val" : (MODMASK(mptr,MTAB_VALO) ? "{=val}" : ""))); buf 2224 src/simh/scp.c if ((strlen (buf) < 30) || (!mptr->help)) buf 2225 src/simh/scp.c fprintf (st, "%-30s\t%s\n", buf, mptr->help ? mptr->help : ""); buf 2227 src/simh/scp.c fprintf (st, "%s\n%-30s\t%s\n", buf, "", mptr->help); buf 2233 src/simh/scp.c sprintf (buf, "SET %s ENABLE", sim_dname (dptr)); buf 2234 src/simh/scp.c fprintf (st, "%-30s\tEnables device %s\n", buf, sim_dname (dptr)); buf 2235 src/simh/scp.c sprintf (buf, "SET %s DISABLE", sim_dname (dptr)); buf 2236 src/simh/scp.c fprintf (st, "%-30s\tDisables device %s\n", buf, sim_dname (dptr)); buf 2240 src/simh/scp.c sprintf (buf, "SET %s DEBUG", sim_dname (dptr)); buf 2241 src/simh/scp.c fprintf (st, "%-30s\tEnables debugging for device %s\n", buf, sim_dname (dptr)); buf 2242 src/simh/scp.c sprintf (buf, "SET %s NODEBUG", sim_dname (dptr)); buf 2243 src/simh/scp.c fprintf (st, "%-30s\tDisables debugging for device %s\n", buf, sim_dname (dptr)); buf 2246 src/simh/scp.c strcpy (buf, ""); buf 2253 src/simh/scp.c fprintf (st, "%-30s\tEnables specific debugging for device %s\n", buf, sim_dname (dptr)); buf 2258 src/simh/scp.c fprintf (st, "%-30s\tDisables specific debugging for device %s\n", buf, sim_dname (dptr)); buf 2269 src/simh/scp.c sprintf (buf, "SET %sn ENABLE", sim_dname (dptr)); buf 2270 src/simh/scp.c fprintf (st, "%-30s\tEnables unit %sn\n", buf, sim_dname (dptr)); buf 2271 src/simh/scp.c sprintf (buf, "SET %sn DISABLE", sim_dname (dptr)); buf 2272 src/simh/scp.c fprintf (st, "%-30s\tDisables unit %sn\n", buf, sim_dname (dptr)); buf 2281 src/simh/scp.c sprintf (buf, "SET %s%s %s%s", sim_dname (dptr), (dptr->numunits > 1) ? "n" : "0", mptr->mstring, (strchr(mptr->mstring, '=')) ? "" : (MODMASK(mptr,MTAB_VALR) ? "=val" : (MODMASK(mptr,MTAB_VALO) ? "{=val}": ""))); buf 2282 src/simh/scp.c fprintf (st, "%-30s\t%s\n", buf, (strchr(mptr->mstring, '=')) ? "" : (mptr->help ? mptr->help : "")); buf 2299 src/simh/scp.c char buf[CBUFSIZE], header[CBUFSIZE]; buf 2316 src/simh/scp.c sprintf (buf, "SHOW %s %s%s", sim_dname (dptr), mptr->pstring, MODMASK(mptr,MTAB_SHP) ? "{=arg}" : ""); buf 2317 src/simh/scp.c fprintf (st, "%-30s\t%s\n", buf, mptr->help ? mptr->help : ""); buf 2322 src/simh/scp.c sprintf (buf, "SHOW %s DEBUG", sim_dname (dptr)); buf 2323 src/simh/scp.c fprintf (st, "%-30s\tDisplays debugging status for device %s\n", buf, sim_dname (dptr)); buf 2332 src/simh/scp.c sprintf (buf, "SHOW %s%s %s%s", sim_dname (dptr), (dptr->numunits > 1) ? "n" : "0", mptr->pstring, MODMASK(mptr,MTAB_SHP) ? "=arg" : ""); buf 2333 src/simh/scp.c fprintf (st, "%-30s\t%s\n", buf, mptr->help ? mptr->help : ""); buf 7417 src/simh/scp.c void fprint_buffer_string (FILE *st, const uint8 *buf, uint32 size) buf 7421 src/simh/scp.c string = sim_encode_quoted_string (buf, size); buf 7845 src/simh/scp.c const char *put_switches (char *buf, size_t bufsize, uint32 sw) buf 7847 src/simh/scp.c char *optr = buf; buf 7850 src/simh/scp.c memset (buf, 0, bufsize); buf 7852 src/simh/scp.c return buf; buf 7857 src/simh/scp.c if ((size_t)(optr - buf) < bufsize) buf 7859 src/simh/scp.c return buf; buf 8245 src/simh/scp.c static char buf[60]; buf 8282 src/simh/scp.c sprintf (buf, "%s%.0f day%s %02.0f:%02.0f:%02.0f%s hour%s", sign, days, (days != 1)? "s" : "", hours, mins, secs, frac, (days == 1) ? "s" : ""); buf 8285 src/simh/scp.c sprintf (buf, "%s%.0f:%02.0f:%02.0f%s hour", sign, hours, mins, secs, frac); buf 8288 src/simh/scp.c sprintf (buf, "%s%.0f:%02.0f%s minute", sign, mins, secs, frac); buf 8291 src/simh/scp.c sprintf (buf, "%s%.0f%s second", sign, secs, frac); buf 8295 src/simh/scp.c sprintf (buf, "%s%.0f.%s msec", sign, msecs, frac+4); buf 8297 src/simh/scp.c sprintf (buf, "%s%.0f msec", sign, msecs); buf 8300 src/simh/scp.c sprintf (buf, "%s%.0f usec", sign, usecs); buf 8301 src/simh/scp.c if (0 != strncmp ("1 ", buf, 2)) buf 8302 src/simh/scp.c strcpy (&buf[strlen (buf)], "s"); buf 8303 src/simh/scp.c return buf; buf 9007 src/simh/scp.c CONST char *sim_brk_getact (char *buf, int32 size) buf 9021 src/simh/scp.c memcpy (buf, sim_brk_act[sim_do_depth], lnt + 1); /* copy with ; */ buf 9022 src/simh/scp.c buf[lnt] = 0; /* erase ; */ buf 9026 src/simh/scp.c strncpy (buf, sim_brk_act[sim_do_depth], size); /* copy action */ buf 9029 src/simh/scp.c return buf; buf 9102 src/simh/scp.c char buf[32]; buf 9113 src/simh/scp.c while (2 == strlen (put_switches (buf, sizeof(buf), brk->btyp))) { buf 9122 src/simh/scp.c sprintf (msg, "%s Breakpoint at: %s\n", put_switches (buf, sizeof(buf), sim_brk_match_type), addr); buf 9280 src/simh/scp.c FREE (exp->buf); buf 9281 src/simh/scp.c exp->buf = NULL; buf 9391 src/simh/scp.c exp->buf = (uint8 *)realloc (exp->buf, compare_size + 2); /* Extra byte to null terminate regex compares */ buf 9427 src/simh/scp.c char *bstr = sim_encode_quoted_string (exp->buf, exp->buf_ins); buf 9474 src/simh/scp.c exp->buf[exp->buf_ins++] = data; /* Save new data */ buf 9475 src/simh/scp.c exp->buf[exp->buf_ins] = '\0'; /* Nul terminate for RegEx match */ buf 9491 src/simh/scp.c char *estr = sim_encode_quoted_string (exp->buf, exp->buf_ins); buf 9499 src/simh/scp.c if (memcmp (exp->buf, &ep->match[ep->size-exp->buf_ins], exp->buf_ins)) buf 9503 src/simh/scp.c char *estr = sim_encode_quoted_string (&exp->buf[exp->buf_size-(ep->size-exp->buf_ins)], ep->size-exp->buf_ins); buf 9511 src/simh/scp.c if (memcmp (&exp->buf[exp->buf_size-(ep->size-exp->buf_ins)], ep->match, ep->size-exp->buf_ins)) buf 9517 src/simh/scp.c char *estr = sim_encode_quoted_string (&exp->buf[exp->buf_ins-ep->size], ep->size); buf 9525 src/simh/scp.c if (memcmp (&exp->buf[exp->buf_ins-ep->size], ep->match, ep->size)) buf 9872 src/simh/scp.c char *buf = stackbuf; buf 9878 src/simh/scp.c len = vsnprintf (buf, bufsize-1, fmt, arglist); buf 9884 src/simh/scp.c if (buf != stackbuf) buf 9885 src/simh/scp.c FREE (buf); buf 9889 src/simh/scp.c buf = (char *) malloc (bufsize); buf 9890 src/simh/scp.c if (buf == NULL) /* out of memory */ buf 9892 src/simh/scp.c buf[bufsize-1] = '\0'; buf 9899 src/simh/scp.c char *c, *remnant = buf; buf 9901 src/simh/scp.c if ((c != buf) && (*(c - 1) != '\r')) buf 9910 src/simh/scp.c printf("%s", buf); buf 9912 src/simh/scp.c fprintf (sim_log, "%s", buf); buf 9914 src/simh/scp.c fprintf (sim_deb, "%s", buf); buf 9916 src/simh/scp.c if (buf != stackbuf) buf 9917 src/simh/scp.c FREE (buf); buf 9925 src/simh/scp.c char *buf = stackbuf; buf 9932 src/simh/scp.c len = vsnprintf (buf, bufsize-1, fmt, arglist); buf 9938 src/simh/scp.c if (buf != stackbuf) buf 9939 src/simh/scp.c FREE (buf); buf 9943 src/simh/scp.c buf = (char *) malloc (bufsize); buf 9944 src/simh/scp.c if (buf == NULL) /* out of memory */ buf 9946 src/simh/scp.c buf[bufsize-1] = '\0'; buf 9961 src/simh/scp.c char *c, *remnant = buf; buf 9963 src/simh/scp.c if ((c != buf) && (*(c - 1) != '\r')) buf 9973 src/simh/scp.c printf("%s", buf); buf 9976 src/simh/scp.c fprintf (sim_log, "%s", buf); buf 9978 src/simh/scp.c fprintf (sim_deb, "%s", buf); buf 9980 src/simh/scp.c if (buf != stackbuf) buf 9981 src/simh/scp.c FREE (buf); buf 9999 src/simh/scp.c char *buf = stackbuf; buf 10004 src/simh/scp.c buf[bufsize-1] = '\0'; buf 10007 src/simh/scp.c len = vsnprintf (buf, bufsize-1, fmt, arglist); buf 10013 src/simh/scp.c if (buf != stackbuf) buf 10014 src/simh/scp.c FREE (buf); buf 10018 src/simh/scp.c buf = (char *) malloc (bufsize); buf 10019 src/simh/scp.c if (buf == NULL) /* out of memory */ buf 10021 src/simh/scp.c buf[bufsize-1] = '\0'; buf 10030 src/simh/scp.c if ('\n' == buf[i]) { buf 10034 src/simh/scp.c fprintf (sim_deb, "%.*s\r\n", i-j, &buf[j]); buf 10036 src/simh/scp.c fprintf (sim_deb, "%s%.*s\r\n", debug_prefix, i-j, &buf[j]); buf 10045 src/simh/scp.c fprintf (sim_deb, "%.*s", i-j, &buf[j]); buf 10047 src/simh/scp.c fprintf (sim_deb, "%s%.*s", debug_prefix, i-j, &buf[j]); buf 10052 src/simh/scp.c debug_unterm = len ? (((buf[len-1]=='\n')) ? 0 : 1) : debug_unterm; buf 10053 src/simh/scp.c if (buf != stackbuf) buf 10054 src/simh/scp.c FREE (buf); buf 10329 src/simh/scp.c char buf[129]; buf 10331 src/simh/scp.c sprintf (buf, "%s%u", dptr->name, (int)n); buf 10332 src/simh/scp.c appendText (topic, buf, strlen (buf)); buf 143 src/simh/scp.h const char *put_switches (char *buf, size_t bufsize, uint32 sw); buf 153 src/simh/scp.h void fprint_buffer_string (FILE *st, const uint8 *buf, uint32 size); buf 157 src/simh/scp.h t_stat sprint_val (char *buf, t_value val, uint32 rdx, uint32 wid, uint32 fmt); buf 278 src/simh/scp.h extern void (*sim_vm_sprint_addr) (char *buf, DEVICE *dptr, t_addr addr); buf 2187 src/simh/sim_console.c unsigned char buf[1]; buf 2189 src/simh/sim_console.c status = read (0, buf, 1); buf 2191 src/simh/sim_console.c if (sim_brk_char && (buf[0] == sim_brk_char)) buf 2193 src/simh/sim_console.c if (sim_int_char && (buf[0] == sim_int_char)) buf 2195 src/simh/sim_console.c return (buf[0] | SCPE_KFLAG); buf 2295 src/simh/sim_console.c unsigned char buf[1]; buf 2297 src/simh/sim_console.c status = read (0, buf, 1); buf 2299 src/simh/sim_console.c if (sim_brk_char && (buf[0] == sim_brk_char)) buf 2301 src/simh/sim_console.c if (sim_int_char && (buf[0] == sim_int_char)) buf 2303 src/simh/sim_console.c return (buf[0] | SCPE_KFLAG); buf 426 src/simh/sim_defs.h int32 buf; /* buffer */ buf 637 src/simh/sim_defs.h uint8 *buf; /* buffer of output data which has produced */ buf 236 src/simh/sim_disk.c static t_stat _sim_disk_rdsect (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectsread, t_seccnt sects) buf 251 src/simh/sim_disk.c i = sim_fread (buf, ctx->xfer_element_size, tbc/ctx->xfer_element_size, uptr->fileref); buf 253 src/simh/sim_disk.c memset (&buf[i*ctx->xfer_element_size], 0, tbc-(i*ctx->xfer_element_size)); buf 261 src/simh/sim_disk.c t_stat sim_disk_rdsect (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectsread, t_seccnt sects) buf 271 src/simh/sim_disk.c memset (buf, '\0', ctx->sector_size); /* are bad block management efforts - zero buffer */ buf 282 src/simh/sim_disk.c return _sim_disk_rdsect (uptr, lba, buf, sectsread, sects); buf 315 src/simh/sim_disk.c memcpy (buf, tbuf + ((lba - tlba) * ctx->sector_size), sects * ctx->sector_size); buf 327 src/simh/sim_disk.c t_stat sim_disk_rdsect_a (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectsread, t_seccnt sects, DISK_PCALLBACK callback) buf 330 src/simh/sim_disk.c r = sim_disk_rdsect (uptr, lba, buf, sectsread, sects); buf 336 src/simh/sim_disk.c static t_stat _sim_disk_wrsect (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectswritten, t_seccnt sects) buf 351 src/simh/sim_disk.c i = sim_fwrite (buf, ctx->xfer_element_size, tbc/ctx->xfer_element_size, uptr->fileref); buf 359 src/simh/sim_disk.c t_stat sim_disk_wrsect (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectswritten, t_seccnt sects) buf 379 src/simh/sim_disk.c if (*((uint32 *)&buf[sect*ctx->sector_size + offset]) != (uint32)(lba + sect)) { buf 391 src/simh/sim_disk.c sim_disk_data_trace (uptr, buf+sect*ctx->sector_size, lba+sect, ctx->sector_size, "Found", TRUE, 1); buf 398 src/simh/sim_disk.c return _sim_disk_wrsect (uptr, lba, buf, sectswritten, sects); buf 413 src/simh/sim_disk.c sim_buf_copy_swapped (tbuf, buf, ctx->xfer_element_size, (sects * ctx->sector_size) / ctx->xfer_element_size); buf 448 src/simh/sim_disk.c buf, ctx->xfer_element_size, (sects * ctx->sector_size) / ctx->xfer_element_size); buf 464 src/simh/sim_disk.c t_stat sim_disk_wrsect_a (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectswritten, t_seccnt sects, DISK_PCALLBACK callback) buf 467 src/simh/sim_disk.c r = sim_disk_wrsect (uptr, lba, buf, sectswritten, sects); buf 74 src/simh/sim_disk.h t_stat sim_disk_rdsect (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectsread, t_seccnt sects); buf 75 src/simh/sim_disk.h t_stat sim_disk_rdsect_a (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectsread, t_seccnt sects, DISK_PCALLBACK callback); buf 76 src/simh/sim_disk.h t_stat sim_disk_wrsect (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectswritten, t_seccnt sects); buf 77 src/simh/sim_disk.h t_stat sim_disk_wrsect_a (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectswritten, t_seccnt sects, DISK_PCALLBACK callback); buf 361 src/simh/sim_sock.c char buf[16]; buf 363 src/simh/sim_sock.c sprintf(buf, "%d", ntohs(sin->sin_port)); buf 364 src/simh/sim_sock.c if (servlen <= strlen(buf)) buf 366 src/simh/sim_sock.c strcpy(serv, buf); buf 1136 src/simh/sim_sock.c int sim_read_sock (SOCKET sock, char *buf, int nbytes) buf 1140 src/simh/sim_sock.c rbytes = recv (sock, buf, nbytes, 0); buf 101 src/simh/sim_sock.h int sim_read_sock (SOCKET sock, char *buf, int nbytes); buf 784 src/simh/sim_tape.c t_stat sim_tape_rdrecf (UNIT *uptr, uint8 *buf, t_mtrlnt *bc, t_mtrlnt max) buf 794 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_rdrecf(unit=%d, buf=%p, max=%d)\n", (int)(uptr-ctx->dptr->units), buf, max); buf 805 src/simh/sim_tape.c i = (t_mtrlnt)sim_fread (buf, sizeof (uint8), rbc, uptr->fileref);/* read record */ buf 812 src/simh/sim_tape.c buf[i] = 0; buf 814 src/simh/sim_tape.c buf[0] = buf[0] & P7B_DPAR; buf 815 src/simh/sim_tape.c sim_tape_data_trace(uptr, buf, rbc, "Record Read", ctx->dptr->dctrl & MTSE_DBG_DAT, MTSE_DBG_STR); buf 819 src/simh/sim_tape.c t_stat sim_tape_rdrecf_a (UNIT *uptr, uint8 *buf, t_mtrlnt *bc, t_mtrlnt max, TAPE_PCALLBACK callback) buf 822 src/simh/sim_tape.c r = sim_tape_rdrecf (uptr, buf, bc, max); buf 848 src/simh/sim_tape.c t_stat sim_tape_rdrecr (UNIT *uptr, uint8 *buf, t_mtrlnt *bc, t_mtrlnt max) buf 857 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_rdrecr(unit=%d, buf=%p, max=%d)\n", (int)(uptr-ctx->dptr->units), buf, max); buf 864 src/simh/sim_tape.c i = (t_mtrlnt)sim_fread (buf, sizeof (uint8), rbc, uptr->fileref);/* read record */ buf 868 src/simh/sim_tape.c buf[i] = 0; buf 870 src/simh/sim_tape.c buf[0] = buf[0] & P7B_DPAR; buf 871 src/simh/sim_tape.c sim_tape_data_trace(uptr, buf, rbc, "Record Read Reverse", ctx->dptr->dctrl & MTSE_DBG_DAT, MTSE_DBG_STR); buf 875 src/simh/sim_tape.c t_stat sim_tape_rdrecr_a (UNIT *uptr, uint8 *buf, t_mtrlnt *bc, t_mtrlnt max, TAPE_PCALLBACK callback) buf 878 src/simh/sim_tape.c r = sim_tape_rdrecr (uptr, buf, bc, max); buf 899 src/simh/sim_tape.c t_stat sim_tape_wrrecf (UNIT *uptr, uint8 *buf, t_mtrlnt bc) buf 907 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_wrrecf(unit=%d, buf=%p, bc=%d)\n", (int)(uptr-ctx->dptr->units), buf, bc); buf 909 src/simh/sim_tape.c sim_tape_data_trace(uptr, buf, bc, "Record Write", ctx->dptr->dctrl & MTSE_DBG_DAT, MTSE_DBG_STR); buf 926 src/simh/sim_tape.c (void)sim_fwrite (buf, sizeof (uint8), sbc, uptr->fileref); buf 936 src/simh/sim_tape.c buf[0] = buf[0] | P7B_SOR; /* mark start of rec */ buf 937 src/simh/sim_tape.c (void)sim_fwrite (buf, sizeof (uint8), sbc, uptr->fileref); buf 938 src/simh/sim_tape.c (void)sim_fwrite (buf, sizeof (uint8), 1, uptr->fileref); /* delimit rec */ buf 946 src/simh/sim_tape.c sim_tape_data_trace(uptr, buf, sbc, "Record Written", ctx->dptr->dctrl & MTSE_DBG_DAT, MTSE_DBG_STR); buf 950 src/simh/sim_tape.c t_stat sim_tape_wrrecf_a (UNIT *uptr, uint8 *buf, t_mtrlnt bc, TAPE_PCALLBACK callback) buf 953 src/simh/sim_tape.c r = sim_tape_wrrecf (uptr, buf, bc); buf 991 src/simh/sim_tape.c uint8 buf = P7B_EOF; /* eof mark */ buf 992 src/simh/sim_tape.c return sim_tape_wrrecf (uptr, &buf, 1); /* write char */ buf 160 src/simh/sim_tape.h t_stat sim_tape_rdrecf (UNIT *uptr, uint8 *buf, t_mtrlnt *bc, t_mtrlnt max); buf 161 src/simh/sim_tape.h t_stat sim_tape_rdrecf_a (UNIT *uptr, uint8 *buf, t_mtrlnt *bc, t_mtrlnt max, TAPE_PCALLBACK callback); buf 162 src/simh/sim_tape.h t_stat sim_tape_rdrecr (UNIT *uptr, uint8 *buf, t_mtrlnt *bc, t_mtrlnt max); buf 163 src/simh/sim_tape.h t_stat sim_tape_rdrecr_a (UNIT *uptr, uint8 *buf, t_mtrlnt *bc, t_mtrlnt max, TAPE_PCALLBACK callback); buf 164 src/simh/sim_tape.h t_stat sim_tape_wrrecf (UNIT *uptr, uint8 *buf, t_mtrlnt bc); buf 165 src/simh/sim_tape.h t_stat sim_tape_wrrecf_a (UNIT *uptr, uint8 *buf, t_mtrlnt bc, TAPE_PCALLBACK callback); buf 413 src/simh/sim_tmxr.c static int32 loop_write_ex (TMLN *lp, char *buf, int32 length, t_bool prefix_datagram) buf 437 src/simh/sim_tmxr.c memcpy (&lp->lpb[lp->lpbpi], buf, chunksize); buf 438 src/simh/sim_tmxr.c buf += chunksize; buf 447 src/simh/sim_tmxr.c static int32 loop_write (TMLN *lp, char *buf, int32 length) buf 449 src/simh/sim_tmxr.c return loop_write_ex (lp, buf, length, TRUE); buf 452 src/simh/sim_tmxr.c static int32 loop_read_ex (TMLN *lp, char *buf, int32 bufsize) buf 470 src/simh/sim_tmxr.c memcpy (buf, &lp->lpb[lp->lpbpr], chunksize); buf 471 src/simh/sim_tmxr.c buf += chunksize; buf 480 src/simh/sim_tmxr.c static int32 loop_read (TMLN *lp, char *buf, int32 bufsize) buf 492 src/simh/sim_tmxr.c return loop_read_ex (lp, buf, bufsize); buf 767 src/simh/sim_tmxr.c hash32s(const void *buf, size_t len, uint32_t h) buf 769 src/simh/sim_tmxr.c const unsigned char *p = buf; buf 1899 src/simh/sim_tmxr.c t_stat tmxr_put_packet_ln (TMLN *lp, const uint8 *buf, size_t size) buf 1901 src/simh/sim_tmxr.c return tmxr_put_packet_ln_ex (lp, buf, size, 0); buf 1904 src/simh/sim_tmxr.c t_stat tmxr_put_packet_ln_ex (TMLN *lp, const uint8 *buf, size_t size, uint8 frame_byte) buf 1936 src/simh/sim_tmxr.c memcpy (lp->txpb + pktlen_size + fc_size, buf, size); buf 3476 src/simh/sim_tmxr.c char *buf = stackbuf; buf 3479 src/simh/sim_tmxr.c buf[bufsize-1] = '\0'; buf 3481 src/simh/sim_tmxr.c len = vsnprintf (buf, bufsize-1, fmt, arglist); buf 3486 src/simh/sim_tmxr.c if (buf != stackbuf) buf 3487 src/simh/sim_tmxr.c FREE (buf); buf 3491 src/simh/sim_tmxr.c buf = (char *) malloc (bufsize); buf 3492 src/simh/sim_tmxr.c if (!buf) /* out of memory */ buf 3504 src/simh/sim_tmxr.c buf[bufsize-1] = '\0'; buf 3513 src/simh/sim_tmxr.c if (('\n' == buf[i]) && ((i == 0) || ('\r' != buf[i-1]))) { buf 3518 src/simh/sim_tmxr.c while (SCPE_STALL == tmxr_putc_ln (lp, buf[i])) buf 3522 src/simh/sim_tmxr.c if (buf != stackbuf) buf 3523 src/simh/sim_tmxr.c FREE (buf); buf 3585 src/simh/sim_tmxr.c if (lp->expect.buf) buf 226 src/simh/sim_tmxr.h t_stat tmxr_put_packet_ln (TMLN *lp, const uint8 *buf, size_t size); buf 227 src/simh/sim_tmxr.h t_stat tmxr_put_packet_ln_ex (TMLN *lp, const uint8 *buf, size_t size, uint8 frame_byte); buf 275 src/simh/sim_tmxr.h void _tmxr_debug (uint32 dbits, TMLN *lp, const char *msg, char *buf, int bufsize); buf 276 src/simh/sim_tmxr.h # define tmxr_debug(dbits, lp, msg, buf, bufsize) do {if (sim_deb && (lp)->mp && (lp)->mp->dptr && ((dbits) & (lp)->mp->dptr->dctrl)) _tmxr_debug (dbits, lp, msg, buf, bufsize); } while (0)