size 57 src/dps8/dps8_crdrdr.c #define snprintf_truncat(dst, size, ...) \ size 60 src/dps8/dps8_crdrdr.c volatile size_t n = size; \ size 1145 src/dps8/dps8_socket_dev.c socklen_t size = sizeof (from); size 1147 src/dps8/dps8_socket_dev.c int fd = accept (sk_data.unit_data[unit_idx][dev_code].accept_fd, (struct sockaddr *) & from, & size); size 61 src/dps8/fnptelnet.c (* p->read_cb) (client, (ssize_t) event->data.size, (unsigned char *)event->data.buffer); size 75 src/dps8/fnptelnet.c (* p->write_actual_cb) (client, (unsigned char *) event->data.buffer, (ssize_t) event->data.size); size 186 src/dps8/libtelnet.c size_t size) { size 191 src/dps8/libtelnet.c ev.data.size = size; size 470 src/dps8/libtelnet.c char* buffer, size_t size) { size 477 src/dps8/libtelnet.c if (size == 0) { size 494 src/dps8/libtelnet.c if (size == 1) { size 497 src/dps8/libtelnet.c ev.environ.size = 0; size 515 src/dps8/libtelnet.c if ((unsigned)buffer[size - 1] == TELNET_ENVIRON_ESC) { size 523 src/dps8/libtelnet.c for (c = buffer + 1; c < buffer + size; ++c) { size 550 src/dps8/libtelnet.c while (c < buffer + size) { size 573 src/dps8/libtelnet.c if (c < buffer + size && *c == TELNET_ENVIRON_VALUE) { size 576 src/dps8/libtelnet.c while (c < buffer + size) { size 599 src/dps8/libtelnet.c ev.environ.size = count; size 611 src/dps8/libtelnet.c static int _ttype_telnet(telnet_t *telnet, const char* buffer, size_t size) { size 615 src/dps8/libtelnet.c if (size == 0) { size 634 src/dps8/libtelnet.c if ((name = (char *)malloc(size)) == 0) { size 639 src/dps8/libtelnet.c memcpy(name, buffer + 1, size - 1); size 640 src/dps8/libtelnet.c name[size - 1] = '\0'; size 671 src/dps8/libtelnet.c ev.sub.size = telnet->buffer_pos; size 765 src/dps8/libtelnet.c static void _process(telnet_t *telnet, const char *buffer, size_t size) { size 769 src/dps8/libtelnet.c for (i = start = 0; i != size; ++i) { size 780 src/dps8/libtelnet.c ev.data.size = i - start; size 790 src/dps8/libtelnet.c ev.data.size = i - start; size 803 src/dps8/libtelnet.c ev.data.size = 1; size 841 src/dps8/libtelnet.c ev.data.size = 1; size 900 src/dps8/libtelnet.c telnet_recv(telnet, &buffer[start], size - start); size 936 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 394 src/dps8/libtelnet.h size_t size); size 426 src/dps8/libtelnet.h const char *buffer, size_t size); size 437 src/dps8/libtelnet.h const char *buffer, size_t size); size 379 src/dps8/shm.c p = mmap(NULL, size, PROT_READ | PROT_WRITE, size 17 src/dps8/shm.h void *create_shm(char *key, size_t size); size 18 src/dps8/shm.h void *open_shm(char *key, size_t size); size 431 src/dps8/uvutil.c accessTelnetReadCallback (client, (ssize_t) event->data.size, size 439 src/dps8/uvutil.c (ssize_t) event->data.size); size 88 src/libsir/include/sir/filesystem.h int _sir_aixself(char* buffer, size_t* size); size 92 src/libsir/include/sir/filesystem.h int _sir_openbsdself(char* buffer, int size); size 96 src/libsir/include/sir/filesystem.h int _sir_resolvepath(const char* restrict path, char* restrict buffer, size_t size); size 442 src/libsir/include/sir/helpers.h # define _sir_snprintf_trunc(dst, size, ...) \ size 444 src/libsir/include/sir/helpers.h volatile size_t _n = size; \ size 196 src/libsir/src/sirfilesystem.c DWORD size = GetCurrentDirectoryA(0UL, NULL); size 197 src/libsir/src/sirfilesystem.c if (0UL == size) { size 202 src/libsir/src/sirfilesystem.c char* cur = calloc(size, sizeof(char)); size 208 src/libsir/src/sirfilesystem.c if (!GetCurrentDirectoryA(size, cur)) { size 239 src/libsir/src/sirfilesystem.c size_t size = (st.st_size > 0) ? st.st_size + 2 : SIR_MAXPATH; size 241 src/libsir/src/sirfilesystem.c size_t size = SIR_MAXPATH; size 249 src/libsir/src/sirfilesystem.c buffer = (char*)calloc(size, sizeof(char)); size 257 src/libsir/src/sirfilesystem.c ssize_t rdlink = _sir_readlink(PROC_SELF, buffer, size - 1); size 258 src/libsir/src/sirfilesystem.c if (-1L != rdlink && rdlink < (ssize_t)size - 1) { size 264 src/libsir/src/sirfilesystem.c } else if (rdlink == (ssize_t)size - 1L) { size 272 src/libsir/src/sirfilesystem.c if (size <= SIR_MAXPATH) { size 273 src/libsir/src/sirfilesystem.c size = size + SIR_MAXPATH + 1L; size 276 src/libsir/src/sirfilesystem.c int ret = _sir_aixself(buffer, &size); size 285 src/libsir/src/sirfilesystem.c if (length > size) { size 286 src/libsir/src/sirfilesystem.c size = length + 1; size 294 src/libsir/src/sirfilesystem.c int ret = sysctl(mib, 4, buffer, &size, NULL, 0); size 299 src/libsir/src/sirfilesystem.c if (ENOMEM == errno && 0 == sysctl(mib, 4, NULL, &size, NULL, 0)) size 319 src/libsir/src/sirfilesystem.c int ret = _NSGetExecutablePath(buffer, (uint32_t*)&size); size 334 src/libsir/src/sirfilesystem.c DWORD ret = GetModuleFileNameA(NULL, buffer, (DWORD)size); size 335 src/libsir/src/sirfilesystem.c if (0UL != ret && ret < (DWORD)size) { size 341 src/libsir/src/sirfilesystem.c } else if (ret == (DWORD)size || ERROR_INSUFFICIENT_BUFFER == GetLastError()) { size 345 src/libsir/src/sirfilesystem.c size += SIR_PATH_BUFFER_GROW_BY; size 446 src/libsir/src/sirfilesystem.c int _sir_aixself(char* buffer, size_t* size) { size 456 src/libsir/src/sirfilesystem.c if ((buffer == NULL) || (size == NULL)) size 485 src/libsir/src/sirfilesystem.c (void)snprintf(buffer, *size - 1, "%s/%s", (char*)dirname(symlink), size 488 src/libsir/src/sirfilesystem.c *size = strnlen(buffer, SIR_MAXPATH); size 506 src/libsir/src/sirfilesystem.c (void)snprintf(buffer, *size - 1, "%s/%s", (char*)dirname(symlink), temp_buffer); size 508 src/libsir/src/sirfilesystem.c *size = strnlen(buffer, SIR_MAXPATH); size 523 src/libsir/src/sirfilesystem.c (void)snprintf(buffer, *size - 1, "%s/%s", (char*)dirname(symlink), temp_buffer); size 525 src/libsir/src/sirfilesystem.c *size = strnlen(buffer, SIR_MAXPATH); size 561 src/libsir/src/sirfilesystem.c (void)snprintf(buffer, *size - 1, "%s/%s", (char*)dirname(symlink), temp_buffer); size 563 src/libsir/src/sirfilesystem.c *size = strnlen(buffer, SIR_MAXPATH); size 573 src/libsir/src/sirfilesystem.c (void)snprintf(buffer, *size - 1, "%s/%s", (char*)dirname(symlink), temp_buffer); size 575 src/libsir/src/sirfilesystem.c *size = strnlen(buffer, SIR_MAXPATH); size 586 src/libsir/src/sirfilesystem.c int _sir_aixself(char* buffer, size_t* size) { size 608 src/libsir/src/sirfilesystem.c (void)_sir_strncpy(buffer, *size, tmp2, strnlen(tmp2, *size - 1)); size 610 src/libsir/src/sirfilesystem.c (void)_sir_resolvepath(tmp, buffer, *size); size 635 src/libsir/src/sirfilesystem.c int _sir_openbsdself(char* buffer, int size) { size 670 src/libsir/src/sirfilesystem.c if (length <= size) size 682 src/libsir/src/sirfilesystem.c int _sir_resolvepath(const char* restrict path, char* restrict buffer, size_t size) { size 717 src/libsir/src/sirfilesystem.c (void)_sir_strncpy(buffer, size, tmp2, (size_t)length); size 271 src/simh/scp.c char* (*sim_vm_read) (char *ptr, int32 size, FILE *stream) = NULL; size 326 src/simh/scp.c CONST char *sim_brk_getact (char *buf, int32 size); size 347 src/simh/scp.c char *read_line (char *ptr, int32 size, FILE *stream); size 348 src/simh/scp.c char *read_line_p (const char *prompt, char *ptr, int32 size, FILE *stream); size 1447 src/simh/scp.c size_t size = sizeof(ret); size 1448 src/simh/scp.c if (sysctlbyname("sysctl.proc_translated", &ret, &size, NULL, 0) == -1) { size 1576 src/simh/scp.c dl_iterate_phdr_callback (struct dl_phdr_info *info, size_t size, void *data) size 1578 src/simh/scp.c (void)size; size 7281 src/simh/scp.c char *read_line (char *cptr, int32 size, FILE *stream) size 7283 src/simh/scp.c return read_line_p (NULL, cptr, size, stream); size 7298 src/simh/scp.c char *read_line_p (const char *prompt, char *cptr, int32 size, FILE *stream) size 7308 src/simh/scp.c strncpy (cptr, tmpc, size-1); /* copy result */ size 7317 src/simh/scp.c cptr = fgets (cptr, size, stream); /* get cmd line */ size 7320 src/simh/scp.c else cptr = fgets (cptr, size, stream); /* get cmd line */ size 7326 src/simh/scp.c for (tptr = cptr; tptr < (cptr + size); tptr++) { /* remove cr or nl */ size 7328 src/simh/scp.c (tptr == (cptr + size - 1))) { /* str max length? */ size 7704 src/simh/scp.c char *sim_encode_quoted_string (const uint8 *iptr, size_t size) size 7712 src/simh/scp.c optr = (char *)malloc (4*size + 3); size 7716 src/simh/scp.c for (i=0; i<size; i++) size 7728 src/simh/scp.c while (size--) { size 7765 src/simh/scp.c void fprint_buffer_string (FILE *st, const uint8 *buf, size_t size) size 7769 src/simh/scp.c string = sim_encode_quoted_string (buf, size); size 9380 src/simh/scp.c CONST char *sim_brk_getact (char *buf, int32 size) size 9399 src/simh/scp.c strncpy (buf, sim_brk_act[sim_do_depth], size); /* copy action */ size 9600 src/simh/scp.c for (i=start_rule; i<exp->size; i++) size 9617 src/simh/scp.c exp->size -= 1; /* decrement count */ size 9619 src/simh/scp.c for (i=ep-exp->rules; i<exp->size; i++) /* shuffle up remaining rules */ size 9621 src/simh/scp.c if (exp->size == 0) { /* No rules left? */ size 9646 src/simh/scp.c for (i=0; i<exp->size; i++) { size 9653 src/simh/scp.c exp->size = 0; size 9690 src/simh/scp.c for (i=0; i<exp->size; i++) { /* Make sure this rule won't be occluded */ size 9695 src/simh/scp.c if (after && exp->size) size 9697 src/simh/scp.c exp->rules = (EXPTAB *) realloc (exp->rules, sizeof (*exp->rules)*(exp->size + 1)); size 9710 src/simh/scp.c ep = &exp->rules[exp->size]; size 9711 src/simh/scp.c exp->size += 1; size 9733 src/simh/scp.c ep->size = match_size; size 9762 src/simh/scp.c for (i=0; i<exp->size; i++) { size 9763 src/simh/scp.c size_t compare_size = (exp->rules[i].switches & EXP_TYP_REGEX) ? MAX(10 * strlen(ep->match_pattern), 1024) : exp->rules[i].size; size 9838 src/simh/scp.c for (i=0; i < exp->size; i++) size 9860 src/simh/scp.c for (i=0; i < exp->size; i++) { size 9867 src/simh/scp.c if (exp->buf_ins < ep->size) { /* Match stradle end of buffer */ size 9875 src/simh/scp.c char *mstr = sim_encode_quoted_string (&ep->match[ep->size-exp->buf_ins], exp->buf_ins); size 9883 src/simh/scp.c if (memcmp (exp->buf, &ep->match[ep->size-exp->buf_ins], exp->buf_ins)) size 9887 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 9888 src/simh/scp.c char *mstr = sim_encode_quoted_string (ep->match, ep->size-exp->buf_ins); size 9891 src/simh/scp.c (long long)exp->buf_size-(ep->size-exp->buf_ins), size 9892 src/simh/scp.c (long long)ep->size-exp->buf_ins, estr); size 9897 src/simh/scp.c if (memcmp (&exp->buf[exp->buf_size-(ep->size-exp->buf_ins)], ep->match, ep->size-exp->buf_ins)) size 9903 src/simh/scp.c char *estr = sim_encode_quoted_string (&exp->buf[exp->buf_ins-ep->size], ep->size); size 9904 src/simh/scp.c char *mstr = sim_encode_quoted_string (ep->match, ep->size); size 9907 src/simh/scp.c (long long)exp->buf_ins-ep->size, size 9908 src/simh/scp.c (long long)ep->size, estr); size 9913 src/simh/scp.c if (memcmp (&exp->buf[exp->buf_ins-ep->size], ep->match, ep->size)) size 9923 src/simh/scp.c if ((ep != NULL) && (i != exp->size)) { /* Found? */ size 9961 src/simh/scp.c t_stat sim_send_input (SEND *snd, uint8 *data, size_t size, uint32 after, uint32 delay) size 9969 src/simh/scp.c if (snd->insoff+size > snd->bufsize) { size 9970 src/simh/scp.c snd->bufsize = snd->insoff+size; size 9985 src/simh/scp.c memcpy(snd->buffer+snd->insoff, data, size); size 9986 src/simh/scp.c snd->insoff += size; size 152 src/simh/scp.h char *sim_encode_quoted_string (const uint8 *iptr, size_t size); size 153 src/simh/scp.h void fprint_buffer_string (FILE *st, const uint8 *buf, size_t 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 280 src/simh/scp.h extern char *(*sim_vm_read) (char *ptr, int32 size, FILE *stream); size 384 src/simh/scp.h size_t size, size 392 src/simh/scp.h size_t size, size 399 src/simh/scp.h size_t size, size 522 src/simh/scp.h size_t size, size 538 src/simh/scp.h size_t size, size 627 src/simh/sim_defs.h size_t size; /* match string size */ size 645 src/simh/sim_defs.h size_t size; /* count of match rules */ size 110 src/simh/sim_fio.c void sim_buf_swap_data (void *bptr, size_t size, size_t count) size 116 src/simh/sim_fio.c if (sim_end || (count == 0) || (size == sizeof (char))) size 120 src/simh/sim_fio.c for (k = (int32)(size - 1); k >= (((int32) size + 1) / 2); k--) { size 125 src/simh/sim_fio.c sptr = dptr = dptr + size; /* next item */ size 129 src/simh/sim_fio.c size_t sim_fread (void *bptr, size_t size, size_t count, FILE *fptr) size 133 src/simh/sim_fio.c if ((size == 0) || (count == 0)) /* check arguments */ size 135 src/simh/sim_fio.c c = fread (bptr, size, count, fptr); /* read buffer */ size 136 src/simh/sim_fio.c if (sim_end || (size == sizeof (char)) || (c == 0)) /* le, byte, or err? */ size 138 src/simh/sim_fio.c sim_buf_swap_data (bptr, size, count); size 142 src/simh/sim_fio.c void sim_buf_copy_swapped (void *dbuf, const void *sbuf, size_t size, size_t count) size 149 src/simh/sim_fio.c if (sim_end || (size == sizeof (char))) { size 150 src/simh/sim_fio.c memcpy (dptr, sptr, size * count); size 158 src/simh/sim_fio.c for (k = size; k > 0; /* empty */) size 160 src/simh/sim_fio.c dptr = dptr + size; size 164 src/simh/sim_fio.c size_t sim_fwrite (const void *bptr, size_t size, size_t count, FILE *fptr) size 171 src/simh/sim_fio.c if ((size == 0) || (count == 0)) /* check arguments */ size 173 src/simh/sim_fio.c if (sim_end || (size == sizeof (char))) /* le or byte? */ size 174 src/simh/sim_fio.c return fwrite (bptr, size, count, fptr); /* done */ size 178 src/simh/sim_fio.c nelem = FLIP_SIZE / size; /* elements in buffer */ size 187 src/simh/sim_fio.c sim_buf_copy_swapped (sim_flip, sptr, size, c); size 188 src/simh/sim_fio.c sptr = sptr + size * count; size 189 src/simh/sim_fio.c c = fwrite (sim_flip, size, c, fptr); size 421 src/simh/sim_fio.c int sim_set_fsize (FILE *fptr, t_addr size) size 423 src/simh/sim_fio.c return _chsize(_fileno(fptr), (long)size); size 433 src/simh/sim_fio.c int sim_set_fsize (FILE *fptr, t_addr size) size 435 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 1004 src/simh/sim_sock.c int size; size 1006 src/simh/sim_sock.c socklen_t size; size 1013 src/simh/sim_sock.c size = sizeof (clientname); size 1015 src/simh/sim_sock.c newsock = accept (master, (struct sockaddr *) &clientname, &size); size 1025 src/simh/sim_sock.c p_getnameinfo((struct sockaddr *)&clientname, size, *connectaddr, NI_MAXHOST, NULL, 0, NI_NUMERICHOST); size 1094 src/simh/sim_sock.c int size = (int)addrsize; size 1096 src/simh/sim_sock.c socklen_t size = (socklen_t)addrsize; size 1100 src/simh/sim_sock.c ret = p_getnameinfo(addr, size, hostnamebuf, NI_MAXHOST, NULL, 0, NI_NUMERICHOST); size 1105 src/simh/sim_sock.c ret = p_getnameinfo(addr, size, NULL, 0, portnamebuf, NI_MAXSERV, NI_NUMERICSERV); size 1895 src/simh/sim_tmxr.c t_stat tmxr_put_packet_ln (TMLN *lp, const uint8 *buf, size_t size) size 1897 src/simh/sim_tmxr.c return tmxr_put_packet_ln_ex (lp, buf, size, 0); size 1900 src/simh/sim_tmxr.c t_stat tmxr_put_packet_ln_ex (TMLN *lp, const uint8 *buf, size_t size, uint8 frame_byte) size 1911 src/simh/sim_tmxr.c if (lp->txpbsize < size + pktlen_size + fc_size) { size 1912 src/simh/sim_tmxr.c lp->txpbsize = size + pktlen_size + fc_size; size 1929 src/simh/sim_tmxr.c lp->txpb[0+fc_size] = (size >> 8) & 0xFF; size 1930 src/simh/sim_tmxr.c lp->txpb[1+fc_size] = size & 0xFF; size 1932 src/simh/sim_tmxr.c memcpy (lp->txpb + pktlen_size + fc_size, buf, size); size 1933 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);