| /src/sys/arch/sun3/sun3x/ |
| locore2.c | 99 Elf_Shdr *shp; local 119 shp = (Elf_Shdr *)(end + ehdr->e_shoff); 121 if (shp[i].sh_type != SHT_SYMTAB && 122 shp[i].sh_type != SHT_STRTAB) { 125 minsym = uimin(minsym, (vaddr_t)end + shp[i].sh_offset); 126 maxsym = uimax(maxsym, (vaddr_t)end + shp[i].sh_offset + 127 shp[i].sh_size);
|
| /src/sys/lib/libsa/ |
| lookup_elf32.c | 50 Elf_Shdr *shp; local 68 shp = (Elf_Shdr *)((char *)sstab + elf->e_shoff); 70 if (shp[i].sh_type != SHT_SYMTAB) 72 if (shp[i].sh_offset == 0) 74 symtab_start = (Elf_Sym*)((char*)sstab + shp[i].sh_offset); 75 symtab_end = (Elf_Sym*)((char*)sstab + shp[i].sh_offset 76 + shp[i].sh_size); 77 j = shp[i].sh_link; 78 if (shp[j].sh_offset == 0) 80 strtab_start = (char*)sstab + shp[j].sh_offset [all...] |
| loadfile_elf32.c | 512 Elf_Shdr *shp; local 526 shp = ALLOC(sz); 527 ret = ELFNAMEEND(readfile_local)(fd, elf->e_shoff, shp, sz); 537 internalize_shdr(elf->e_ident[EI_DATA], &shp[i]); 544 Elf_Off shstroff = shp[elf->e_shstrndx].sh_offset; 545 shstrsz = shp[elf->e_shstrndx].sh_size; 560 shp[elf->e_shstrndx].sh_offset = maxp - elfp; 577 switch (shp[i].sh_type) { 581 if (strncmp(&shstr[shp[i].sh_name], 587 shp[i].sh_offset = 0 [all...] |
| /src/sys/arch/atari/stand/tostools/libtos/ |
| elf.c | 171 Elf32_Shdr *shp; local 181 if (read(fd, p, nhdrs * sizeof(*shp)) != nhdrs * sizeof(*shp)) 183 shp = (Elf32_Shdr*)p; 184 p += nhdrs * sizeof(*shp); 186 if (shp[i].sh_type == SHT_SYMTAB) { 187 if (shp[i].sh_offset == 0) 191 if (lseek(fd, (off_t)shp[i].sh_offset, SEEK_SET) != 192 shp[i].sh_offset) 195 if (read(fd, p, shp[i].sh_size) != shp[i].sh_size [all...] |
| /src/sys/arch/sun2/sun2/ |
| locore2.c | 115 Elf_Shdr *shp; local 135 shp = (Elf_Shdr *)(end + ehdr->e_shoff); 137 if (shp[i].sh_type != SHT_SYMTAB && 138 shp[i].sh_type != SHT_STRTAB) { 141 minsym = uimin(minsym, (vaddr_t)end + shp[i].sh_offset); 142 maxsym = uimax(maxsym, (vaddr_t)end + shp[i].sh_offset + 143 shp[i].sh_size);
|
| /src/sys/arch/sun3/sun3/ |
| locore2.c | 119 Elf_Shdr *shp; local 139 shp = (Elf_Shdr *)(end + ehdr->e_shoff); 141 if (shp[i].sh_type != SHT_SYMTAB && 142 shp[i].sh_type != SHT_STRTAB) { 145 minsym = uimin(minsym, (vaddr_t)end + shp[i].sh_offset); 146 maxsym = uimax(maxsym, (vaddr_t)end + shp[i].sh_offset + 147 shp[i].sh_size);
|
| /src/sys/arch/zaurus/stand/zbsdmod/ |
| zbsdmod.c | 90 static Elf_Shdr *shp; variable 176 shp = (Elf_Shdr *)((vaddr_t)elf + elf->e_shoff); 188 if (shp[i].sh_type == SHT_SYMTAB) 191 if (shp[i].sh_type == SHT_SYMTAB || 192 shp[i].sh_type == SHT_STRTAB) { 194 sz = shp[i].sh_size; 199 shp[i].sh_offset)[sz]; 202 maxv += roundup(shp[i].sh_size, sizeof(long)); 203 shp[i].sh_offset = off; 204 off += roundup(shp[i].sh_size, sizeof(long)) [all...] |
| /src/sys/ddb/ |
| db_elf.c | 110 Elf_Shdr *shp; local 160 shp = (Elf_Shdr *)((char *)symtab + elf->e_shoff); 162 if (shp[i].sh_type == SHT_SYMTAB) { 163 if (shp[i].sh_offset == 0) 167 shp[i].sh_offset); 169 shp[i].sh_offset + shp[i].sh_size); 171 j = shp[i].sh_link; 172 if (shp[j].sh_offset == 0) 174 strtab_start = (char *)symtab + shp[j].sh_offset 216 Elf_Shdr *shp = STAB_TO_SHDR(stab, elf); local [all...] |
| /src/external/gpl3/gcc/dist/gcc/ |
| genhooks.cc | 118 struct s_hook *shp; local 124 shp = XNEW (struct s_hook); 125 shp->name = upstrdup (buf); 126 shp->pos = -1; 127 p = htab_find_slot (start_hooks, shp, INSERT); 129 fatal ("Duplicate placement for hook %s\n", shp->name); 130 *(struct s_hook **) p = shp; 136 struct s_hook sh, *shp; local 145 shp = (struct s_hook *) p; 146 if (shp->pos >= 0 164 struct s_hook sh, *shp; local [all...] |
| /src/external/gpl3/gcc.old/dist/gcc/ |
| genhooks.cc | 115 struct s_hook *shp; local 121 shp = XNEW (struct s_hook); 122 shp->name = upstrdup (buf); 123 shp->pos = -1; 124 p = htab_find_slot (start_hooks, shp, INSERT); 126 fatal ("Duplicate placement for hook %s\n", shp->name); 127 *(struct s_hook **) p = shp; 133 struct s_hook sh, *shp; local 142 shp = (struct s_hook *) p; 143 if (shp->pos >= 0 161 struct s_hook sh, *shp; local [all...] |
| /src/sbin/ldconfig/ |
| ldconfig.c | 304 struct shlib_list *shp; local 306 for (shp = shlib_head; shp; shp = shp->next) { 307 if (strcmp(name, shp->name) != 0 || major != shp->major) 311 if (cmpndewey(dewey, ndewey, shp->dewey, shp->ndewey) > 0) { 316 shp->name, shp->major, shp->minor 377 struct shlib_list *shp; local 521 struct shlib_list *shp; local 605 struct shlib_list *shp; local [all...] |
| /src/sys/arch/next68k/next68k/ |
| nextrom.c | 142 Elf_Shdr *shp; local 183 shp = (Elf_Shdr *)(reloc_end + ehdr->e_shoff); 185 if (shp[i].sh_type != SHT_SYMTAB && 186 shp[i].sh_type != SHT_STRTAB) { 189 minsym = MIN(minsym, (vaddr_t)reloc_end + shp[i].sh_offset); 190 maxsym = MAX(maxsym, (vaddr_t)reloc_end + shp[i].sh_offset + 191 shp[i].sh_size);
|
| /src/external/cddl/osnet/dist/lib/libctf/common/ |
| ctf_lib.c | 394 const GElf_Shdr *shp = &sp[i]; local 395 const GElf_Shdr *lhp = &sp[shp->sh_link]; 397 if (shp->sh_link >= shnum) 400 if (shp->sh_name >= sp[shstrndx].sh_size || 404 if (shp->sh_type == SHT_PROGBITS && 405 strcmp(strs + shp->sh_name, _CTF_SECTION) == 0) { 406 ctfsect.cts_name = strs + shp->sh_name; 407 ctfsect.cts_type = shp->sh_type; 408 ctfsect.cts_flags = shp->sh_flags; 409 ctfsect.cts_size = shp->sh_size [all...] |
| /src/bin/csh/ |
| dir.c | 107 struct stat swd, shp; local 113 stat(ecp, &swd) != -1 && stat(short2str(hp), &shp) != -1 && 114 swd.st_dev == shp.st_dev && swd.st_ino == shp.st_ino) 123 if (stat(cwd, &shp) != -1 && swd.st_dev == shp.st_dev && 124 swd.st_ino == shp.st_ino)
|
| /src/sys/arch/luna68k/luna68k/ |
| machdep.c | 301 Elf_Shdr *shp; local 322 shp = (Elf_Shdr *)(hdr + ehdr->e_shoff); 324 if (shp[i].sh_type != SHT_SYMTAB && 325 shp[i].sh_type != SHT_STRTAB) { 328 maxsym = uimax(maxsym, shp[i].sh_offset + shp[i].sh_size);
|
| /src/external/gpl2/gmake/dist/ |
| variable.c | 748 struct variable *shp = lookup_variable (shell_str, shlen); 750 if (!shp) 739 struct variable *shp = lookup_variable (shell_str, shlen); local
|
| /src/sys/arch/mac68k/mac68k/ |
| machdep.c | 859 Elf_Shdr *shp; local 992 shp = (Elf_Shdr *)(end + ehdr->e_shoff); 994 if (shp[i].sh_type != SHT_SYMTAB && 995 shp[i].sh_type != SHT_STRTAB) { 998 minsym = MIN(minsym, (vaddr_t)end + shp[i].sh_offset);
|
| /src/external/bsd/file/dist/src/ |
| cdf.c | 1000 const cdf_section_header_t *shp; local 1010 shp = CAST(const cdf_section_header_t *, 1012 if (cdf_check_stream_offset(sst, h, shp, sizeof(*shp), __LINE__) == -1) 1014 sh.sh_len = CDF_TOLE4(shp->sh_len); 1020 if (cdf_check_stream_offset(sst, h, shp, sh.sh_len, __LINE__) == -1) 1023 sh.sh_properties = CDF_TOLE4(shp->sh_properties); 1034 e = CAST(const uint8_t *, cdf_offset(shp, sh.sh_len));
|
| /src/external/cddl/osnet/dist/lib/libdtrace/common/ |
| dt_link.c | 520 Elf32_Shdr *shp; local 575 shp = &elf_file.shdr[ESHDR_SHSTRTAB]; 576 shp->sh_name = 1; /* DTRACE_SHSTRTAB32[1] = ".shstrtab" */ 577 shp->sh_type = SHT_STRTAB; 578 shp->sh_offset = off; 579 shp->sh_size = sizeof (DTRACE_SHSTRTAB32); 580 shp->sh_addralign = sizeof (char); 581 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 8); 583 shp = &elf_file.shdr[ESHDR_DOF] 669 Elf64_Shdr *shp; local [all...] |
| /src/sys/fs/nfs/server/ |
| nfs_nfsdstate.c | 492 struct nfssessionhash *shp; local 535 shp = NFSSESSIONHASH(nd->nd_sessionid); 536 NFSLOCKSESSION(shp); 540 NFSUNLOCKSESSION(shp); 632 shp = NFSSESSIONHASH(nsep->sess_sessionid); 634 NFSLOCKSESSION(shp); 635 LIST_INSERT_HEAD(&shp->list, nsep, sess_hash); 638 NFSUNLOCKSESSION(shp); 5778 struct nfssessionhash *shp; local 5782 shp = NFSSESSIONHASH(nd->nd_sessionid) 5840 struct nfssessionhash *shp; local 5871 struct nfssessionhash *shp; local 5893 struct nfssessionhash *shp; local 5929 struct nfssessionhash *shp; local [all...] |
| /src/external/gpl3/gcc/dist/gcc/fortran/ |
| intrinsic.cc | 1349 *r = "r", *s = "s", *set = "set", *sh = "shift", *shp = "shape", local 2898 src, BT_REAL, dr, REQUIRED, shp, BT_INTEGER, ii, REQUIRED,
|
| /src/external/gpl3/gcc.old/dist/gcc/fortran/ |
| intrinsic.cc | 1348 *r = "r", *s = "s", *set = "set", *sh = "shift", *shp = "shape", local 2897 src, BT_REAL, dr, REQUIRED, shp, BT_INTEGER, ii, REQUIRED,
|
| /src/external/bsd/tcpdump/dist/ |
| print-decnet.c | 821 const struct seghdr *shp = (const struct seghdr *)nspp; local 827 ack = GET_LE_U_2(shp->sh_seq[0]); 836 ack = GET_LE_U_2(shp->sh_seq[1]); 845 ack = GET_LE_U_2(shp->sh_seq[2]); 854 const struct seghdr *shp = (const struct seghdr *)nspp; local 860 ack = GET_LE_U_2(shp->sh_seq[0]); 869 ack = GET_LE_U_2(shp->sh_seq[1]); 878 ack = GET_LE_U_2(shp->sh_seq[2]); 887 const struct seghdr *shp = (const struct seghdr *)nspp; local 895 ack = GET_LE_U_2(shp->sh_seq[0]) [all...] |
| /src/external/cddl/osnet/dist/cmd/zdb/ |
| zdb.c | 242 spa_history_phys_t *shp = data; local 244 if (shp == NULL) 248 (u_longlong_t)shp->sh_pool_create_len); 250 (u_longlong_t)shp->sh_phys_max_off); 252 (u_longlong_t)shp->sh_bof); 254 (u_longlong_t)shp->sh_eof); 256 (u_longlong_t)shp->sh_records_lost);
|