| /src/external/bsd/libarchive/dist/libarchive/test/ |
| test_write_format_ar.c | 32 static char strtab[] = "abcdefghijklmn.o/\nggghhhjjjrrrttt.o/\niiijjjdddsssppp.o/\n"; variable 50 archive_entry_set_size(ae, strlen(strtab)); 52 assertA(strlen(strtab) == (size_t)archive_write_data(a, strtab, strlen(strtab)));
|
| /src/lib/libc/gen/ |
| nlist_aout.c | 98 char *strtab; local 130 strtab = mmap(NULL, strsize, PROT_READ, MAP_PRIVATE|MAP_FILE, 132 if (strtab == (char *)-1) 176 !strcmp(&strtab[(size_t)soff], 188 munmap(strtab, strsize);
|
| nlist_elf32.c | 95 char *mappedfile, *strtab; local 268 strtab = &mappedfile[(size_t)symstrshdrp->sh_offset]; 297 symtabname = &strtab[symp[i].st_name];
|
| /src/external/gpl3/binutils/dist/ld/ |
| elf-hints-local.h | 35 uint32_t strtab; /* Offset of string table in file. */ member in struct:elfhints_hdr
|
| ldelfgen.c | 360 struct elf_strtab_hash *strtab; member in struct:ctf_strtab_iter_cb_arg 365 /* Return strings from the strtab to libctf, one by one. Returns NULL when 385 if (arg->next_i >= bfd_elf_strtab_len (arg->strtab)) 391 ret = bfd_elf_strtab_str (arg->strtab, arg->next_i++, &off); 407 (struct ctf_dict *ctf_output, struct elf_strtab_hash *strtab) 409 struct ctf_strtab_iter_cb_arg args = { strtab, 0, 0 }; 417 fatal (_("%P: warning: CTF strtab association failed; strings will " 468 struct elf_strtab_hash *strtab ATTRIBUTE_UNUSED)
|
| /src/external/gpl3/binutils.old/dist/ld/ |
| elf-hints-local.h | 35 uint32_t strtab; /* Offset of string table in file. */ member in struct:elfhints_hdr
|
| ldelfgen.c | 362 struct elf_strtab_hash *strtab; member in struct:ctf_strtab_iter_cb_arg 367 /* Return strings from the strtab to libctf, one by one. Returns NULL when 387 if (arg->next_i >= _bfd_elf_strtab_len (arg->strtab)) 393 ret = _bfd_elf_strtab_str (arg->strtab, arg->next_i++, &off); 409 (struct ctf_dict *ctf_output, struct elf_strtab_hash *strtab) 411 struct ctf_strtab_iter_cb_arg args = { strtab, 0, 0 }; 419 fatal (_("%P: warning: CTF strtab association failed; strings will " 470 struct elf_strtab_hash *strtab ATTRIBUTE_UNUSED)
|
| /src/libexec/ld.elf_so/ |
| symver.c | 113 &obj->strtab[needed->name])); 114 if (strcmp(name, &obj->strtab[needed->name]) == 0 || 136 const char *vername = &refobj->strtab[vna->vna_name]; 137 const char *depstrtab = depobj->strtab; 177 const char *strtab = obj->strtab; local 191 if (strtab == NULL || obj->vertab != NULL) 213 vn->vn_file, &strtab[vn->vn_file])); 214 depobj = locate_dependency(obj, &strtab[vn->vn_file]); 285 obj->vertab[vernum].name = &strtab[vna->vna_name] [all...] |
| /src/sys/sys/ |
| kern_ctf.h | 46 const char *strtab; /* Ptr to the string table. */ member in struct:mod_ctf
|
| /src/external/cddl/osnet/dist/tools/ctf/cvt/ |
| strtab.h | 46 typedef struct strtab { struct 53 ulong_t str_nstrs; /* total number of strings in strtab */
|
| /src/usr.sbin/kvm_mkdb/ |
| nlist_aout.c | 116 char *strtab, buf[1024]; local 157 if (!(strtab = malloc(strsize))) { 161 if ((nr = read(fd, strtab, strsize)) != strsize) 191 key.data = (u_char *)strtab + nbuf._strx - sizeof(long);
|
| nlist_elf32.c | 100 char *mappedfile, *symname, *nsymname, *fsymname, *tmpcp, *strtab; local 233 strtab = &mappedfile[symstrshdrp->sh_offset]; 269 fsymname = &strtab[symp[i].st_name];
|
| /src/sys/ddb/ |
| db_elf.c | 244 char *strtab; local 251 strtab = db_elf_find_strtab(stab); 252 if (strtab == NULL) 257 db_eqname(strtab + symp->st_name, symstr, 0)) 339 char *strtab; local 344 strtab = db_elf_find_strtab(symtab); 345 if (strtab == NULL) 348 *namep = strtab + symp->st_name; 387 char *strtab; local 396 strtab = db_elf_find_strtab(stab) [all...] |
| /src/external/gpl3/binutils/dist/libctf/ |
| ctf-open-bfd.c | 111 const char *strtab = NULL; local 132 strtab_name = ".strtab"; 138 /* Get the symtab, and the strtab associated with it. */ 165 if ((strtab = bfd_elf_get_str_section (abfd, symhdr->sh_link)) == NULL) 172 strtab = (const char *) strhdr->contents; 175 else /* No symtab: just try getting .strtab or .dynstr by name. */ 184 strtab = (const char *) str_bcontents; 191 if (strtab) 197 strsect.cts_data = strtab;
|
| ctf-string.c | 29 using an explicit internal provisional strtab rather than the fp-based 32 ctf_strraw_explicit (ctf_dict_t *fp, uint32_t name, ctf_strs_t *strtab) 36 if ((CTF_NAME_STID (name) == CTF_STRTAB_0) && (strtab != NULL)) 37 ctsp = strtab; 39 /* If this name is in the external strtab, and there is a synthetic 40 strtab, use it in preference. (This is used to add the set of strings 41 -- symbol names, etc -- the linker knows about before the strtab is 49 /* If the name is in the internal strtab, and the name offset is beyond 52 real strtab: get the value out of the ctf_prov_strtab. */ 148 string: but also pull in atoms from the internal strtab. (We rely o 650 ctf_strs_writable_t *strtab; local [all...] |
| /src/external/gpl3/binutils.old/dist/libctf/ |
| ctf-open-bfd.c | 111 const char *strtab = NULL; local 132 strtab_name = ".strtab"; 138 /* Get the symtab, and the strtab associated with it. */ 165 if ((strtab = bfd_elf_get_str_section (abfd, symhdr->sh_link)) == NULL) 172 strtab = (const char *) strhdr->contents; 175 else /* No symtab: just try getting .strtab or .dynstr by name. */ 184 strtab = (const char *) str_bcontents; 191 if (strtab) 197 strsect.cts_data = strtab;
|
| /src/external/gpl3/gcc.old/dist/gcc/ |
| ctfc.cc | 75 ctf_strtable_t * strtab = ctfc_get_strtab (ctfc, aux); local 76 return strtab->ctstab_len; 920 init_ctf_strtable (ctf_strtable_t * strtab) 922 strtab->ctstab_head = NULL; 923 strtab->ctstab_tail = NULL; 924 strtab->ctstab_num = 0; 925 strtab->ctstab_len = 0; 931 strtab->ctstab_estr = ctfc_strtable_add_str (strtab, "", &estr_offset); 978 ctfc_delete_strtab (ctf_strtable_t * strtab) [all...] |
| /src/lib/librumpuser/ |
| rumpuser_dl.c | 70 static char *strtab = NULL; variable 195 * Find symtab and strtab and their sizes. 285 fprintf(stderr, "could not find strtab, symtab or their sizes " 298 strtab = reservespace(strtab, &strtabsize, strtaboff, curstrsize); 299 if (symtab == NULL || strtab == NULL) { 335 * set name to point at new strtab, offset symbol value 344 strcpy(strtab + strtaboff, cursymname); 472 memcpy(trimmedstr, strtab, strtaboff); 474 trimmedstr = strtab; [all...] |
| /src/sbin/ldconfig/ |
| ldconfig.c | 378 char *strtab; local 414 strtab = (char *)xmalloc(strtab_sz); 440 strcpy(strtab + str_index, shp->name); 444 strcpy(strtab + str_index, shp->path); 453 strcpy(strtab + str_index, dir_list); 477 if (write(fd, strtab, strtab_sz) != strtab_sz) { 502 free(strtab); 508 free(strtab); 520 char *strtab; local 563 strtab = ((char *)addr + hdr->hh_strtab) [all...] |
| /src/sys/arch/amd64/stand/prekern/ |
| elf.c | 43 char *strtab; member in struct:elfinfo 113 buf = eif.strtab + sym->st_name; 157 buf = eif.strtab + sym->st_name; 409 fatal("elf_build_info: wrong strtab index"); 412 fatal("elf_build_info: wrong strtab type"); 415 fatal("elf_build_info: strtab not loaded"); 417 eif.strtab = (char *)((uint8_t *)eif.ehdr + eif.shdr[j].sh_offset);
|
| /src/sys/arch/amiga/stand/bootblock/elf2bb/ |
| elf2bb.c | 100 char *strtab; local 164 strtab = NULL; /* XXX */ 199 } else if (strcmp(".strtab", shstrtab + 201 strtab = image + be32toh(sh[i].sh_offset); 338 strtab + be32toh(s->st_name));
|
| /src/sys/external/bsd/libfdt/dist/ |
| fdt_rw.c | 119 char *strtab = (char *)fdt + fdt_off_dt_strings(fdt); local 127 p = fdt_find_string_(strtab, fdt_size_dt_strings(fdt), s); 130 return (p - strtab); 132 new = strtab + fdt_size_dt_strings(fdt); 140 return (new - strtab);
|
| fdt_sw.c | 246 char *strtab = (char *)fdt + fdt_totalsize(fdt); local 256 memcpy(strtab + offset, s, len); 272 char *strtab = (char *)fdt + fdt_totalsize(fdt); local 278 p = fdt_find_string_(strtab - strtabsize, strtabsize, s); 280 return p - strtab;
|
| /src/external/bsd/libarchive/dist/libarchive/ |
| archive_read_support_format_ar.c | 60 char *strtab; member in struct:ar 112 ar->strtab = NULL; 140 free(ar->strtab); 271 if (ar->strtab != NULL) { 284 ar->strtab = st; 316 if (ar->strtab == NULL || number >= ar->strtab_size) { 325 archive_entry_copy_pathname(entry, &ar->strtab[(size_t)number]); 560 for (p = ar->strtab; p < ar->strtab + size - 1; ++p) { 572 if (p != ar->strtab + size && *p != '\n' && *p != '`' [all...] |
| archive_write_set_format_ar.c | 52 char *strtab; member in struct:ar_w 203 * collect strtab in next _data call. 259 ss = strstr(ar->strtab, se); 274 if (format_decimal(ss - ar->strtab, 382 ar->strtab = malloc(s + 1); 383 if (ar->strtab == NULL) { 385 "Can't allocate strtab buffer"); 388 memcpy(ar->strtab, buff, s); 389 ar->strtab[s] = '\0'; 412 free(ar->strtab); [all...] |