HomeSort by: relevance | last modified time | path
    Searched defs:mappedfile (Results 1 - 7 of 7) sorted by relevancy

  /src/lib/libc/gen/
nlist_ecoff.c 73 const char *mappedfile; local
99 mappedfile = mmap(NULL, mappedsize, PROT_READ, MAP_PRIVATE|MAP_FILE,
101 if (mappedfile == MAP_FAILED)
111 exechdrp = (const void *)mappedfile;
125 symhdrp = (const void *)&mappedfile[symhdroff];
130 esyms = (const void *)&mappedfile[symhdrp->cbExtOffset];
161 &mappedfile[extstroff + esyms[i].es_strindex];
182 munmap(__UNCONST(mappedfile), mappedsize);
nlist_coff.c 89 char *mappedfile; local
114 mappedfile = mmap(NULL, mappedsize, PROT_READ, MAP_PRIVATE|MAP_FILE,
116 if (mappedfile == MAP_FAILED)
126 filehdrp = (void *)&mappedfile[0];
156 memcpy(&esym, &mappedfile[symoff + ES_LEN * i], ES_LEN);
167 symtabname = &mappedfile[extstroff + esym.es_offset];
192 munmap(mappedfile, mappedsize);
nlist_elf32.c 95 char *mappedfile, *strtab; local
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
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
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
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; 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[symstrshdrp->sh_offset]
    [all...]

Completed in 49 milliseconds