| /netbsd-src/external/lgpl3/mpc/dist/src/ |
| H A D | inp_str.c | 48 size_t strsize = 100; in extract_suffix() local 49 char *str = mpc_alloc_str (strsize); in extract_suffix() 55 if (nread == strsize) { in extract_suffix() 56 str = mpc_realloc_str (str, strsize, 2 * strsize); in extract_suffix() 57 strsize *= 2; in extract_suffix() 62 str = mpc_realloc_str (str, strsize, nread + 1); in extract_suffix() 63 strsize = nread + 1; in extract_suffix() 81 size_t strsize = 100; in extract_string() local 82 char *str = mpc_alloc_str (strsize); in extract_string() 91 if (nread == strsize) { in extract_string() [all …]
|
| /netbsd-src/usr.sbin/kvm_mkdb/ |
| H A D | nlist_aout.c | 114 int fd, nr, strsize; in create_knlist_aout() local 151 nr = read(fd, (char *)&strsize, sizeof(strsize)); in create_knlist_aout() 152 if (nr != sizeof(strsize)) in create_knlist_aout() 156 strsize -= sizeof(strsize); in create_knlist_aout() 157 if (!(strtab = malloc(strsize))) { in create_knlist_aout() 161 if ((nr = read(fd, strtab, strsize)) != strsize) in create_knlist_aout()
|
| /netbsd-src/sys/arch/i386/i386/ |
| H A D | multiboot.c | 281 Elf32_Word symsize, strsize; in copy_syms() local 324 strsize = strtabp->sh_size; in copy_syms() 343 memcpy((void *)strstart, (void *)straddr, strsize); in copy_syms() 349 memcpy((void *)strstart, (void *)straddr, strsize); in copy_syms() 353 symstart = strstart + strsize; in copy_syms() 354 memcpy((void *)strstart, (void *)straddr, strsize); in copy_syms() 362 memcpy((void *)strstart, (void *)straddr, strsize); in copy_syms() 365 symstart = strstart + strsize; in copy_syms() 366 memcpy((void *)strstart, (void *)straddr, strsize); in copy_syms() 372 (int)(symstart + symsize + strsize + KERNBASE); in copy_syms() [all …]
|
| /netbsd-src/usr.bin/m4/ |
| H A D | misc.c | 58 static size_t strsize = STRSPMAX; variable 167 strspace = xalloc(strsize+1, NULL); in initspaces() 169 endest = strspace+strsize; in initspaces() 184 strsize *= 2; in enlarge_strspace() 185 newstrspace = malloc(strsize + 1); in enlarge_strspace() 188 memcpy(newstrspace, strspace, strsize/2); in enlarge_strspace() 196 endest = strspace + strsize; in enlarge_strspace()
|
| /netbsd-src/lib/libc/gen/ |
| H A D | nlist_aout.c | 100 size_t strsize, symsize, cc; in __fdnlist_aout() local 128 strsize = (size_t)(st.st_size - stroff); in __fdnlist_aout() 129 strtab = mmap(NULL, strsize, PROT_READ, MAP_PRIVATE|MAP_FILE, in __fdnlist_aout() 187 munmap(strtab, strsize); in __fdnlist_aout()
|
| /netbsd-src/external/gpl3/binutils.old/dist/binutils/ |
| H A D | rddbg.c | 122 bfd_size_type stabsize, strsize; in read_section_stabs_debugging_info() local 139 strsize = bfd_section_size (strsec); in read_section_stabs_debugging_info() 140 strings = (bfd_byte *) xmalloc (strsize + 1); in read_section_stabs_debugging_info() 141 if (! bfd_get_section_contents (abfd, strsec, strings, 0, strsize)) in read_section_stabs_debugging_info() 152 strings [strsize] = 0; in read_section_stabs_debugging_info() 197 if (stroff + strx >= strsize) in read_section_stabs_debugging_info() 221 if (strx >= strsize) in read_section_stabs_debugging_info()
|
| /netbsd-src/external/gpl3/binutils/dist/binutils/ |
| H A D | rddbg.c | 128 bfd_size_type stabsize, strsize; in read_section_stabs_debugging_info() local 150 strsize = bfd_section_size (strsec); in read_section_stabs_debugging_info() 151 if (strsize != 0) in read_section_stabs_debugging_info() 152 strings [strsize - 1] = 0; in read_section_stabs_debugging_info() 198 if (stroff + strx >= strsize) in read_section_stabs_debugging_info() 222 if (strx >= strsize) in read_section_stabs_debugging_info()
|
| /netbsd-src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/ |
| H A D | fnmatch.c | 288 size_t strsize; in fnmatch() local 301 strsize = mbsrtowcs (NULL, &string, 0, &ps) + 1; in fnmatch() 302 if (__builtin_expect (strsize != 0, 1)) in fnmatch() 305 totsize = patsize + strsize; in fnmatch() 331 mbsrtowcs (wstring, &string, strsize, &ps); in fnmatch() 333 res = internal_fnwmatch (wpattern, wstring, wstring + strsize - 1, in fnmatch()
|
| /netbsd-src/external/gpl3/binutils.old/dist/bfd/ |
| H A D | syms.c | 942 bfd_size_type stabsize, strsize; in _bfd_stab_section_find_nearest_line() local 988 strsize = (info->strsec->rawsize in _bfd_stab_section_find_nearest_line() 1030 strsize = (info->strsec->rawsize in _bfd_stab_section_find_nearest_line() 1035 info->strs = (bfd_byte *) bfd_alloc (abfd, strsize); in _bfd_stab_section_find_nearest_line() 1042 0, strsize)) in _bfd_stab_section_find_nearest_line() 1047 info->strs[strsize - 1] = 0; in _bfd_stab_section_find_nearest_line() 1171 if ((bfd_size_type) ((info->strs + strsize) - str) < stroff) in _bfd_stab_section_find_nearest_line() 1208 if (file_name >= (char *) info->strs + strsize in _bfd_stab_section_find_nearest_line() 1220 if (file_name >= (char *) info->strs + strsize in _bfd_stab_section_find_nearest_line() 1232 if (file_name >= (char *) info->strs + strsize in _bfd_stab_section_find_nearest_line() [all …]
|
| /netbsd-src/external/gpl2/xcvs/dist/lib/ |
| H A D | fnmatch.c | 315 size_t strsize; in fnmatch() local 328 strsize = mbsrtowcs (NULL, &string, 0, &ps) + 1; in fnmatch() 329 if (__builtin_expect (strsize != 0, 1)) in fnmatch() 332 totsize = patsize + strsize; in fnmatch() 358 mbsrtowcs (wstring, &string, strsize, &ps); in fnmatch() 360 res = internal_fnwmatch (wpattern, wstring, wstring + strsize - 1, in fnmatch()
|
| /netbsd-src/external/gpl3/binutils/dist/bfd/ |
| H A D | syms.c | 956 bfd_size_type stabsize, strsize; in _bfd_stab_section_find_nearest_line() local 1002 strsize = (info->strsec->rawsize in _bfd_stab_section_find_nearest_line() 1044 strsize = (info->strsec->rawsize in _bfd_stab_section_find_nearest_line() 1048 if (stabsize == 0 || strsize == 0) in _bfd_stab_section_find_nearest_line() 1058 info->strs[strsize - 1] = 0; in _bfd_stab_section_find_nearest_line() 1197 if ((bfd_size_type) ((info->strs + strsize) - str) < stroff) in _bfd_stab_section_find_nearest_line() 1234 if (file_name >= (char *) info->strs + strsize in _bfd_stab_section_find_nearest_line() 1246 if (file_name >= (char *) info->strs + strsize in _bfd_stab_section_find_nearest_line() 1258 if (file_name >= (char *) info->strs + strsize in _bfd_stab_section_find_nearest_line() 1268 if (function_name >= (char *) info->strs + strsize in _bfd_stab_section_find_nearest_line() [all …]
|
| /netbsd-src/sys/arch/x86/x86/ |
| H A D | multiboot2.c | 179 locore_Elf_Word symsize, strsize; in multiboot2_copy_syms() local 218 strsize = strtabp->sh_size; in multiboot2_copy_syms() 235 cp2src = straddr; cp2size = strsize; in multiboot2_copy_syms() 239 cp2src = straddr; cp2size = strsize; in multiboot2_copy_syms() 242 cp1src = straddr; cp1size = strsize; in multiboot2_copy_syms() 248 cp2src = straddr; cp2size = strsize; in multiboot2_copy_syms() 250 cp1src = straddr; cp1size = strsize; in multiboot2_copy_syms() 269 ms->s_strsize = strsize; in multiboot2_copy_syms() 272 *esymp = (int *)((uintptr_t)endp + symsize + strsize + kernbase); in multiboot2_copy_syms()
|
| /netbsd-src/external/gpl3/binutils/dist/libctf/ |
| H A D | ctf-open-bfd.c | 113 size_t strsize; in ctf_bfdopen_ctfsect() local 162 strsize = strhdr->sh_size; in ctf_bfdopen_ctfsect() 186 strsize = str_asect->size; in ctf_bfdopen_ctfsect() 199 strsect.cts_size = strsize; in ctf_bfdopen_ctfsect()
|
| /netbsd-src/crypto/external/bsd/openssh/dist/ |
| H A D | dh.c | 64 char *strsize, *gen, *prime; in parse_prime() local 108 strsize = strsep(&cp, " "); /* size */ in parse_prime() 109 if (cp == NULL || *strsize == '\0' || in parse_prime() 110 (dhg->size = (int)strtonum(strsize, 0, 64*1024, &errstr)) == 0 || in parse_prime()
|
| /netbsd-src/external/gpl3/binutils.old/dist/libctf/ |
| H A D | ctf-open-bfd.c | 113 size_t strsize; in ctf_bfdopen_ctfsect() local 162 strsize = strhdr->sh_size; in ctf_bfdopen_ctfsect() 186 strsize = str_asect->size; in ctf_bfdopen_ctfsect() 199 strsect.cts_size = strsize; in ctf_bfdopen_ctfsect()
|
| /netbsd-src/usr.bin/elf2ecoff/ |
| H A D | elf2ecoff.c | 588 int32_t extsymoff, int32_t extstroff, int32_t strsize) in write_ecoff_symhdr() argument 604 symhdrp->issExtMax = strsize; in write_ecoff_symhdr() 608 sizeof(*symhdrp), strsize, in write_ecoff_symhdr() 626 off_t stroff, off_t strsize) in elf_read_syms() argument 649 saveRead(in, stroff, strsize, "ELF string table"); in elf_read_syms() 650 elfsymsp->stringsize = strsize; in elf_read_syms() 656 off_t symoff, off_t symsize, off_t stroff, off_t strsize) in elf_symbol_table_to_ecoff() argument 668 elf_read_syms(&elfsymtab, in, symoff, symsize, stroff, strsize); in elf_symbol_table_to_ecoff()
|
| /netbsd-src/sys/kern/ |
| H A D | kern_ksyms.c | 295 * strstart, strsize - Address and size of the string table. 330 void *strstart, size_t strsize, struct ksyms_symtab *tab, in addsymtab() argument 351 tab->sd_strsize = strsize; in addsymtab() 362 newstart, symstart, symsize, strstart, strsize, in addsymtab() 504 size_t strsize = 0; in ksyms_addsyms_elf() local 548 strsize = shdr[j].sh_size; in ksyms_addsyms_elf() 586 addsymtab("netbsd", symstart, symsize, strstart, strsize, in ksyms_addsyms_elf() 609 void *strstart, size_t strsize) in ksyms_addsyms_explicit() argument 615 addsymtab("netbsd", symstart, symsize, strstart, strsize, in ksyms_addsyms_explicit() 809 char *strstart, vsize_t strsize) in ksyms_modload() argument [all...] |
| /netbsd-src/usr.sbin/puffs/mount_9p/ |
| H A D | nineproto.c | 113 #define GETSTR(val,strsize) \ argument 115 if ((rv = p9pbuf_get_str(pb, val, strsize))) return rv; \ 116 if (*strsize > size) return EPROTO; \ 117 size -= *strsize; \
|
| /netbsd-src/external/gpl3/gcc.old/dist/libiberty/ |
| H A D | simple-object-coff.c | 308 size_t strsize; in simple_object_coff_read_strtab() local 316 strsize = (ocr->is_big_endian in simple_object_coff_read_strtab() 319 strtab = XNEWVEC (char, strsize); in simple_object_coff_read_strtab() 321 (unsigned char *) strtab, strsize, errmsg, in simple_object_coff_read_strtab() 327 *strtab_size = strsize; in simple_object_coff_read_strtab()
|
| H A D | simple-object-xcoff.c | 371 size_t strsize; in simple_object_xcoff_read_strtab() local 379 strsize = simple_object_fetch_big_32 (strsizebuf); in simple_object_xcoff_read_strtab() 380 strtab = XNEWVEC (char, strsize); in simple_object_xcoff_read_strtab() 382 (unsigned char *) strtab, strsize, errmsg, in simple_object_xcoff_read_strtab() 388 *strtab_size = strsize; in simple_object_xcoff_read_strtab()
|
| /netbsd-src/external/gpl3/gcc/dist/libiberty/ |
| H A D | simple-object-coff.c | 308 size_t strsize; in simple_object_coff_read_strtab() local 316 strsize = (ocr->is_big_endian in simple_object_coff_read_strtab() 319 strtab = XNEWVEC (char, strsize); in simple_object_coff_read_strtab() 321 (unsigned char *) strtab, strsize, errmsg, in simple_object_coff_read_strtab() 327 *strtab_size = strsize; in simple_object_coff_read_strtab()
|
| /netbsd-src/external/gpl3/binutils/dist/libiberty/ |
| H A D | simple-object-coff.c | 308 size_t strsize; in simple_object_coff_read_strtab() local 316 strsize = (ocr->is_big_endian in simple_object_coff_read_strtab() 319 strtab = XNEWVEC (char, strsize); in simple_object_coff_read_strtab() 321 (unsigned char *) strtab, strsize, errmsg, in simple_object_coff_read_strtab() 327 *strtab_size = strsize; in simple_object_coff_read_strtab()
|
| /netbsd-src/external/gpl3/binutils.old/dist/libiberty/ |
| H A D | simple-object-coff.c | 308 size_t strsize; in simple_object_coff_read_strtab() local 316 strsize = (ocr->is_big_endian in simple_object_coff_read_strtab() 319 strtab = XNEWVEC (char, strsize); in simple_object_coff_read_strtab() 321 (unsigned char *) strtab, strsize, errmsg, in simple_object_coff_read_strtab() 327 *strtab_size = strsize; in simple_object_coff_read_strtab()
|
| /netbsd-src/external/gpl3/binutils/dist/ld/ |
| H A D | elf-hints-local.h | 36 uint32_t strsize; /* Size of string table. */ member
|
| /netbsd-src/external/gpl3/binutils.old/dist/ld/ |
| H A D | elf-hints-local.h | 36 uint32_t strsize; /* Size of string table. */ member
|