HomeSort by: relevance | last modified time | path
    Searched refs:mappedsize (Results 1 - 11 of 11) sorted by relevancy

  /src/lib/libc/gen/
nlist_ecoff.c 62 ((size_t)off >= mappedsize || (size_t)(off + size) > mappedsize)
73 size_t mappedsize; local in function:__fdnlist_ecoff
97 mappedsize = (size_t)st.st_size;
98 mappedfile = mmap(NULL, mappedsize, PROT_READ, MAP_PRIVATE|MAP_FILE,
121 if ((symhdroff + sizeof *symhdrp) > mappedsize ||
181 munmap(__UNCONST(mappedfile), mappedsize);
nlist_coff.c 88 size_t mappedsize; local in function:__fdnlist_coff
111 mappedsize = (size_t)st.st_size;
112 mappedfile = mmap(NULL, mappedsize, PROT_READ, MAP_PRIVATE|MAP_FILE,
122 if (mappedsize < sizeof (struct coff_filehdr))
135 if (symoff + ES_LEN * nesyms > mappedsize)
190 munmap(mappedfile, mappedsize);
nlist_elf32.c 72 #define check(off, size) (off + size > mappedsize)
96 size_t mappedsize, nsyms; local in function:ELFNAMEEND
222 mappedsize = (size_t)st.st_size;
223 mappedfile = mmap(NULL, mappedsize, PROT_READ, MAP_PRIVATE|MAP_FILE,
337 munmap(mappedfile, mappedsize);
  /src/usr.sbin/mdsetimage/
exec_aout.c 45 #define check(off, size) ((off < 0) || (off + size > mappedsize))
49 check_aout(const char *mappedfile, size_t mappedsize)
68 findoff_aout(const char *mappedfile, size_t mappedsize, u_long vmaddr,
exec_ecoff.c 45 #define check(off, size) ((off < 0) || (off + size > mappedsize))
49 check_ecoff(const char *mappedfile, size_t mappedsize)
68 findoff_ecoff(const char *mappedfile, size_t mappedsize, u_long vmaddr,
exec_coff.c 48 #define check(off, size) ((off < 0) || (off + size > mappedsize))
52 check_coff(const char *mappedfile, size_t mappedsize)
71 findoff_coff(const char *mappedfile, size_t mappedsize, u_long vmaddr,
exec_elf32.c 53 #define check(off, size) ((off < 0) || (off + size > mappedsize))
57 ELFNAMEEND(check)(const char *mappedfile, size_t mappedsize)
84 ELFNAMEEND(findoff)(const char *mappedfile, size_t mappedsize, u_long vmaddr,
bin_nlist.c 90 bin_find_md_root(void *binp, const char *mappedfile, off_t mappedsize,
100 if ((*exec_formats[i].check)(mappedfile, mappedsize) == 0)
125 if ((*exec_formats[i].findoff)(mappedfile, mappedsize,
141 if ((*exec_formats[i].findoff)(mappedfile, mappedsize,
  /src/usr.sbin/kvm_mkdb/
nlist_elf32.c 86 #define check(off, size) ((off < 0) || (off + size > mappedsize))
101 size_t mappedsize, symnamesize, fsymnamesize; variable in typeref:typename:size_t
143 mappedsize = st.st_size;
147 if (mappedsize == 0) {
152 mappedfile = mmap(NULL, mappedsize, PROT_READ,
165 mappedsize = allocsiz;
167 allocsiz = mappedsize;
169 if ((mappedfile = malloc(mappedsize)) == NULL)
172 if ((readsz = read(fd, mappedfile, mappedsize)) < 0)
175 if (readsz != mappedsize) /* Sanity *
    [all...]
nlist_coff.c 73 #define check(off, size) ((off < 0) || (off + size > mappedsize))
90 size_t mappedsize, symnamesize, fsymnamesize; local in function:create_knlist_coff
120 mappedsize = st.st_size;
121 mappedfile = mmap(NULL, mappedsize, PROT_READ, MAP_FILE|MAP_PRIVATE,
346 munmap(mappedfile, mappedsize);
nlist_ecoff.c 73 #define check(off, size) ((off < 0) || (off + size > mappedsize))
91 size_t mappedsize, symnamesize, fsymnamesize; local in function:create_knlist_ecoff
117 mappedsize = st.st_size;
118 mappedfile = mmap(NULL, mappedsize, PROT_READ, MAP_FILE|MAP_PRIVATE,
270 munmap(mappedfile, mappedsize);

Completed in 15 milliseconds