Home
last modified time | relevance | path

Searched refs:oldsize (Results 1 – 25 of 48) sorted by relevance

12

/titanic_50/usr/src/cmd/zic/
H A Dialloc.c34 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);
/titanic_50/usr/src/lib/libbc/libc/gen/common/
H A Dmalloc.c708 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 …]
/titanic_50/usr/src/stand/lib/sa/
H A Dmalloc.c66 size_t oldsize; in realloc() local
70 oldsize = ((size_t *)oldaddr)[-1]; in realloc()
72 bcopy(oldaddr, addr, (oldsize > size ? oldsize : size)); in realloc()
/titanic_50/usr/src/lib/libnisdb/
H A Ddb_index.cc118 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 Ddb_table.cc105 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 …]
H A Ddb_dictionary.cc385 get_next_hashsize(long unsigned oldsize) in get_next_hashsize() argument
388 if (oldsize == 0) in get_next_hashsize()
392 if (oldsize == newsize) { in get_next_hashsize()
397 newsize = oldsize * 2 + 1; /* just double */ in get_next_hashsize()
411 unsigned int oldsize, i, new_size; in grow_dictionary() local
414 oldsize = dd->tables.tables_len; in grow_dictionary()
417 new_size = get_next_hashsize(oldsize); in grow_dictionary()
432 for (i = 0; i < oldsize; i++) { in grow_dictionary()
/titanic_50/usr/src/uts/common/fs/tmpfs/
H A Dtmp_tnode.c233 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()
/titanic_50/usr/src/lib/libast/common/vmalloc/
H A Dvmlast.c173 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 Dvmdebug.c507 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 Dvmbest.c937 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);
H A Dvmprofile.c583 reg size_t oldsize; local
588 { oldsize = 0;
617 s = oldsize = PFSIZE(data);
649 done: if(addr && (type&VM_RSZERO) && oldsize < size)
650 { reg Vmuchar_t *d = (Vmuchar_t*)addr+oldsize, *ed = (Vmuchar_t*)addr+size;
/titanic_50/usr/src/uts/common/io/drm/
H A Ddrm_memory.c78 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()
/titanic_50/usr/src/lib/libumem/common/
H A Dmalloc.c393 size_t oldsize; in realloc() local
407 if (process_free(buf_arg, 0, &oldsize) == 0) { in realloc()
412 if (newsize == oldsize) /* size didn't change */ in realloc()
419 (void) memcpy(buf, buf_arg, MIN(newsize, oldsize)); in realloc()
/titanic_50/usr/src/uts/common/os/
H A Dgrow.c300 size_t oldsize = p->p_stksize; in grow() local
317 if (err == 0 && (newsize = p->p_stksize) > oldsize) { in grow()
318 ASSERT(IS_P2ALIGNED(oldsize, PAGESIZE)); in grow()
325 newsize - oldsize, F_INVAL, S_WRITE); in grow()
409 size_t oldsize; in grow_internal() local
445 oldsize = p->p_stksize; in grow_internal()
446 ASSERT(P2PHASE(oldsize, PAGESIZE) == 0); in grow_internal()
448 if (newsize <= oldsize) { /* prevent the stack from shrinking */ in grow_internal()
463 caddr_t oldsp = p->p_usrstack - oldsize; in grow_internal()
480 if ((error = as_map(p->p_as, p->p_usrstack - newsize, newsize - oldsize, in grow_internal()
H A Dipc.c872 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()
/titanic_50/usr/src/uts/common/fs/lofs/
H A Dlofs_subr.c517 uint_t oldsize; in lgrow() local
536 oldsize = li->li_htsize; in lgrow()
543 for (i = 0; i < oldsize; i++) in lgrow()
551 for (i = 0; i < oldsize; i++) in lgrow()
556 for (i = 0; i < oldsize; i++) { in lgrow()
588 for (i = 0; i < oldsize; i++) { in lgrow()
594 lretire(li, oldtable, oldsize); in lgrow()
/titanic_50/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Derrmap.h96 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()
/titanic_50/usr/src/cmd/bdiff/
H A Dbdiff.c538 size_t oldsize; in readline() local
552 oldsize = *bufsizp; in readline()
557 bufp = fgets(*bufferp + oldsize -1, oldsize + 1, filep); in readline()
/titanic_50/usr/src/uts/sun4u/sunfire/io/
H A Dfhc_bd.c181 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()
/titanic_50/usr/src/cmd/sendmail/db/lock/
H A Dlock_region.c351 size_t incr, oldsize, used, usedmem; local
357 oldsize = lrp->hdr.size;
420 incr += ALIGN(oldsize, MUTEX_ALIGNMENT) - oldsize;
426 if ((ret = __db_rgrow(&lt->reginfo, oldsize + incr)) != 0)
438 curaddr = (u_int8_t *)lrp + oldsize;
/titanic_50/usr/src/uts/common/fs/portfs/
H A Dport_fd.c562 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()
/titanic_50/usr/src/cmd/file/
H A Dmagicutils.c232 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()
/titanic_50/usr/src/lib/libkmf/libkmf/common/
H A Dgeneralop.c2075 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 …]
H A Dcsrcrlop.c266 size_t oldsize = 0; in kmf_add_csr_eku() local
279 foundextn->BERvalue.Length, &olddata, &oldsize); in kmf_add_csr_eku()
302 if (olddata != NULL && oldsize > 0) { in kmf_add_csr_eku()
303 if (kmfber_write(asn1, olddata, oldsize, 0) == -1) { in kmf_add_csr_eku()
/titanic_50/usr/src/uts/common/fs/
H A Ddnlc.c1887 uint_t oldsize; in dnlc_dir_adjust_nhash() local
1907 oldsize = dcp->dc_nhash_mask + 1; in dnlc_dir_adjust_nhash()
1913 for (i = 0; i < oldsize; i++) { /* for each hash bucket */ in dnlc_dir_adjust_nhash()
1927 kmem_free(dcp->dc_namehash, sizeof (dcentry_t *) * oldsize); in dnlc_dir_adjust_nhash()
1939 uint_t oldsize; in dnlc_dir_adjust_fhash() local
1958 oldsize = dcp->dc_fhash_mask + 1; in dnlc_dir_adjust_fhash()
1964 for (i = 0; i < oldsize; i++) { /* for each hash bucket */ in dnlc_dir_adjust_fhash()
1978 kmem_free(dcp->dc_freehash, sizeof (dcfree_t *) * oldsize); in dnlc_dir_adjust_fhash()

12