size 577 src/dps8/dps8.h void * trealloc(void *ptr, size_t size); size 1143 src/dps8/dps8_socket_dev.c socklen_t size = sizeof (from); size 1145 src/dps8/dps8_socket_dev.c int fd = accept (sk_data.unit_data[unit_idx][dev_code].accept_fd, (struct sockaddr *) & from, & size); size 64 src/dps8/fnptelnet.c (* p->read_cb) (client, (ssize_t) event->data.size, (unsigned char *)event->data.buffer); size 78 src/dps8/fnptelnet.c (* p->write_actual_cb) (client, (unsigned char *) event->data.buffer, (ssize_t) event->data.size); size 199 src/dps8/libtelnet.c size_t size) { size 204 src/dps8/libtelnet.c ev.data.size = size; size 477 src/dps8/libtelnet.c char* buffer, size_t size) { size 484 src/dps8/libtelnet.c if (size == 0) { size 501 src/dps8/libtelnet.c if (size == 1) { size 504 src/dps8/libtelnet.c ev.environ.size = 0; size 522 src/dps8/libtelnet.c if ((unsigned)buffer[size - 1] == TELNET_ENVIRON_ESC) { size 530 src/dps8/libtelnet.c for (c = buffer + 1; c < buffer + size; ++c) { size 557 src/dps8/libtelnet.c while (c < buffer + size) { size 580 src/dps8/libtelnet.c if (c < buffer + size && *c == TELNET_ENVIRON_VALUE) { size 583 src/dps8/libtelnet.c while (c < buffer + size) { size 606 src/dps8/libtelnet.c ev.environ.size = count; size 618 src/dps8/libtelnet.c static int _ttype_telnet(telnet_t *telnet, const char* buffer, size_t size) { size 622 src/dps8/libtelnet.c if (size == 0) { size 641 src/dps8/libtelnet.c if ((name = (char *)malloc(size)) == 0) { size 646 src/dps8/libtelnet.c memcpy(name, buffer + 1, size - 1); size 647 src/dps8/libtelnet.c name[size - 1] = '\0'; size 676 src/dps8/libtelnet.c ev.sub.size = telnet->buffer_pos; size 771 src/dps8/libtelnet.c static void _process(telnet_t *telnet, const char *buffer, size_t size) { size 775 src/dps8/libtelnet.c for (i = start = 0; i != size; ++i) { size 786 src/dps8/libtelnet.c ev.data.size = i - start; size 796 src/dps8/libtelnet.c ev.data.size = i - start; size 809 src/dps8/libtelnet.c ev.data.size = 1; size 847 src/dps8/libtelnet.c ev.data.size = 1; size 906 src/dps8/libtelnet.c telnet_recv(telnet, &buffer[start], size - start); size 938 src/dps8/libtelnet.c telnet_recv(telnet, &buffer[start], size - start); size 957 src/dps8/libtelnet.c ev.data.size = i - start; size 964 src/dps8/libtelnet.c size_t size) { size 965 src/dps8/libtelnet.c _process(telnet, buffer, size); size 1063 src/dps8/libtelnet.c size_t size) { size 1066 src/dps8/libtelnet.c for (l = i = 0; i != size; ++i) { size 1088 src/dps8/libtelnet.c size_t size) { size 1091 src/dps8/libtelnet.c for (l = i = 0; i != size; ++i) { size 263 src/dps8/libtelnet.h size_t size; /* number of bytes in buffer */ size 300 src/dps8/libtelnet.h size_t size; /* number of bytes in buffer */ size 319 src/dps8/libtelnet.h size_t size; /* number of elements in values */ size 393 src/dps8/libtelnet.h size_t size); size 425 src/dps8/libtelnet.h const char *buffer, size_t size); size 436 src/dps8/libtelnet.h const char *buffer, size_t size); size 456 src/dps8/shm.c p = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); size 20 src/dps8/shm.h void *create_shm(char *key, size_t size); size 21 src/dps8/shm.h void *open_shm(char *key, size_t size); size 437 src/dps8/uvutil.c accessTelnetReadCallback (client, (ssize_t) event->data.size, size 445 src/dps8/uvutil.c (ssize_t) event->data.size); size 200 src/simh/scp.c char* (*sim_vm_read) (char *ptr, int32 size, FILE *stream) = NULL; size 255 src/simh/scp.c CONST char *sim_brk_getact (char *buf, int32 size); size 276 src/simh/scp.c char *read_line (char *ptr, int32 size, FILE *stream); size 277 src/simh/scp.c char *read_line_p (const char *prompt, char *ptr, int32 size, FILE *stream); size 1325 src/simh/scp.c trealloc(void *ptr, size_t size) size 1327 src/simh/scp.c void *r = realloc(ptr, size); size 1332 src/simh/scp.c void *rm = malloc(size); size 1348 src/simh/scp.c memcpy(rm, r, size); size 1371 src/simh/scp.c size_t size = sizeof(ret); size 1372 src/simh/scp.c if (sysctlbyname("sysctl.proc_translated", &ret, &size, NULL, 0) == -1) { size 6720 src/simh/scp.c char *read_line (char *cptr, int32 size, FILE *stream) size 6722 src/simh/scp.c return read_line_p (NULL, cptr, size, stream); size 6737 src/simh/scp.c char *read_line_p (const char *prompt, char *cptr, int32 size, FILE *stream) size 6747 src/simh/scp.c strncpy (cptr, tmpc, size-1); /* copy result */ size 6756 src/simh/scp.c cptr = fgets (cptr, size, stream); /* get cmd line */ size 6759 src/simh/scp.c else cptr = fgets (cptr, size, stream); /* get cmd line */ size 6765 src/simh/scp.c for (tptr = cptr; tptr < (cptr + size); tptr++) { /* remove cr or nl */ size 6767 src/simh/scp.c (tptr == (cptr + size - 1))) { /* str max length? */ size 7143 src/simh/scp.c char *sim_encode_quoted_string (const uint8 *iptr, uint32 size) size 7151 src/simh/scp.c optr = (char *)malloc (4*size + 3); size 7155 src/simh/scp.c for (i=0; i<size; i++) size 7167 src/simh/scp.c while (size--) { size 7204 src/simh/scp.c void fprint_buffer_string (FILE *st, const uint8 *buf, uint32 size) size 7208 src/simh/scp.c string = sim_encode_quoted_string (buf, size); size 8794 src/simh/scp.c CONST char *sim_brk_getact (char *buf, int32 size) size 8813 src/simh/scp.c strncpy (buf, sim_brk_act[sim_do_depth], size); /* copy action */ size 9013 src/simh/scp.c for (i=start_rule; i<exp->size; i++) size 9030 src/simh/scp.c exp->size -= 1; /* decrement count */ size 9032 src/simh/scp.c for (i=ep-exp->rules; i<exp->size; i++) /* shuffle up remaining rules */ size 9034 src/simh/scp.c if (exp->size == 0) { /* No rules left? */ size 9059 src/simh/scp.c for (i=0; i<exp->size; i++) { size 9066 src/simh/scp.c exp->size = 0; size 9103 src/simh/scp.c for (i=0; i<exp->size; i++) { /* Make sure this rule won't be occluded */ size 9108 src/simh/scp.c if (after && exp->size) size 9110 src/simh/scp.c exp->rules = (EXPTAB *) realloc (exp->rules, sizeof (*exp->rules)*(exp->size + 1)); size 9123 src/simh/scp.c ep = &exp->rules[exp->size]; size 9124 src/simh/scp.c exp->size += 1; size 9146 src/simh/scp.c ep->size = match_size; size 9175 src/simh/scp.c for (i=0; i<exp->size; i++) { size 9176 src/simh/scp.c uint32 compare_size = (exp->rules[i].switches & EXP_TYP_REGEX) ? MAX(10 * strlen(ep->match_pattern), 1024) : exp->rules[i].size; size 9245 src/simh/scp.c for (i=0; i < exp->size; i++) size 9264 src/simh/scp.c for (i=0; i < exp->size; i++) { size 9271 src/simh/scp.c if (exp->buf_ins < ep->size) { /* Match stradle end of buffer */ size 9279 src/simh/scp.c char *mstr = sim_encode_quoted_string (&ep->match[ep->size-exp->buf_ins], exp->buf_ins); size 9286 src/simh/scp.c if (memcmp (exp->buf, &ep->match[ep->size-exp->buf_ins], exp->buf_ins)) size 9290 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); size 9291 src/simh/scp.c char *mstr = sim_encode_quoted_string (ep->match, ep->size-exp->buf_ins); size 9293 src/simh/scp.c sim_debug (exp->dbit, exp->dptr, "Checking String[%d:%d]: %s\n", exp->buf_size-(ep->size-exp->buf_ins), ep->size-exp->buf_ins, estr); size 9298 src/simh/scp.c if (memcmp (&exp->buf[exp->buf_size-(ep->size-exp->buf_ins)], ep->match, ep->size-exp->buf_ins)) size 9304 src/simh/scp.c char *estr = sim_encode_quoted_string (&exp->buf[exp->buf_ins-ep->size], ep->size); size 9305 src/simh/scp.c char *mstr = sim_encode_quoted_string (ep->match, ep->size); size 9307 src/simh/scp.c sim_debug (exp->dbit, exp->dptr, "Checking String[%d:%d]: %s\n", exp->buf_ins-ep->size, ep->size, estr); size 9312 src/simh/scp.c if (memcmp (&exp->buf[exp->buf_ins-ep->size], ep->match, ep->size)) size 9322 src/simh/scp.c if ((ep != NULL) && (i != exp->size)) { /* Found? */ size 9360 src/simh/scp.c t_stat sim_send_input (SEND *snd, uint8 *data, size_t size, uint32 after, uint32 delay) size 9368 src/simh/scp.c if (snd->insoff+size > snd->bufsize) { size 9369 src/simh/scp.c snd->bufsize = snd->insoff+size; size 9384 src/simh/scp.c memcpy(snd->buffer+snd->insoff, data, size); size 9385 src/simh/scp.c snd->insoff += size; size 152 src/simh/scp.h char *sim_encode_quoted_string (const uint8 *iptr, uint32 size); size 153 src/simh/scp.h void fprint_buffer_string (FILE *st, const uint8 *buf, uint32 size); size 160 src/simh/scp.h char *read_line (char *cptr, int32 size, FILE *stream); size 181 src/simh/scp.h t_stat sim_send_input (SEND *snd, uint8 *data, size_t size, uint32 after, uint32 delay); size 275 src/simh/scp.h extern char *(*sim_vm_read) (char *ptr, int32 size, FILE *stream); size 378 src/simh/scp.h size_t size, size 386 src/simh/scp.h size_t size, size 393 src/simh/scp.h size_t size, size 516 src/simh/scp.h size_t size, size 532 src/simh/scp.h size_t size, size 615 src/simh/sim_defs.h uint32 size; /* match string size */ size 633 src/simh/sim_defs.h int32 size; /* count of match rules */ size 106 src/simh/sim_fio.c void sim_buf_swap_data (void *bptr, size_t size, size_t count) size 112 src/simh/sim_fio.c if (sim_end || (count == 0) || (size == sizeof (char))) size 116 src/simh/sim_fio.c for (k = (int32)(size - 1); k >= (((int32) size + 1) / 2); k--) { size 121 src/simh/sim_fio.c sptr = dptr = dptr + size; /* next item */ size 125 src/simh/sim_fio.c size_t sim_fread (void *bptr, size_t size, size_t count, FILE *fptr) size 129 src/simh/sim_fio.c if ((size == 0) || (count == 0)) /* check arguments */ size 131 src/simh/sim_fio.c c = fread (bptr, size, count, fptr); /* read buffer */ size 132 src/simh/sim_fio.c if (sim_end || (size == sizeof (char)) || (c == 0)) /* le, byte, or err? */ size 134 src/simh/sim_fio.c sim_buf_swap_data (bptr, size, count); size 138 src/simh/sim_fio.c void sim_buf_copy_swapped (void *dbuf, const void *sbuf, size_t size, size_t count) size 145 src/simh/sim_fio.c if (sim_end || (size == sizeof (char))) { size 146 src/simh/sim_fio.c memcpy (dptr, sptr, size * count); size 150 src/simh/sim_fio.c for (k = (int32)(size - 1); k >= 0; k--) size 152 src/simh/sim_fio.c dptr = dptr + size; size 156 src/simh/sim_fio.c size_t sim_fwrite (const void *bptr, size_t size, size_t count, FILE *fptr) size 163 src/simh/sim_fio.c if ((size == 0) || (count == 0)) /* check arguments */ size 165 src/simh/sim_fio.c if (sim_end || (size == sizeof (char))) /* le or byte? */ size 166 src/simh/sim_fio.c return fwrite (bptr, size, count, fptr); /* done */ size 170 src/simh/sim_fio.c nelem = FLIP_SIZE / size; /* elements in buffer */ size 179 src/simh/sim_fio.c sim_buf_copy_swapped (sim_flip, sptr, size, c); size 180 src/simh/sim_fio.c sptr = sptr + size * count; size 181 src/simh/sim_fio.c c = fwrite (sim_flip, size, c, fptr); size 415 src/simh/sim_fio.c int sim_set_fsize (FILE *fptr, t_addr size) size 417 src/simh/sim_fio.c return _chsize(_fileno(fptr), (long)size); size 427 src/simh/sim_fio.c int sim_set_fsize (FILE *fptr, t_addr size) size 429 src/simh/sim_fio.c return ftruncate(fileno(fptr), (off_t)size); size 71 src/simh/sim_fio.h int sim_set_fsize (FILE *fptr, t_addr size); size 73 src/simh/sim_fio.h size_t sim_fread (void *bptr, size_t size, size_t count, FILE *fptr); size 74 src/simh/sim_fio.h size_t sim_fwrite (const void *bptr, size_t size, size_t count, FILE *fptr); size 80 src/simh/sim_fio.h void sim_buf_swap_data (void *bptr, size_t size, size_t count); size 81 src/simh/sim_fio.h void sim_buf_copy_swapped (void *dptr, const void *bptr, size_t size, size_t count); size 996 src/simh/sim_sock.c int size; size 998 src/simh/sim_sock.c socklen_t size; size 1005 src/simh/sim_sock.c size = sizeof (clientname); size 1007 src/simh/sim_sock.c newsock = accept (master, (struct sockaddr *) &clientname, &size); size 1017 src/simh/sim_sock.c p_getnameinfo((struct sockaddr *)&clientname, size, *connectaddr, NI_MAXHOST, NULL, 0, NI_NUMERICHOST); size 1086 src/simh/sim_sock.c int size = (int)addrsize; size 1088 src/simh/sim_sock.c socklen_t size = (socklen_t)addrsize; size 1092 src/simh/sim_sock.c ret = p_getnameinfo(addr, size, hostnamebuf, NI_MAXHOST, NULL, 0, NI_NUMERICHOST); size 1097 src/simh/sim_sock.c ret = p_getnameinfo(addr, size, NULL, 0, portnamebuf, NI_MAXSERV, NI_NUMERICSERV); size 1805 src/simh/sim_tmxr.c t_stat tmxr_put_packet_ln (TMLN *lp, const uint8 *buf, size_t size) size 1807 src/simh/sim_tmxr.c return tmxr_put_packet_ln_ex (lp, buf, size, 0); size 1810 src/simh/sim_tmxr.c t_stat tmxr_put_packet_ln_ex (TMLN *lp, const uint8 *buf, size_t size, uint8 frame_byte) size 1821 src/simh/sim_tmxr.c if (lp->txpbsize < size + pktlen_size + fc_size) { size 1822 src/simh/sim_tmxr.c lp->txpbsize = size + pktlen_size + fc_size; size 1839 src/simh/sim_tmxr.c lp->txpb[0+fc_size] = (size >> 8) & 0xFF; size 1840 src/simh/sim_tmxr.c lp->txpb[1+fc_size] = size & 0xFF; size 1842 src/simh/sim_tmxr.c memcpy (lp->txpb + pktlen_size + fc_size, buf, size); size 1843 src/simh/sim_tmxr.c lp->txppsize = size + pktlen_size + fc_size; size 120 src/simh/sim_tmxr.h int32 size; size 226 src/simh/sim_tmxr.h t_stat tmxr_put_packet_ln (TMLN *lp, const uint8 *buf, size_t size); size 227 src/simh/sim_tmxr.h t_stat tmxr_put_packet_ln_ex (TMLN *lp, const uint8 *buf, size_t size, uint8 frame_byte);