Lines Matching defs:newsize
318 size_t newsize;
334 if (err == 0 && (newsize = p->p_stksize) > oldsize) {
336 ASSERT(IS_P2ALIGNED(newsize, PAGESIZE));
341 (void) as_fault(as->a_hat, as, p->p_usrstack - newsize,
342 newsize - oldsize, F_INVAL, S_WRITE);
357 size_t len, newsize;
363 newsize = p->p_usrstack - sp;
366 pgsz = map_pgsz(MAPPGSZ_STK, p, sp, newsize, 0);
425 size_t newsize;
444 newsize = p->p_usrstack - (caddr_t)P2ALIGN((uintptr_t)sp, pgsz);
445 if (newsize > (size_t)p->p_stk_ctl) {
448 newsize = p->p_usrstack - sp;
452 newsize = p->p_usrstack - sp;
455 if (newsize > (size_t)p->p_stk_ctl) {
465 if (newsize <= oldsize) { /* prevent the stack from shrinking */
497 if ((error = as_map(p->p_as, p->p_usrstack - newsize, newsize - oldsize,
505 p->p_stksize = newsize;