| /openbsd-src/usr.sbin/tcpdump/ |
| H A D | savestr.c | 43 static size_t strsize = 0; in savestr() local 46 if (size > strsize) { in savestr() 47 strsize = 1024; in savestr() 48 if (strsize < size) in savestr() 49 strsize = size; in savestr() 50 strptr = malloc(strsize); in savestr() 59 strsize -= size; in savestr()
|
| /openbsd-src/usr.bin/m4/ |
| H A D | misc.c | 55 static size_t strsize = STRSPMAX; variable 164 strspace = xalloc(strsize+1, NULL); in initspaces() 166 endest = strspace+strsize; in initspaces() 181 strsize *= 2; in enlarge_strspace() 182 newstrspace = malloc(strsize + 1); in enlarge_strspace() 185 memcpy(newstrspace, strspace, strsize/2); in enlarge_strspace() 193 endest = strspace + strsize; in enlarge_strspace()
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/binutils/ |
| H A D | rddbg.c | 124 bfd_size_type stabsize, strsize; in read_section_stabs_debugging_info() local 139 strsize = bfd_section_size (abfd, strsec); in read_section_stabs_debugging_info() 140 strings = (bfd_byte *) xmalloc (strsize); in read_section_stabs_debugging_info() 141 if (! bfd_get_section_contents (abfd, strsec, strings, 0, strsize)) in read_section_stabs_debugging_info() 189 if (stroff + strx > strsize) in read_section_stabs_debugging_info()
|
| /openbsd-src/gnu/usr.bin/binutils/binutils/ |
| H A D | rddbg.c | 119 bfd_size_type stabsize, strsize; in read_section_stabs_debugging_info() local 134 strsize = bfd_section_size (abfd, strsec); in read_section_stabs_debugging_info() 135 strings = (bfd_byte *) xmalloc (strsize); in read_section_stabs_debugging_info() 136 if (! bfd_get_section_contents (abfd, strsec, strings, 0, strsize)) in read_section_stabs_debugging_info() 184 if (stroff + strx > strsize) in read_section_stabs_debugging_info()
|
| /openbsd-src/usr.bin/ssh/ |
| H A D | dh.c | 57 char *strsize, *gen, *prime; in parse_prime() local 101 strsize = strsep(&cp, " "); /* size */ in parse_prime() 102 if (cp == NULL || *strsize == '\0' || in parse_prime() 103 (dhg->size = (int)strtonum(strsize, 0, 64*1024, &errstr)) == 0 || in parse_prime()
|
| /openbsd-src/gnu/usr.bin/binutils/bfd/ |
| H A D | syms.c | 893 bfd_size_type stabsize, strsize; in _bfd_stab_section_find_nearest_line() local 938 strsize = info->strsec->_raw_size; in _bfd_stab_section_find_nearest_line() 969 strsize = info->strsec->_raw_size; in _bfd_stab_section_find_nearest_line() 972 info->strs = bfd_alloc (abfd, strsize); in _bfd_stab_section_find_nearest_line() 979 (bfd_vma) 0, strsize)) in _bfd_stab_section_find_nearest_line() 1098 if ((bfd_size_type) ((info->strs + strsize) - str) < stroff) in _bfd_stab_section_find_nearest_line()
|
| H A D | mach-o.c | 748 if (stroff >= sym->strsize) 751 (unsigned long) stroff, (unsigned long) sym->strsize); 840 if ((sym->stroff + sym->strsize) > b->size) 849 sym->strtab = bfd_alloc (abfd, sym->strsize); 854 if (bfd_bread ((PTR) sym->strtab, sym->strsize, abfd) != sym->strsize) 857 sym->strsize, sym->stroff); 1238 bfd_h_put_32 (abfd, seg->strsize, buf + 12); 1306 seg->strsize = bfd_h_get_32 (abfd, buf + 12); 1340 bfdsec->_raw_size = seg->strsize;
|
| H A D | coffgen.c | 1627 bfd_size_type strsize; local 1652 strsize = STRING_SIZE_SIZE; 1657 strsize = H_GET_32 (abfd, extstrsize); 1663 if (strsize < STRING_SIZE_SIZE) 1667 (unsigned long) strsize); 1672 strings = (char *) bfd_malloc (strsize); 1676 if (bfd_bread (strings + STRING_SIZE_SIZE, strsize - STRING_SIZE_SIZE, abfd) 1677 != strsize - STRING_SIZE_SIZE)
|
| H A D | mach-o.h | 225 unsigned long strsize; member
|
| /openbsd-src/gnu/llvm/lldb/tools/debugserver/source/ |
| H A D | JSONGenerator.h | 222 const size_t strsize = m_value.size(); in Dump() local 223 for (size_t i = 0; i < strsize; ++i) { in Dump() 234 const size_t strsize = m_value.size(); in DumpBinaryEscaped() local 235 for (size_t i = 0; i < strsize; ++i) { in DumpBinaryEscaped()
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/bfd/ |
| H A D | syms.c | 910 bfd_size_type stabsize, strsize; in _bfd_stab_section_find_nearest_line() local 957 strsize = (info->strsec->rawsize in _bfd_stab_section_find_nearest_line() 992 strsize = (info->strsec->rawsize in _bfd_stab_section_find_nearest_line() 997 info->strs = bfd_alloc (abfd, strsize); in _bfd_stab_section_find_nearest_line() 1004 0, strsize)) in _bfd_stab_section_find_nearest_line() 1127 if ((bfd_size_type) ((info->strs + strsize) - str) < stroff) in _bfd_stab_section_find_nearest_line()
|
| H A D | mach-o.c | 481 bfd_h_put_32 (abfd, seg->strsize, buf + 12); in bfd_mach_o_scan_write_symtab() 730 if (stroff >= sym->strsize) in bfd_mach_o_scan_read_symtab_symbol() 733 (unsigned long) stroff, (unsigned long) sym->strsize); in bfd_mach_o_scan_read_symtab_symbol() 821 if ((sym->stroff + sym->strsize) > b->size) in bfd_mach_o_scan_read_symtab_strtab() 830 sym->strtab = bfd_alloc (abfd, sym->strsize); in bfd_mach_o_scan_read_symtab_strtab() 835 if (bfd_bread ((PTR) sym->strtab, sym->strsize, abfd) != sym->strsize) in bfd_mach_o_scan_read_symtab_strtab() 838 sym->strsize, sym->stroff); in bfd_mach_o_scan_read_symtab_strtab() 1212 seg->strsize = bfd_h_get_32 (abfd, buf + 12); in bfd_mach_o_scan_read_symtab() 1246 bfdsec->size = seg->strsize; in bfd_mach_o_scan_read_symtab()
|
| H A D | coffgen.c | 1472 bfd_size_type strsize; in _bfd_coff_read_string_table() local 1497 strsize = STRING_SIZE_SIZE; in _bfd_coff_read_string_table() 1502 strsize = H_GET_32 (abfd, extstrsize); in _bfd_coff_read_string_table() 1508 if (strsize < STRING_SIZE_SIZE) in _bfd_coff_read_string_table() 1511 (_("%B: bad string table size %lu"), abfd, (unsigned long) strsize); in _bfd_coff_read_string_table() 1516 strings = bfd_malloc (strsize); in _bfd_coff_read_string_table() 1520 if (bfd_bread (strings + STRING_SIZE_SIZE, strsize - STRING_SIZE_SIZE, abfd) in _bfd_coff_read_string_table() 1521 != strsize - STRING_SIZE_SIZE) in _bfd_coff_read_string_table()
|
| H A D | mach-o.h | 225 unsigned long strsize; member
|
| H A D | sunos.c | 372 bfd_size_type strsize = info->dyninfo.ld_symb_size; in sunos_canonicalize_dynamic_symtab() local 382 info->dynstr, strsize, TRUE)) in sunos_canonicalize_dynamic_symtab()
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/ld/ |
| H A D | elf-hints-local.h | 34 u_int32_t strsize; /* Size of string table. */ member
|
| /openbsd-src/usr.bin/mail/ |
| H A D | cmd3.c | 92 bangexp(char *str, size_t strsize) in bangexp() argument 132 (void)strlcpy(str, bangbuf, strsize); in bangexp()
|
| /openbsd-src/sys/dev/pci/drm/ |
| H A D | drm_drv.c | 1951 size_t strsize; in drm_dmamem_alloc() 1956 strsize = sizeof(*mem) + (sizeof(bus_dma_segment_t) * (nsegments - 1)); in drm_dmamem_alloc() 1957 mem = malloc(strsize, M_DRM, M_NOWAIT | M_ZERO); in drm_dmamem_alloc() 1949 size_t strsize; drm_dmamem_alloc() local
|
| /openbsd-src/gnu/llvm/lldb/examples/python/ |
| H A D | mach_o.py | 1459 self.strsize = 0 1463 self.symoff, self.nsyms, self.stroff, self.strsize = data.get_n_uint32( 1469 self.symoff, self.nsyms, self.stroff, self.strsize)
|
| /openbsd-src/gnu/llvm/llvm/lib/ObjCopy/MachO/ |
| H A D | MachOLayoutBuilder.cpp | 352 MLC.symtab_command_data.strsize = StrTableBuilder.getSize(); in layoutTail()
|
| H A D | MachOWriter.cpp | 52 Ends.push_back(SymTabCommand.stroff + SymTabCommand.strsize); in totalSize()
|
| /openbsd-src/gnu/llvm/llvm/lib/Object/ |
| H A D | MachOObjectFile.cpp | 450 BigSize += Symtab.strsize; in checkSymtabCommand() 456 Symtab.strsize, "string table")) in checkSymtabCommand() 1733 if (NValue >= S.strsize) in checkSymbolTable() 1751 if (NStrx >= S.strsize) in checkSymbolTable() 4831 Cmd.strsize = 0; in getSymtabLoadCommand() 5279 return getData().substr(S.stroff, S.strsize); in getStringTableData()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/BinaryFormat/ |
| H A D | MachO.h | 706 uint32_t strsize; member 1193 sys::swapByteOrder(lc.strsize); in swapStruct()
|
| /openbsd-src/gnu/llvm/llvm/lib/ObjectYAML/ |
| H A D | MachOYAML.cpp | 588 IO.mapRequired("strsize", LoadCommand.strsize); in mapping()
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/ObjectFile/Mach-O/ |
| H A D | ObjectFileMachO.cpp | 2364 const addr_t strtab_data_byte_size = symtab_load_command.strsize; in ParseSymtab() 5458 uint32_t strsize = size - sizeof(uint32_t); 5459 char *buf = (char *)malloc(strsize); 5461 m_data.CopyData(offset, strsize, buf); 5462 buf[strsize - 1] = '\0';
|