/src/lib/libc/gen/ |
nlist_ecoff.c | 72 const char *mappedfile; local in function:__fdnlist_ecoff 98 mappedfile = mmap(NULL, mappedsize, PROT_READ, MAP_PRIVATE|MAP_FILE, 100 if (mappedfile == MAP_FAILED) 110 exechdrp = (const void *)mappedfile; 124 symhdrp = (const void *)&mappedfile[symhdroff]; 129 esyms = (const void *)&mappedfile[symhdrp->cbExtOffset]; 160 &mappedfile[extstroff + esyms[i].es_strindex]; 181 munmap(__UNCONST(mappedfile), mappedsize);
|
nlist_coff.c | 87 char *mappedfile; local in function:__fdnlist_coff 112 mappedfile = mmap(NULL, mappedsize, PROT_READ, MAP_PRIVATE|MAP_FILE, 114 if (mappedfile == MAP_FAILED) 124 filehdrp = (void *)&mappedfile[0]; 154 memcpy(&esym, &mappedfile[symoff + ES_LEN * i], ES_LEN); 165 symtabname = &mappedfile[extstroff + esym.es_offset]; 190 munmap(mappedfile, mappedsize);
|
nlist_elf32.c | 95 char *mappedfile, *strtab; local in function:ELFNAMEEND 223 mappedfile = mmap(NULL, mappedsize, PROT_READ, MAP_PRIVATE|MAP_FILE, 225 if (mappedfile == (char *)-1) 235 ehdrp = (Elf_Ehdr *)(void *)&mappedfile[0]; 247 shdrp = (void *)&mappedfile[(size_t)shdr_off]; 266 symp = (void *)&mappedfile[(size_t)symshdrp->sh_offset]; 268 strtab = &mappedfile[(size_t)symstrshdrp->sh_offset]; 337 munmap(mappedfile, mappedsize);
|
/src/sys/arch/atari/stand/binpatch/ |
binpatch.c | 119 char *mappedfile; local in function:main 220 if ((mappedfile = mmap(NULL, sb.st_size, 229 if ((*exec_formats[i].check)(mappedfile, sb.st_size) == 0) 243 if ((*exec_formats[i].findoff)(mappedfile, sb.st_size, 248 valp = mappedfile + valoff; 337 munmap(mappedfile, sb.st_size);
|
/src/usr.sbin/kvm_mkdb/ |
nlist_coff.c | 89 char *mappedfile, *symname, *nsymname, *fsymname; local in function:create_knlist_coff 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[vma]) [all...] |
nlist_ecoff.c | 90 char *mappedfile, *symname, *nsymname, *fsymname, *tmpcp; local in function:create_knlist_ecoff 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);
|
nlist_elf32.c | 100 char *mappedfile, *symname, *nsymname, *fsymname, *tmpcp, *strtab; variable in typeref:typename:char * 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[symstrshdrp->sh_offset] [all...] |