Lines Matching refs:mapbase
208 static caddr_t mapbase; /* base of mapped data */ variable
235 mapbase = mapend = (caddr_t)0;
247 while ((mapbase = mmap((caddr_t)0, mapsize, PROT_READ,
257 if (mapbase == (caddr_t)-1) {
267 mapbase = (caddr_t)0;
271 (void) madvise(mapbase, mapsize, MADV_SEQUENTIAL);
272 mapstart = mapbase + (offset - mapoffset);
273 mapend = mapbase + (mapsize - 1);
286 for (p = mapbase; !caught && p <= mapend; p += stride) {
309 if (mapbase) { in unmapfile()
311 (void) msync(mapbase, mapsize, MS_ASYNC|MS_INVALIDATE); in unmapfile()
312 (void) munmap(mapbase, mapsize); in unmapfile()
313 mapbase = (caddr_t)0; in unmapfile()