Lines Matching refs:csize
1158 static Void_t* win32mem(Void_t* caddr, size_t csize, size_t nsize)
1159 { /**/ ASSERT(csize > 0 || nsize > 0)
1160 if(csize == 0)
1173 static Void_t* sbrkmem(Void_t* caddr, size_t csize, size_t nsize)
1180 if(csize > 0 && addr != (Vmuchar_t*)caddr+csize)
1182 else if(csize == 0)
1185 /**/ASSERT(addr == (Vmuchar_t*)caddr+csize);
1186 if(nsize < csize)
1187 addr -= csize-nsize;
1188 else if((addr += nsize-csize) < (Vmuchar_t*)caddr )
1193 else if(nsize > csize && chkaddr(caddr, nsize) < 0 )
1194 { (void)brk((Vmuchar_t*)caddr+csize);
1225 static Void_t* mmapmem(Void_t* caddr, size_t csize, size_t nsize, Mmdisc_t* mmdc)
1243 /**/ASSERT(csize > 0 || nsize > 0);
1244 if(csize == 0)
1272 { (void)munmap(caddr, csize);
1281 static Void_t* mallocmem(Void_t* caddr, size_t csize, size_t nsize)
1283 /**/ASSERT(csize > 0 || nsize > 0);
1284 if(csize == 0)
1295 static Void_t* getmemory(Vmalloc_t* vm, Void_t* caddr, size_t csize, size_t nsize, Vmdisc_t* disc)
1299 if((csize > 0 && !caddr) || (csize == 0 && nsize == 0) )
1303 if((addr = win32mem(caddr, csize, nsize)) )
1308 if((_Vmassert & VM_break) && (addr = sbrkmem(caddr, csize, nsize)) )
1310 if(((_Vmassert & VM_break) || !(_Vmassert & VM_mmap) && !asoinit(0, 0, 0)) && (addr = sbrkmem(caddr, csize, nsize)) )
1315 if((addr = mmapmem(caddr, csize, nsize, (Mmdisc_t*)0)) )
1319 if((addr = mmapmem(caddr, csize, nsize, (Mmdisc_t*)disc)) )
1323 if(!(_Vmassert & VM_break) && (addr = sbrkmem(caddr, csize, nsize)) )
1327 if((addr = mallocmem(caddr, csize, nsize)) )