Lines Matching refs:mapsize
204 size_t mapsize = 0;
222 mapsize = MAXMAPSIZE;
223 if (filesize < mapsize) {
224 mapsize = filesize;
234 munmapsize = mapsize;
238 cp = mmap((caddr_t)NULL, mapsize, PROT_READ,
241 mapsize = 0; /* can't mmap today */
249 if (mapsize == 0) {
313 nbytes = write(a_dstFd, cp, mapsize);
321 if ((nbytes >= 0) && (nbytes != (ssize_t)mapsize)) {
324 remains = mapsize - nbytes;
327 (cp + mapsize - remains), remains);
331 nbytes = mapsize;
380 if (filesize < mapsize) {
381 mapsize = filesize;
386 cp = mmap(cp, mapsize, PROT_READ, (MAP_SHARED|MAP_FIXED),