Lines Matching refs:mapsize
210 static size_t mapsize; /* amount of mapped data */
244 mapsize = bytes + (offset - mapoffset);
245 if (mapsize > MAXMAPSIZE)
246 mapsize = MAXMAPSIZE;
247 while ((mapbase = mmap((caddr_t)0, mapsize, PROT_READ,
249 errno == ENOMEM && mapsize >= MINMAPSIZE) {
254 mapsize /= 2; /* exponential back-off */
271 (void) madvise(mapbase, mapsize, MADV_SEQUENTIAL);
273 mapend = mapbase + (mapsize - 1);
311 (void) msync(mapbase, mapsize, MS_ASYNC|MS_INVALIDATE);
312 (void) munmap(mapbase, mapsize);