size 591 src/dps8/dps8.h void * trealloc(void *ptr, size_t size); size 60 src/dps8/dps8_crdrdr.c #define snprintf_truncat(dst, size, ...) \ size 63 src/dps8/dps8_crdrdr.c volatile size_t n = 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 483 src/dps8/libtelnet.c char* buffer, size_t size) { size 490 src/dps8/libtelnet.c if (size == 0) { size 507 src/dps8/libtelnet.c if (size == 1) { size 510 src/dps8/libtelnet.c ev.environ.size = 0; size 528 src/dps8/libtelnet.c if ((unsigned)buffer[size - 1] == TELNET_ENVIRON_ESC) { size 536 src/dps8/libtelnet.c for (c = buffer + 1; c < buffer + size; ++c) { size 563 src/dps8/libtelnet.c while (c < buffer + size) { size 586 src/dps8/libtelnet.c if (c < buffer + size && *c == TELNET_ENVIRON_VALUE) { size 589 src/dps8/libtelnet.c while (c < buffer + size) { size 612 src/dps8/libtelnet.c ev.environ.size = count; size 624 src/dps8/libtelnet.c static int _ttype_telnet(telnet_t *telnet, const char* buffer, size_t size) { size 628 src/dps8/libtelnet.c if (size == 0) { size 647 src/dps8/libtelnet.c if ((name = (char *)malloc(size)) == 0) { size 652 src/dps8/libtelnet.c memcpy(name, buffer + 1, size - 1); size 653 src/dps8/libtelnet.c name[size - 1] = '\0'; size 684 src/dps8/libtelnet.c ev.sub.size = telnet->buffer_pos; size 779 src/dps8/libtelnet.c static void _process(telnet_t *telnet, const char *buffer, size_t size) { size 783 src/dps8/libtelnet.c for (i = start = 0; i != size; ++i) { size 794 src/dps8/libtelnet.c ev.data.size = i - start; size 804 src/dps8/libtelnet.c ev.data.size = i - start; size 817 src/dps8/libtelnet.c ev.data.size = 1; size 855 src/dps8/libtelnet.c ev.data.size = 1; size 914 src/dps8/libtelnet.c telnet_recv(telnet, &buffer[start], size - start); size 950 src/dps8/libtelnet.c telnet_recv(telnet, &buffer[start], size - start); size 972 src/dps8/libtelnet.c ev.data.size = i - start; size 979 src/dps8/libtelnet.c size_t size) { size 980 src/dps8/libtelnet.c _process(telnet, buffer, size); size 1078 src/dps8/libtelnet.c size_t size) { size 1081 src/dps8/libtelnet.c for (l = i = 0; i != size; ++i) { size 1103 src/dps8/libtelnet.c size_t size) { size 1106 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 1326 src/simh/scp.c trealloc(void *ptr, size_t size) size 1328 src/simh/scp.c void *r = realloc(ptr, size); size 1333 src/simh/scp.c void *rm = malloc(size); size 1349 src/simh/scp.c memcpy(rm, r, size); size 1372 src/simh/scp.c size_t size = sizeof(ret); size 1373 src/simh/scp.c if (sysctlbyname("sysctl.proc_translated", &ret, &size, NULL, 0) == -1) { size 6933 src/simh/scp.c char *read_line (char *cptr, int32 size, FILE *stream) size 6935 src/simh/scp.c return read_line_p (NULL, cptr, size, stream); size 6950 src/simh/scp.c char *read_line_p (const char *prompt, char *cptr, int32 size, FILE *stream) size 6960 src/simh/scp.c strncpy (cptr, tmpc, size-1); /* copy result */ size 6969 src/simh/scp.c cptr = fgets (cptr, size, stream); /* get cmd line */ size 6972 src/simh/scp.c else cptr = fgets (cptr, size, stream); /* get cmd line */ size 6978 src/simh/scp.c for (tptr = cptr; tptr < (cptr + size); tptr++) { /* remove cr or nl */ size 6980 src/simh/scp.c (tptr == (cptr + size - 1))) { /* str max length? */ size 7356 src/simh/scp.c char *sim_encode_quoted_string (const uint8 *iptr, uint32 size) size 7364 src/simh/scp.c optr = (char *)malloc (4*size + 3); size 7368 src/simh/scp.c for (i=0; i<size; i++) size 7380 src/simh/scp.c while (size--) { size 7417 src/simh/scp.c void fprint_buffer_string (FILE *st, const uint8 *buf, uint32 size) size 7421 src/simh/scp.c string = sim_encode_quoted_string (buf, size); size 9007 src/simh/scp.c CONST char *sim_brk_getact (char *buf, int32 size) size 9026 src/simh/scp.c strncpy (buf, sim_brk_act[sim_do_depth], size); /* copy action */ size 9226 src/simh/scp.c for (i=start_rule; i<exp->size; i++) size 9243 src/simh/scp.c exp->size -= 1; /* decrement count */ size 9245 src/simh/scp.c for (i=ep-exp->rules; i<exp->size; i++) /* shuffle up remaining rules */ size 9247 src/simh/scp.c if (exp->size == 0) { /* No rules left? */ size 9272 src/simh/scp.c for (i=0; i<exp->size; i++) { size 9279 src/simh/scp.c exp->size = 0; size 9316 src/simh/scp.c for (i=0; i<exp->size; i++) { /* Make sure this rule won't be occluded */ size 9321 src/simh/scp.c if (after && exp->size) size 9323 src/simh/scp.c exp->rules = (EXPTAB *) realloc (exp->rules, sizeof (*exp->rules)*(exp->size + 1)); size 9336 src/simh/scp.c ep = &exp->rules[exp->size]; size 9337 src/simh/scp.c exp->size += 1; size 9359 src/simh/scp.c ep->size = match_size; size 9388 src/simh/scp.c for (i=0; i<exp->size; i++) { size 9389 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 9458 src/simh/scp.c for (i=0; i < exp->size; i++) size 9477 src/simh/scp.c for (i=0; i < exp->size; i++) { size 9484 src/simh/scp.c if (exp->buf_ins < ep->size) { /* Match stradle end of buffer */ size 9492 src/simh/scp.c char *mstr = sim_encode_quoted_string (&ep->match[ep->size-exp->buf_ins], exp->buf_ins); size 9499 src/simh/scp.c if (memcmp (exp->buf, &ep->match[ep->size-exp->buf_ins], exp->buf_ins)) size 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); size 9504 src/simh/scp.c char *mstr = sim_encode_quoted_string (ep->match, ep->size-exp->buf_ins); size 9506 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 9511 src/simh/scp.c if (memcmp (&exp->buf[exp->buf_size-(ep->size-exp->buf_ins)], ep->match, ep->size-exp->buf_ins)) size 9517 src/simh/scp.c char *estr = sim_encode_quoted_string (&exp->buf[exp->buf_ins-ep->size], ep->size); size 9518 src/simh/scp.c char *mstr = sim_encode_quoted_string (ep->match, ep->size); size 9520 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 9525 src/simh/scp.c if (memcmp (&exp->buf[exp->buf_ins-ep->size], ep->match, ep->size)) size 9535 src/simh/scp.c if ((ep != NULL) && (i != exp->size)) { /* Found? */ size 9573 src/simh/scp.c t_stat sim_send_input (SEND *snd, uint8 *data, size_t size, uint32 after, uint32 delay) size 9581 src/simh/scp.c if (snd->insoff+size > snd->bufsize) { size 9582 src/simh/scp.c snd->bufsize = snd->insoff+size; size 9597 src/simh/scp.c memcpy(snd->buffer+snd->insoff, data, size); size 9598 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 617 src/simh/sim_defs.h uint32 size; /* match string size */ size 635 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 414 src/simh/sim_fio.c int sim_set_fsize (FILE *fptr, t_addr size) size 416 src/simh/sim_fio.c return _chsize(_fileno(fptr), (long)size); size 426 src/simh/sim_fio.c int sim_set_fsize (FILE *fptr, t_addr size) size 428 src/simh/sim_fio.c return ftruncate(fileno(fptr), (off_t)size); size 70 src/simh/sim_fio.h int sim_set_fsize (FILE *fptr, t_addr size); size 72 src/simh/sim_fio.h size_t sim_fread (void *bptr, size_t size, size_t count, FILE *fptr); size 73 src/simh/sim_fio.h size_t sim_fwrite (const void *bptr, size_t size, size_t count, FILE *fptr); size 79 src/simh/sim_fio.h void sim_buf_swap_data (void *bptr, size_t size, size_t count); size 80 src/simh/sim_fio.h void sim_buf_copy_swapped (void *dptr, const void *bptr, size_t size, size_t count); size 997 src/simh/sim_sock.c int size; size 999 src/simh/sim_sock.c socklen_t size; size 1006 src/simh/sim_sock.c size = sizeof (clientname); size 1008 src/simh/sim_sock.c newsock = accept (master, (struct sockaddr *) &clientname, &size); size 1018 src/simh/sim_sock.c p_getnameinfo((struct sockaddr *)&clientname, size, *connectaddr, NI_MAXHOST, NULL, 0, NI_NUMERICHOST); size 1087 src/simh/sim_sock.c int size = (int)addrsize; size 1089 src/simh/sim_sock.c socklen_t size = (socklen_t)addrsize; size 1093 src/simh/sim_sock.c ret = p_getnameinfo(addr, size, hostnamebuf, NI_MAXHOST, NULL, 0, NI_NUMERICHOST); size 1098 src/simh/sim_sock.c ret = p_getnameinfo(addr, size, NULL, 0, portnamebuf, NI_MAXSERV, NI_NUMERICSERV); size 1899 src/simh/sim_tmxr.c t_stat tmxr_put_packet_ln (TMLN *lp, const uint8 *buf, size_t size) size 1901 src/simh/sim_tmxr.c return tmxr_put_packet_ln_ex (lp, buf, size, 0); size 1904 src/simh/sim_tmxr.c t_stat tmxr_put_packet_ln_ex (TMLN *lp, const uint8 *buf, size_t size, uint8 frame_byte) size 1915 src/simh/sim_tmxr.c if (lp->txpbsize < size + pktlen_size + fc_size) { size 1916 src/simh/sim_tmxr.c lp->txpbsize = size + pktlen_size + fc_size; size 1933 src/simh/sim_tmxr.c lp->txpb[0+fc_size] = (size >> 8) & 0xFF; size 1934 src/simh/sim_tmxr.c lp->txpb[1+fc_size] = size & 0xFF; size 1936 src/simh/sim_tmxr.c memcpy (lp->txpb + pktlen_size + fc_size, buf, size); size 1937 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);