len 6602 src/decNumber/decNumber.c Int len, Int *residue, uInt *status) { len 6612 src/decNumber/decNumber.c discard=len-set->digits; // digits to discard len 6616 src/decNumber/decNumber.c count=len; // avoids D2U len 6620 src/decNumber/decNumber.c dn->digits=len; // set the new length len 6632 src/decNumber/decNumber.c if (discard>len) { // everything, +1, is being discarded len 6636 src/decNumber/decNumber.c count=len; // avoids D2U len 7466 src/decNumber/decNumber.c static Int decGetDigits(Unit *uar, Int len) { len 7467 src/decNumber/decNumber.c Unit *up=uar+(len-1); // -> msu len 7468 src/decNumber/decNumber.c Int digits=(len-1)*DECDPUN+1; // possible digits excluding msu len 653 src/dps8/dps8_console.c size_t len = strlen (text); len 654 src/dps8/dps8_console.c char label [len + 1]; len 655 src/dps8/dps8_console.c char with [len + 1]; len 656 src/dps8/dps8_console.c char drive [len + 1]; len 4519 src/dps8/dps8_cpu.c int32 i, j, len; len 4539 src/dps8/dps8_cpu.c len = vsprintf (buf, fmt, arglist); len 4541 src/dps8/dps8_cpu.c len = vsnprintf (buf, (int)((unsigned long)(bufsize)-1), fmt, arglist); len 4547 src/dps8/dps8_cpu.c if ((len < 0) || (len >= bufsize-1)) len 4552 src/dps8/dps8_cpu.c if (bufsize < len + 2) len 4553 src/dps8/dps8_cpu.c bufsize = len + 2; len 4565 src/dps8/dps8_cpu.c for (i = j = 0; i < len; ++i) len 1301 src/dps8/dps8_crdpun.c size_t len = strlen(cptr); len 1305 src/dps8/dps8_crdpun.c if (len >= (sizeof(pun_path_prefix) - 2)) len 1309 src/dps8/dps8_crdpun.c if (len > 0) len 1311 src/dps8/dps8_crdpun.c if (pun_path_prefix[len - 1] != '/') len 1313 src/dps8/dps8_crdpun.c pun_path_prefix[len++] = '/'; len 1314 src/dps8/dps8_crdpun.c pun_path_prefix[len] = 0; len 1069 src/dps8/dps8_crdrdr.c size_t len = strlen(cptr); len 1073 src/dps8/dps8_crdrdr.c if (len >= (sizeof(rdr_path_prefix) - (strlen(rdr_name) + 3))) len 1077 src/dps8/dps8_crdrdr.c if (len > 0) len 1079 src/dps8/dps8_crdrdr.c if (rdr_path_prefix[len - 1] != '/') len 1081 src/dps8/dps8_crdrdr.c if (len == sizeof(rdr_path_prefix) - 1) len 1083 src/dps8/dps8_crdrdr.c rdr_path_prefix[len++] = '/'; len 1084 src/dps8/dps8_crdrdr.c rdr_path_prefix[len] = 0; len 1306 src/dps8/dps8_fnp2.c static void send_3270_msg (uint ctlr_no, unsigned char * msg, size_t len, bool brk) len 1310 src/dps8/dps8_fnp2.c len 1312 src/dps8/dps8_fnp2.c len 1319 src/dps8/dps8_fnp2.c if ((unsigned long) linep->nPos + len > sizeof (linep->buffer)) len 1323 src/dps8/dps8_fnp2.c memcpy (linep->buffer + linep->nPos, msg, len); len 1324 src/dps8/dps8_fnp2.c linep->nPos += len; len 126 src/dps8/dps8_mgp.c hash32s(const void *buf, size_t len, uint32_t h) len 130 src/dps8/dps8_mgp.c for (size_t i = 0; i < len; i++) len 1245 src/dps8/dps8_mgp.c make_cbridge_pkt(int len, int opcode) len 1247 src/dps8/dps8_mgp.c u_char *pkt = malloc(len + CBRIDGE_PACKET_HEADER_SIZE); /* space for cbridge header */ len 1260 src/dps8/dps8_mgp.c memset(pkt, 0, len + CBRIDGE_PACKET_HEADER_SIZE); len 1263 src/dps8/dps8_mgp.c pkt[2] = len & 0xff; len 1264 src/dps8/dps8_mgp.c pkt[3] = len >> 8; len 1270 src/dps8/dps8_mgp.c make_rfc_pkt(int *len, char *host, char *contact, char *args) len 1273 src/dps8/dps8_mgp.c *len = strlen(host) + 1 + strlen(contact) + \ len 1276 src/dps8/dps8_mgp.c u_char *pkt = make_cbridge_pkt(*len, CHOP_RFC); len 1349 src/dps8/dps8_mgp.c cbridge_send_packet(int i, u_char *pkt, int len) len 1352 src/dps8/dps8_mgp.c int x = write(skt, pkt, len); len 1370 src/dps8/dps8_mgp.c else if (x != len) len 1372 src/dps8/dps8_mgp.c sim_printf("%s: wrote %d bytes (expected %d)\n", __func__, x, len); len 481 src/dps8/dps8_mt.c size_t len = strlen(cptr); len 484 src/dps8/dps8_mt.c if (len >= (sizeof(tape_path_prefix) - (LABEL_MAX + 2))) len 514 src/dps8/dps8_mt.c if (len > 0) len 516 src/dps8/dps8_mt.c if (tape_path_prefix[len - 1] != '/') len 518 src/dps8/dps8_mt.c tape_path_prefix[len++] = '/'; len 519 src/dps8/dps8_mt.c tape_path_prefix[len] = 0; len 538 src/dps8/dps8_mt.c size_t len = strlen(cptr); len 540 src/dps8/dps8_mt.c char buffer[len + 2]; len 541 src/dps8/dps8_mt.c char prefix[len + 2]; len 542 src/dps8/dps8_mt.c char dir[len + 2]; len 1875 src/dps8/dps8_prt.c size_t len = strlen(cptr); len 1877 src/dps8/dps8_prt.c if (len >= sizeof(prt_path)) len 1880 src/dps8/dps8_prt.c if (len > 0) len 1882 src/dps8/dps8_prt.c if (prt_path[len - 1] != '/') len 1884 src/dps8/dps8_prt.c if (len == sizeof(prt_path) - 1) len 1886 src/dps8/dps8_prt.c prt_path[len++] = '/'; len 1887 src/dps8/dps8_prt.c prt_path[len] = 0; len 44 src/dps8/dps8_socket_dev.c # define bzero(b,len) (memset((b), '\0', (len)), (void) 0) len 4209 src/dps8/dps8_sys.c hash32s(const void *buf, size_t len, uint32_t h) len 4213 src/dps8/dps8_sys.c for (size_t i = 0; i < len; i++) len 45 src/dps8/fnpuv.h void fnpuv_start_write (uv_tcp_t * client, unsigned char * data, ssize_t len); len 210 src/dps8/segldr.c long len = strtol (p3, & endptr, 8); len 219 src/dps8/segldr.c if (len < 1 || len > 255) len 229 src/dps8/segldr.c long length = len * 1024; len 234 src/dps8/segldr.c sim_printf ("Placed stack (%lo) at %o length %lo allocated %lo\n", (unsigned long) segnum, nextSegAddr, (unsigned long) len, length); len 219 src/dps8/utarray.h # define utarray_erase(a,pos,len) do { \ len 222 src/dps8/utarray.h for(_ut_i=0; _ut_i < len; _ut_i++) { \ len 226 src/dps8/utarray.h if ((a)->i > (pos+len)) { \ len 227 src/dps8/utarray.h memmove( _utarray_eltptr((a),pos), _utarray_eltptr((a),pos+len), \ len 228 src/dps8/utarray.h (((a)->i)-(pos+len))*((a)->icd.sz)); \ len 230 src/dps8/utarray.h (a)->i -= (len); \ len 70 src/dps8/utfile.c hash32s(const void *buf, size_t len, uint32_t h) len 74 src/dps8/utfile.c for (size_t i = 0; i < len; i++) len 660 src/dps8/uthash.h # define HASH_KEYCMP(a,b,len) memcmp(a,b,len) len 137 src/simh/linehistory.c size_t len; /* Current edited line length. */ len 417 src/simh/linehistory.c for (i = 0; i < lc->len; i++) len 447 src/simh/linehistory.c if (lc.len == 0) len 458 src/simh/linehistory.c if (i < lc.len) len 462 src/simh/linehistory.c ls->len = ls->pos = strlen(lc.cvec[i]); len 465 src/simh/linehistory.c ls->len = saved.len; len 484 src/simh/linehistory.c i = ( i + 1 ) % ( lc.len + 1 ); len 485 src/simh/linehistory.c if (i == lc.len) len 495 src/simh/linehistory.c if (i < lc.len) len 498 src/simh/linehistory.c ls->len = ls->pos = nwritten; len 557 src/simh/linehistory.c size_t len = strlen(str); len 560 src/simh/linehistory.c copy = malloc(len + 1); len 566 src/simh/linehistory.c memcpy(copy, str, len + 1); len 567 src/simh/linehistory.c cvec = realloc(lc->cvec, sizeof ( char * ) * ( lc->len + 1 )); len 575 src/simh/linehistory.c lc->cvec[lc->len++] = copy; len 590 src/simh/linehistory.c int len; len 597 src/simh/linehistory.c ab->len = 0; len 601 src/simh/linehistory.c abAppend(struct abuf *ab, const char *s, int len) len 603 src/simh/linehistory.c if (len <= 0) len 608 src/simh/linehistory.c char *new = realloc(ab->b, 1 + ab->len + len); len 615 src/simh/linehistory.c memcpy(new + ab->len, s, len); len 617 src/simh/linehistory.c ab->len += len; len 639 src/simh/linehistory.c if (hintsCallback && plen + l->len < l->cols) len 646 src/simh/linehistory.c int hintmaxlen = l->cols - ( plen + l->len ); len 698 src/simh/linehistory.c size_t len = l->len; len 705 src/simh/linehistory.c len--; len 708 src/simh/linehistory.c while (plen + len > l->cols) len 710 src/simh/linehistory.c len--; len 722 src/simh/linehistory.c while (len--) len 730 src/simh/linehistory.c abAppend(&ab, buf, len); len 744 src/simh/linehistory.c if (write(fd, ab.b, ab.len) == -1) len 763 src/simh/linehistory.c int rows = ( plen + l->len + l->cols - 1 ) len 807 src/simh/linehistory.c for (i = 0; i < l->len; i++) len 815 src/simh/linehistory.c abAppend(&ab, l->buf, l->len); len 830 src/simh/linehistory.c if (l->pos && l->pos == l->len && ( l->pos + plen ) % l->cols == 0) len 867 src/simh/linehistory.c if (write(fd, ab.b, ab.len) == -1) len 901 src/simh/linehistory.c if (l->len < l->buflen) len 903 src/simh/linehistory.c if (l->len == l->pos) len 907 src/simh/linehistory.c l->len++; len 908 src/simh/linehistory.c l->buf[l->len] = '\0'; len 910 src/simh/linehistory.c if (( !mlmode && l->plen + l->len < l->cols && !hintsCallback )) len 929 src/simh/linehistory.c memmove(l->buf + l->pos + 1, l->buf + l->pos, l->len - l->pos); len 931 src/simh/linehistory.c l->len++; len 933 src/simh/linehistory.c l->buf[l->len] = '\0'; len 956 src/simh/linehistory.c if (l->pos != l->len) len 967 src/simh/linehistory.c if (l->len == 0 || l->pos >= l->len) len 974 src/simh/linehistory.c while (l->pos < l->len && l->buf[l->pos] == ' ') len 980 src/simh/linehistory.c while (l->pos < l->len && l->buf[l->pos] != ' ') len 991 src/simh/linehistory.c if (l->len == 0) len 1031 src/simh/linehistory.c if (l->pos != l->len) len 1033 src/simh/linehistory.c l->pos = l->len; len 1085 src/simh/linehistory.c l->len = l->pos = strlen(l->buf); len 1141 src/simh/linehistory.c l->len = strlen(l->buf); len 1170 src/simh/linehistory.c l->len = strlen(l->buf); len 1194 src/simh/linehistory.c if (l->len > 0 && l->pos < l->len) len 1196 src/simh/linehistory.c memmove(l->buf + l->pos, l->buf + l->pos + 1, l->len - l->pos - 1); len 1197 src/simh/linehistory.c l->len--; len 1198 src/simh/linehistory.c l->buf[l->len] = '\0'; len 1207 src/simh/linehistory.c if (l->pos > 0 && l->len > 0) len 1209 src/simh/linehistory.c memmove(l->buf + l->pos - 1, l->buf + l->pos, l->len - l->pos); len 1211 src/simh/linehistory.c l->len--; len 1212 src/simh/linehistory.c l->buf[l->len] = '\0'; len 1237 src/simh/linehistory.c memmove(l->buf + l->pos, l->buf + old_pos, l->len - old_pos + 1); len 1238 src/simh/linehistory.c l->len -= diff; len 1248 src/simh/linehistory.c while (next_word_end < l->len && l->buf[next_word_end] == ' ') len 1252 src/simh/linehistory.c while (next_word_end < l->len && l->buf[next_word_end] != ' ') len 1256 src/simh/linehistory.c memmove(l->buf + l->pos, l->buf + next_word_end, l->len - next_word_end); len 1257 src/simh/linehistory.c l->len -= next_word_end - l->pos; len 1290 src/simh/linehistory.c l.len = 0; len 1320 src/simh/linehistory.c return ( l.len ); len 1337 src/simh/linehistory.c return ( l.len ); len 1380 src/simh/linehistory.c return ((int)l.len ); len 1392 src/simh/linehistory.c if (l.len > 0) /* if the line is empty, act as end-of-file. */ len 1518 src/simh/linehistory.c l.pos = l.len = 0; len 1524 src/simh/linehistory.c l.len = l.pos; len 1589 src/simh/linehistory.c size_t len = 0, maxlen = 0; len 1593 src/simh/linehistory.c if (len == maxlen) len 1617 src/simh/linehistory.c if (c == EOF && len == 0) len 1624 src/simh/linehistory.c line[len] = '\0'; len 1630 src/simh/linehistory.c line[len] = c; len 1631 src/simh/linehistory.c len++; len 1664 src/simh/linehistory.c size_t len; len 1673 src/simh/linehistory.c len = strlen(buf); len 1674 src/simh/linehistory.c while (len && ( buf[len - 1] == '\n' || buf[len - 1] == '\r' )) len 1676 src/simh/linehistory.c len--; len 1677 src/simh/linehistory.c buf[len] = '\0'; len 1805 src/simh/linehistory.c linenoiseHistorySetMaxLen(int len) len 1809 src/simh/linehistory.c if (len < 1) len 1818 src/simh/linehistory.c new = malloc(sizeof ( char * ) * len); len 1825 src/simh/linehistory.c if (len < tocopy) len 1829 src/simh/linehistory.c for (j = 0; j < tocopy - len; j++) len 1834 src/simh/linehistory.c tocopy = len; len 1837 src/simh/linehistory.c memset(new, 0, sizeof ( char * ) * len); len 1846 src/simh/linehistory.c history_max_len = len; len 1859 src/simh/linehistory.c size_t len = 0, i = 0; len 1869 src/simh/linehistory.c len++; len 1872 src/simh/linehistory.c return ( len ); len 67 src/simh/linehistory.h size_t len; len 87 src/simh/linehistory.h int linenoiseHistorySetMaxLen(int len); len 1387 src/simh/scp.c size_t len = strlen(sub); len 1388 src/simh/scp.c while ((r = strstr(p = r + len, sub)) != NULL) { len 9873 src/simh/scp.c int32 len; len 9878 src/simh/scp.c len = vsnprintf (buf, bufsize-1, fmt, arglist); len 9883 src/simh/scp.c if ((len < 0) || (len >= bufsize-1)) { len 9887 src/simh/scp.c if (bufsize < len + 2) len 9888 src/simh/scp.c bufsize = len + 2; len 9926 src/simh/scp.c int32 len; len 9932 src/simh/scp.c len = vsnprintf (buf, bufsize-1, fmt, arglist); len 9937 src/simh/scp.c if ((len < 0) || (len >= bufsize-1)) { len 9941 src/simh/scp.c if (bufsize < len + 2) len 9942 src/simh/scp.c bufsize = len + 2; len 10001 src/simh/scp.c int32 i, j, len; len 10007 src/simh/scp.c len = vsnprintf (buf, bufsize-1, fmt, arglist); len 10012 src/simh/scp.c if ((len < 0) || (len >= bufsize-1)) { len 10016 src/simh/scp.c if (bufsize < len + 2) len 10017 src/simh/scp.c bufsize = len + 2; len 10029 src/simh/scp.c for (i = j = 0; i < len; ++i) { len 10052 src/simh/scp.c debug_unterm = len ? (((buf[len-1]=='\n')) ? 0 : 1) : debug_unterm; len 10059 src/simh/scp.c void sim_data_trace(DEVICE *dptr, UNIT *uptr, const uint8 *data, const char *position, size_t len, const char *txt, uint32 reason) len 10063 src/simh/scp.c sim_debug (reason, dptr, "%s %s %slen: %08X\n", sim_uname(uptr), txt, position, (unsigned int)len); len 10064 src/simh/scp.c if (data && len) { len 10104 src/simh/scp.c for (i=same=0; i<len; i += 16) { len 10113 src/simh/scp.c group = (((len - i) > 16) ? 16 : (len - i)); len 10156 src/simh/scp.c sim_debug (reason, dptr, "%04X thru %04X same as above\n", i-(16*same), (unsigned int)(len-1)); len 10201 src/simh/scp.c size_t len; len 10228 src/simh/scp.c static void appendText (TOPIC *topic, const char *text, size_t len) len 10232 src/simh/scp.c if (!len) len 10235 src/simh/scp.c newt = (char *)realloc (topic->text, topic->len + len +1); len 10242 src/simh/scp.c memcpy (newt + topic->len, text, len); len 10243 src/simh/scp.c topic->len +=len; len 10244 src/simh/scp.c newt[topic->len] = '\0'; len 200 src/simh/scp.h void sim_data_trace(DEVICE *dptr, UNIT *uptr, const uint8 *data, const char *position, size_t len, const char *txt, uint32 reason); len 1136 src/simh/sim_disk.c void sim_disk_data_trace(UNIT *uptr, const uint8 *data, size_t lba, size_t len, const char* txt, int detail, uint32 reason) len 1144 src/simh/sim_disk.c sim_data_trace(ctx->dptr, uptr, (detail ? data : NULL), pos, len, txt, reason); len 92 src/simh/sim_disk.h void sim_disk_data_trace (UNIT *uptr, const uint8 *data, size_t lba, size_t len, const char* txt, int detail, uint32 reason); len 114 src/simh/sim_tape.c static void sim_tape_data_trace (UNIT *uptr, const uint8 *data, size_t len, const char* txt, int detail, uint32 reason); len 300 src/simh/sim_tape.c static void sim_tape_data_trace(UNIT *uptr, const uint8 *data, size_t len, const char* txt, int detail, uint32 reason) len 307 src/simh/sim_tape.c sim_data_trace(ctx->dptr, uptr, (detail ? data : NULL), "", len, txt, reason); len 767 src/simh/sim_tmxr.c hash32s(const void *buf, size_t len, uint32_t h) len 771 src/simh/sim_tmxr.c for (size_t i = 0; i < len; i++) len 3477 src/simh/sim_tmxr.c int32 i, len; len 3481 src/simh/sim_tmxr.c len = vsnprintf (buf, bufsize-1, fmt, arglist); len 3485 src/simh/sim_tmxr.c if ((len < 0) || (len >= bufsize-1)) { len 3489 src/simh/sim_tmxr.c if (bufsize < len + 2) len 3490 src/simh/sim_tmxr.c bufsize = len + 2; len 3512 src/simh/sim_tmxr.c for (i = 0; i < len; ++i) {