| /onnv-gate/usr/src/cmd/zic/ |
| H A D | ialloc.c | 34 register int oldsize, newsize; local 38 oldsize = 0; 41 else oldsize = strlen(old); 42 if ((result = irealloc(old, oldsize + newsize + 1)) != NULL) 44 (void) strcpy(result + oldsize, new);
|
| /onnv-gate/usr/src/lib/libbc/libc/gen/common/ |
| H A D | malloc.c | 708 shrink(Dblk oldblk, uint oldsize, uint newsize) in shrink() argument 711 if (oldsize - newsize >= SMALLEST_BLK) { in shrink() 717 remainder->size = oldsize - newsize; in shrink() 760 uint oldsize; in realloc() local 795 oldsize = oldblk->size; in realloc() 796 if (badblksize(oldblk,oldsize)) { in realloc() 798 oldsize, oldblk); in realloc() 801 oldneighbor = nextblk(oldblk,oldsize); in realloc() 804 if (reclaim(oldblk, oldsize, 1) == -1) { in realloc() 826 if (oldsize >= newsize) { in realloc() [all …]
|
| /onnv-gate/usr/src/stand/lib/sa/ |
| H A D | malloc.c | 66 size_t oldsize; in realloc() local 70 oldsize = ((size_t *)oldaddr)[-1]; in realloc() 72 bcopy(oldaddr, addr, (oldsize > size ? oldsize : size)); in realloc()
|
| /onnv-gate/usr/src/lib/libnisdb/ |
| H A D | db_index.cc | 118 get_next_hashsize(long unsigned oldsize) in get_next_hashsize() argument 121 if (oldsize == 0) in get_next_hashsize() 125 if (oldsize == newsize) { in get_next_hashsize() 130 newsize = oldsize * 2 + 1; /* just double */ in get_next_hashsize() 144 long unsigned oldsize = table_size, i; in grow() local 156 table_size = oldsize; in grow() 167 table_size = oldsize; in grow() 174 for (i = 0; i < oldsize; i++) { in grow()
|
| H A D | db_table.cc | 105 get_new_table_size(long unsigned oldsize) in get_new_table_size() argument 108 if (oldsize == 0) in get_new_table_size() 112 if (oldsize == newsize) { in get_new_table_size() 117 newsize = oldsize + DB_TABLE_GROWTH_INCREMENT; in get_new_table_size() 431 long oldsize = table_size; in grow() local 435 table_size = get_new_table_size(oldsize); in grow() 442 table_size = oldsize; in grow() 453 table_size = oldsize; in grow() 467 db_status stat = allocateExpire(oldsize, table_size); in grow() 471 table_size = oldsize; in grow() [all …]
|
| /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/x2p/ |
| H A D | hash.c | 136 int oldsize = tb->tbl_max + 1; in hsplit() local 137 register int newsize = oldsize * 2; in hsplit() 145 memset(&a[oldsize], 0, oldsize * sizeof(HENT*)); /* zero second half */ in hsplit() 149 for (i=0; i<oldsize; i++,a++) { in hsplit() 152 b = a+oldsize; in hsplit()
|
| /onnv-gate/usr/src/uts/common/fs/tmpfs/ |
| H A D | tmp_tnode.c | 233 size_t oldsize = tp->tn_size; in tmpnode_trunc() local 242 if (newsize == oldsize) { in tmpnode_trunc() 250 if (newsize > oldsize) { in tmpnode_trunc() 252 P2ROUNDUP(oldsize, PAGESIZE); in tmpnode_trunc() 272 (btopr(newsize) != btopr(oldsize)))) { in tmpnode_trunc() 282 if (btopr(newsize) != btopr(oldsize)) { in tmpnode_trunc() 284 delta = P2ROUNDUP(oldsize, PAGESIZE) - in tmpnode_trunc()
|
| /onnv-gate/usr/src/lib/libast/common/vmalloc/ |
| H A D | vmlast.c | 173 reg size_t oldsize; local 183 { oldsize = 0; 222 oldsize = (Vmuchar_t*)seg->last - (Vmuchar_t*)data; 223 else oldsize = (Vmuchar_t*)BLOCK(seg->baddr) - (Vmuchar_t*)data; 229 oldsize = s; 231 { oldsize = (Vmuchar_t*)tp - (Vmuchar_t*)data; 263 { ds = oldsize < size ? oldsize : size; 302 done: if(data && (type&VM_RSZERO) && size > oldsize) 303 memset((Void_t*)((Vmuchar_t*)data + oldsize), 0, size-oldsize);
|
| H A D | vmdebug.c | 507 reg size_t s, oldsize; local 517 { oldsize = 0; 553 oldsize = DBSIZE(addr); 565 dbsetinfo((Vmuchar_t*)addr,oldsize,oldfile,oldline); 582 done: if(data && (type&VM_RSZERO) && size > oldsize) 583 { reg Vmuchar_t *d = data+oldsize, *ed = data+size;
|
| H A D | vmbest.c | 937 size_t s, bs, oldsize = 0, orgsize = 0; local 947 { oldsize = 0; 973 oldsize = SIZE(rp); CLRBITS(oldsize); 974 if(oldsize < size) 975 { np = (Block_t*)((Vmuchar_t*)rp + oldsize + sizeof(Head_t)); 1052 done: if(data && (type&VM_RSZERO) && (size = SIZE(BLOCK(data))&~BITS) > oldsize ) 1053 memset((Void_t*)((Vmuchar_t*)data + oldsize), 0, size-oldsize);
|
| /onnv-gate/usr/src/uts/common/io/drm/ |
| H A D | drm_memory.c | 78 drm_realloc(void *oldpt, size_t oldsize, size_t size, int area) in drm_realloc() argument 87 if (oldpt && oldsize) { in drm_realloc() 88 bcopy(pt, oldpt, oldsize); in drm_realloc() 89 kmem_free(oldpt, oldsize); in drm_realloc()
|
| /onnv-gate/usr/src/lib/libumem/common/ |
| H A D | malloc.c | 386 size_t oldsize; in realloc() local 400 if (process_free(buf_arg, 0, &oldsize) == 0) { in realloc() 405 if (newsize == oldsize) /* size didn't change */ in realloc() 412 (void) memcpy(buf, buf_arg, MIN(newsize, oldsize)); in realloc()
|
| /onnv-gate/usr/src/uts/common/os/ |
| H A D | grow.c | 298 size_t oldsize = p->p_stksize; in grow() local 315 if (err == 0 && (newsize = p->p_stksize) > oldsize) { in grow() 316 ASSERT(IS_P2ALIGNED(oldsize, PAGESIZE)); in grow() 323 newsize - oldsize, F_INVAL, S_WRITE); in grow() 407 size_t oldsize; in grow_internal() local 443 oldsize = p->p_stksize; in grow_internal() 444 ASSERT(P2PHASE(oldsize, PAGESIZE) == 0); in grow_internal() 446 if (newsize <= oldsize) { /* prevent the stack from shrinking */ in grow_internal() 461 caddr_t oldsp = p->p_usrstack - oldsize; in grow_internal() 478 if ((error = as_map(p->p_as, p->p_usrstack - newsize, newsize - oldsize, in grow_internal()
|
| H A D | ipc.c | 872 int i, oldsize, newsize; in ipc_grow() local 880 oldsize = service->ipcs_tabsz; in ipc_grow() 881 newsize = oldsize << 1; in ipc_grow() 887 for (i = 0; i < oldsize; i++) { in ipc_grow() 901 for (i = 0; i < oldsize; i++) { in ipc_grow() 906 id_space_extend(service->ipcs_ids, oldsize, service->ipcs_tabsz); in ipc_grow()
|
| /onnv-gate/usr/src/uts/common/fs/lofs/ |
| H A D | lofs_subr.c | 519 uint_t oldsize; in lgrow() local 538 oldsize = li->li_htsize; in lgrow() 545 for (i = 0; i < oldsize; i++) in lgrow() 553 for (i = 0; i < oldsize; i++) in lgrow() 558 for (i = 0; i < oldsize; i++) { in lgrow() 590 for (i = 0; i < oldsize; i++) { in lgrow() 596 lretire(li, oldtable, oldsize); in lgrow()
|
| /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/ |
| H A D | hv.c | 1052 I32 oldsize = (I32) xhv->xhv_max+1; /* HvMAX(hv)+1 (sick) */ in S_hsplit() local 1053 register I32 newsize = oldsize * 2; in S_hsplit() 1087 Copy(xhv->xhv_array /* HvARRAY(hv) */, a, oldsize * sizeof(HE*), char); in S_hsplit() 1088 if (oldsize >= 64) { in S_hsplit() 1090 PERL_HV_ARRAY_ALLOC_BYTES(oldsize)); in S_hsplit() 1097 Zero(&a[oldsize * sizeof(HE*)], (newsize-oldsize) * sizeof(HE*), char); /* zero 2nd half*/ in S_hsplit() 1102 for (i=0; i<oldsize; i++,aep++) { in S_hsplit() 1108 bep = aep+oldsize; in S_hsplit() 1206 I32 oldsize = (I32) xhv->xhv_max+1; /* HvMAX(hv)+1 (sick) */ in Perl_hv_ksplit() local 1216 if (newsize != newmax || newmax <= oldsize) in Perl_hv_ksplit() [all …]
|
| /onnv-gate/usr/src/lib/gss_mechs/mech_krb5/mech/ |
| H A D | errmap.h | 96 size_t oldsize = sizeof(*arr->elts) * arr->allocated; in mecherrmap__pairarray_grow() local 111 memset((char *)ptr + oldsize, 0, newsize - oldsize); in mecherrmap__pairarray_grow()
|
| /onnv-gate/usr/src/cmd/bdiff/ |
| H A D | bdiff.c | 538 size_t oldsize; in readline() local 552 oldsize = *bufsizp; in readline() 557 bufp = fgets(*bufferp + oldsize -1, oldsize + 1, filep); in readline()
|
| /onnv-gate/usr/src/uts/sun4u/sunfire/io/ |
| H A D | fhc_bd.c | 181 int oldsize; in fhc_check_size() local 187 oldsize = sizeof (fhc_bd_t *) * resizable->size; in fhc_check_size() 190 fhc_resize(&(resizable->boards), oldsize, newsize); in fhc_check_size() 293 fhc_resize(fhc_bd_t ***in_array, int oldsize, int newsize) in fhc_resize() argument 298 ASSERT(newsize > oldsize); in fhc_resize() 305 ASSERT(oldsize > 0); in fhc_resize() 306 bcopy(*in_array, temp, oldsize); in fhc_resize() 307 kmem_free(*in_array, oldsize); in fhc_resize()
|
| /onnv-gate/usr/src/cmd/sendmail/db/lock/ |
| H A D | lock_region.c | 351 size_t incr, oldsize, used, usedmem; local 357 oldsize = lrp->hdr.size; 420 incr += ALIGN(oldsize, MUTEX_ALIGNMENT) - oldsize; 426 if ((ret = __db_rgrow(<->reginfo, oldsize + incr)) != 0) 438 curaddr = (u_int8_t *)lrp + oldsize;
|
| /onnv-gate/usr/src/uts/common/fs/portfs/ |
| H A D | port_fd.c | 562 int oldsize; in port_cache_grow_hashtbl() local 566 oldsize = pcp->pc_hashsize; in port_cache_grow_hashtbl() 575 for (i = 0; i < oldsize; i++) { in port_cache_grow_hashtbl() 584 kmem_free(oldtbl, oldsize * sizeof (portfd_t *)); in port_cache_grow_hashtbl()
|
| /onnv-gate/usr/src/cmd/file/ |
| H A D | magicutils.c | 232 size_t oldsize; in f_mkmtab() local 275 oldsize = mend - mtab; in f_mkmtab() 276 tbsize = (NENT + oldsize) * sizeof (Entry); in f_mkmtab() 283 (void) memset(mtab + oldsize, 0, in f_mkmtab() 286 ep = &mtab[oldsize-1]; in f_mkmtab()
|
| /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/Tie/ |
| H A D | File.pm | 435 my $oldsize = $self->FETCHSIZE; 436 $nrecs = $oldsize unless defined $nrecs; 440 $pos += $oldsize; 446 if ($pos > $oldsize) { 448 $pos = $oldsize; # This is what perl does for normal arrays 453 $nrecs = $oldsize - $pos + $nrecs; 459 if ($nrecs + $pos > $oldsize) { 460 $nrecs = $oldsize - $pos;
|
| /onnv-gate/usr/src/lib/libkmf/libkmf/common/ |
| H A D | generalop.c | 2075 size_t oldsize; in GetSequenceContents() local 2099 if (kmfber_scanf(exasn1, "tl{", &tag, &oldsize) == KMFBER_DEFAULT || in GetSequenceContents() 2100 oldsize == 0) { in GetSequenceContents() 2105 olddata = malloc(oldsize); in GetSequenceContents() 2110 (void) memset(olddata, 0, oldsize); in GetSequenceContents() 2115 if (kmfber_read(exasn1, olddata, oldsize) != oldsize) { in GetSequenceContents() 2130 *outlen = oldsize; in GetSequenceContents() 2176 size_t oldsize = 0; in kmf_set_altname() local 2200 &olddata, &oldsize); in kmf_set_altname() 2217 if (olddata != NULL && oldsize > 0) { in kmf_set_altname() [all …]
|
| /onnv-gate/usr/src/uts/common/io/ |
| H A D | devpoll.c | 447 size_t oldsize; in dpopen() local 453 if ((oldsize = dptblsize) >= MAXMIN) { in dpopen() 462 bcopy(devpolltbl, newtbl, sizeof (caddr_t) * oldsize); in dpopen() 463 kmem_free(devpolltbl, sizeof (caddr_t) * oldsize); in dpopen()
|