/netbsd-6-1-5-RELEASE/usr.sbin/mdsetimage/ |
H A D | exec_aout.c | 52 check_aout(mappedfile, mappedsize) 53 const char *mappedfile; 63 execp = (const struct exec *)&mappedfile[0]; 73 findoff_aout(mappedfile, mappedsize, vmaddr, fileoffp) 74 const char *mappedfile; 82 execp = (const struct exec *)&mappedfile[0];
|
H A D | exec_ecoff.c | 49 check_ecoff(mappedfile, mappedsize) 50 const char *mappedfile; 60 exechdrp = (const struct ecoff_exechdr *)&mappedfile[0]; 70 findoff_ecoff(mappedfile, mappedsize, vmaddr, fileoffp) 71 const char *mappedfile; 79 exechdrp = (const struct ecoff_exechdr *)&mappedfile[0];
|
H A D | exec_elf32.c | 57 ELFNAMEEND(check)(mappedfile, mappedsize) 58 const char *mappedfile; 68 ehdrp = (const Elf_Ehdr *)&mappedfile[0]; 86 ELFNAMEEND(findoff)(mappedfile, mappedsize, vmaddr, fileoffp) 87 const char *mappedfile; 104 ehdrp = (const Elf_Ehdr *)&mappedfile[0]; 111 phdrp = (const Elf_Phdr *)&mappedfile[phdr_off];
|
H A D | exec_coff.c | 52 check_coff(mappedfile, mappedsize) 53 const char *mappedfile; 63 exechdrp = (const struct coff_exechdr *)&mappedfile[0]; 73 findoff_coff(mappedfile, mappedsize, vmaddr, fileoffp) 74 const char *mappedfile; 82 exechdrp = (const struct coff_exechdr *)&mappedfile[0];
|
H A D | mdsetimage.c | 215 find_md_root(fname, mappedfile, mappedsize, nl, rootoffp, rootsizep) 216 const char *fname, *mappedfile; 227 if ((*exec_formats[i].check)(mappedfile, mappedsize) == 0) 245 if ((*exec_formats[i].findoff)(mappedfile, mappedsize, 255 *rootsizep = *(const u_int32_t *)&mappedfile[rootsizeoff]; 260 if ((*exec_formats[i].findoff)(mappedfile, mappedsize,
|
/netbsd-6-1-5-RELEASE/lib/libc/gen/ |
H A D | nlist_ecoff.c | 75 char *mappedfile; local 101 mappedfile = mmap(NULL, mappedsize, PROT_READ, MAP_PRIVATE|MAP_FILE, 103 if (mappedfile == (char *)-1) 113 exechdrp = (struct ecoff_exechdr *)&mappedfile[0]; 127 symhdrp = (struct ecoff_symhdr *)&mappedfile[symhdroff]; 132 esyms = (struct ecoff_extsym *)&mappedfile[symhdrp->cbExtOffset]; 163 &mappedfile[extstroff + esyms[i].es_strindex]; 184 munmap(mappedfile, mappedsize);
|
H A D | nlist_coff.c | 91 char *mappedfile; local 116 mappedfile = mmap(NULL, mappedsize, PROT_READ, MAP_PRIVATE|MAP_FILE, 118 if (mappedfile == (char *)-1) 128 filehdrp = (struct coff_filehdr *)&mappedfile[0]; 158 memcpy(&esym, &mappedfile[symoff + ES_LEN * i], ES_LEN); 169 symtabname = &mappedfile[extstroff + esym.es_offset]; 194 munmap(mappedfile, mappedsize);
|
H A D | nlist_elf32.c | 82 char *mappedfile, *strtab; local 192 mappedfile = mmap(NULL, mappedsize, PROT_READ, MAP_PRIVATE|MAP_FILE, 194 if (mappedfile == (char *)-1) 204 ehdrp = (Elf_Ehdr *)(void *)&mappedfile[0]; 216 shdrp = (Elf_Shdr *)(void *)&mappedfile[shdr_off]; 235 symp = (Elf_Sym *)(void *)&mappedfile[symshdrp->sh_offset]; 237 strtab = &mappedfile[symstrshdrp->sh_offset]; 306 munmap(mappedfile, mappedsize);
|
/netbsd-6-1-5-RELEASE/usr.sbin/kvm_mkdb/ |
H A D | nlist_elf32.c | 100 char *mappedfile, *symname, *nsymname, *fsymname, *tmpcp, *strtab; local 142 mappedfile = MAP_FAILED; 152 mappedfile = mmap(NULL, mappedsize, PROT_READ, 159 if (mappedfile == MAP_FAILED) { 169 if ((mappedfile = malloc(mappedsize)) == NULL) 172 if ((readsz = read(fd, mappedfile, mappedsize)) < 0) 185 ehdrp = (Elf_Ehdr *)&mappedfile[0]; 213 shdrp = (Elf_Shdr *)&mappedfile[shdr_off]; 231 symp = (Elf_Sym *)&mappedfile[symshdrp->sh_offset]; 233 strtab = &mappedfile[symstrshdr [all...] |
H A D | nlist_coff.c | 89 char *mappedfile, *symname, *nsymname, *fsymname; local 121 mappedfile = mmap(NULL, mappedsize, PROT_READ, MAP_FILE|MAP_PRIVATE, 123 if (mappedfile == (char *)-1) 133 filehdrp = (struct coff_filehdr *)&mappedfile[0]; 144 &mappedfile[sizeof(struct coff_filehdr)]; 192 syment = (struct external_syment *)&mappedfile[symhdroff + 217 fsymname = &mappedfile[extrstroff+soff]; 291 &mappedfile[COFF_HDR_SIZE+ 304 &mappedfile[COFF_HDR_SIZE+ 317 data.data = strdup(&mappedfile[vm [all...] |
H A D | nlist_ecoff.c | 90 char *mappedfile, *symname, *nsymname, *fsymname, *tmpcp; local 118 mappedfile = mmap(NULL, mappedsize, PROT_READ, MAP_FILE|MAP_PRIVATE, 120 if (mappedfile == (char *)-1) 130 exechdrp = (struct ecoff_exechdr *)&mappedfile[0]; 150 symhdrp = (struct ecoff_symhdr *)&mappedfile[symhdroff]; 155 esyms = (struct ecoff_extsym *)&mappedfile[symhdrp->cbExtOffset]; 186 fsymname = &mappedfile[extrstroff + esyms[i].es_strindex]; 246 data.data = strdup(&mappedfile[vma]); 270 munmap(mappedfile, mappedsize);
|
/netbsd-6-1-5-RELEASE/sys/arch/atari/stand/binpatch/ |
H A D | binpatch.c | 130 char *mappedfile; local 236 if ((mappedfile = mmap(NULL, sb.st_size, 245 if ((*exec_formats[i].check)(mappedfile, sb.st_size) == 0) 261 if ((*exec_formats[i].findoff)(mappedfile, sb.st_size, 266 valp = mappedfile + valoff; 355 munmap(mappedfile, sb.st_size);
|