Searched refs:mapsize (Results 1 - 3 of 3) sorted by relevance

/ast/src/lib/libast/port/
H A Dastcopy.c56 off_t mapsize; local
70 mapsize = st.st_size - pos;
71 if (mapsize > MAPSIZE) mapsize = (mapsize > n && n > 0) ? n : MAPSIZE;
72 if (mapsize >= BUFSIZ * 2 && (mapbuf = (char*)mmap(NiL, mapsize, PROT_READ, MAP_SHARED, rfd, pos)) != ((caddr_t)-1))
74 if (write(wfd, mapbuf, mapsize) != mapsize || lseek(rfd, mapsize,
[all...]
/ast/src/cmd/3d/
H A Dcopy.c65 size_t mapsize; local
74 mapsize = (filesize < COPYMAP) ? filesize : COPYMAP;
75 if ((filesize > COPYBUF) && ((mapbuf = mmap((caddr_t)0, mapsize, PROT_READ, MAP_SHARED, rfd, 0)) != ((caddr_t)-1)))
78 munmapsize = mapsize;
81 if (write(wfd, mapbuf, mapsize) != mapsize)
86 filesize -= mapsize;
88 offset += mapsize;
89 if (filesize < mapsize) mapsize
[all...]
/ast/src/lib/libast/disc/
H A Dsfdcdos.c43 int mapsize; member in struct:_dosdisc
67 if((n=dp->maptop++)>=dp->mapsize)
69 dp->mapsize *= 2;
70 if(!(dp->maptable=(struct map*)realloc((void*)dp->maptable,(dp->mapsize+1)*sizeof(struct map))))
73 dp->mapsize *= 2;
175 dp->mapsize = MINMAP;
381 if(dp->mapsize)

Completed in 10 milliseconds