/titanic_51/usr/src/uts/common/fs/tmpfs/ |
H A D | tmp_tnode.c | 128 * Grow the anon pointer array to cover 'newsize' bytes plus slack. 131 tmpnode_growmap(struct tmpnode *tp, ulong_t newsize) in tmpnode_growmap() argument 133 pgcnt_t np = btopr(newsize); in tmpnode_growmap() 142 if (newsize > MAXOFF_T) in tmpnode_growmap() 231 ulong_t newsize) in tmpnode_trunc() argument 242 if (newsize == oldsize) { in tmpnode_trunc() 250 if (newsize > oldsize) { in tmpnode_trunc() 251 delta = P2ROUNDUP(newsize, PAGESIZE) - in tmpnode_trunc() 272 (btopr(newsize) != btopr(oldsize)))) { in tmpnode_trunc() 276 tmpnode_growmap(tp, newsize); in tmpnode_trunc() [all...] |
/titanic_51/usr/src/cmd/growfs/ |
H A D | growfs.sh | 40 newsize=0 107 while [ "$newsize" -lt "$size" ]; do 112 newsize=`$cmd`; retv=$? 113 if [ 0 -ne $retv -o -z "$newsize" ]; then 117 if [ 0 -eq "$newsize" ]; then 122 cmd="$UFS_MKFS $mkfs_opts $mkfs_subopts $raw_special $newsize"; retv=$? 128 echo "$myname: cannot grow file system to $newsize sectors"
|
/titanic_51/usr/src/cmd/fs.d/ |
H A D | preenlib.c | 376 uint_t newsize; in addunit() local 378 newsize = howmany(unit+1, WORDSIZE); in addunit() 379 if (devp->mapsize < newsize) { in addunit() 382 newsize * sizeof (uint_t)) : in addunit() 383 (uint_t *)malloc(newsize * sizeof (uint_t)); in addunit() 389 (uint_t)((newsize - devp->mapsize) * sizeof (uint_t))); in addunit() 390 devp->mapsize = newsize; in addunit() 416 int newsize = dev->mapsize; in makebusy() local 419 if (drvp->mapsize < newsize) { in makebusy() 422 newsize * sizeo in makebusy() [all...] |
/titanic_51/usr/src/lib/libtsol/common/ |
H A D | btos.c | 336 int newsize; in sbsltos() local 338 if ((newsize = alloc_string(&sstring, ssize, in sbsltos() 343 ssize += newsize; in sbsltos() 370 int newsize; in sbsltos() local 373 if ((newsize = alloc_string(&sstring, ssize, 's')) == in sbsltos() 378 ssize += newsize; in sbsltos() 432 int newsize; in sbcleartos() local 434 if ((newsize = alloc_string(&sstring, ssize, in sbcleartos() 439 ssize += newsize; in sbcleartos() 466 int newsize; in sbcleartos() local [all...] |
/titanic_51/usr/src/cmd/zic/ |
H A D | ialloc.c | 34 register int oldsize, newsize; local 36 newsize = (new == NULL) ? 0 : strlen(new); 39 else if (newsize == 0) 42 if ((result = irealloc(old, oldsize + newsize + 1)) != NULL)
|
/titanic_51/usr/src/lib/libnisdb/ |
H A D | db_index.cc | 120 long unsigned newsize = 0, n; in get_next_hashsize() local 122 newsize = hashsizes[0]; in get_next_hashsize() 124 for (n = 0; newsize = hashsizes[n++]; ) in get_next_hashsize() 125 if (oldsize == newsize) { in get_next_hashsize() 126 newsize = hashsizes[n]; /* get next size */ in get_next_hashsize() 129 if (newsize == 0) in get_next_hashsize() 130 newsize = oldsize * 2 + 1; /* just double */ in get_next_hashsize() 132 return (newsize); in get_next_hashsize()
|
H A D | db_table.cc | 107 long unsigned newsize = 0, n; in get_new_table_size() local 109 newsize = tabsizes[0]; in get_new_table_size() 111 for (n = 0; newsize = tabsizes[n++]; ) in get_new_table_size() 112 if (oldsize == newsize) { in get_new_table_size() 113 newsize = tabsizes[n]; /* get next size */ in get_new_table_size() 116 if (newsize == 0) in get_new_table_size() 117 newsize = oldsize + DB_TABLE_GROWTH_INCREMENT; in get_new_table_size() 119 return (newsize); in get_new_table_size()
|
/titanic_51/usr/src/cmd/svc/svcs/ |
H A D | svcs.c | 1012 size_t newsize = (*buf ? strlen(*buf) : 0) + CTID_COLUMN_BUFSIZE; in sprint_ctid() local 1013 char *newbuf = safe_malloc(newsize); in sprint_ctid() 1034 (void) snprintf(newbuf, newsize, "%s%*lu ", in sprint_ctid() 1037 (void) snprintf(newbuf, newsize, "%s%*lu* ", in sprint_ctid() 1040 (void) snprintf(newbuf, newsize, "%s%*s ", in sprint_ctid() 1096 size_t newsize; in sprint_desc() local 1123 newsize = (*buf ? strlen(*buf) : 0) + in sprint_desc() 1126 newsize = (*buf ? strlen(*buf) : 0) + DESC_COLUMN_WIDTH + 1; in sprint_desc() 1127 newbuf = safe_malloc(newsize); in sprint_desc() 1128 (void) snprintf(newbuf, newsize, " in sprint_desc() 1222 size_t newsize; sprint_state() local 1263 size_t newsize; sprint_nstate() local 1302 size_t newsize = (*buf ? strlen(*buf) : 0) + 4; sprint_s() local 1330 size_t newsize = (*buf ? strlen(*buf) : 0) + 3; sprint_n() local 1356 size_t newsize = (*buf ? strlen(*buf) : 0) + 4; sprint_sn() local 1419 size_t newsize = (*buf ? strlen(*buf) : 0) + 6; sprint_sta() local 1443 size_t newsize = (*buf ? strlen(*buf) : 0) + 6; sprint_nsta() local 1469 size_t newsize; sprint_fmri() local 1517 size_t newsize = (*buf ? strlen(*buf) : 0) + COMPONENT_COLUMN_WIDTH + 2; sprint_scope() local 1550 size_t newsize; sprint_service() local 1594 size_t newsize = (*buf ? strlen(*buf) : 0) + COMPONENT_COLUMN_WIDTH + 2; sprint_instance() local 1645 size_t newsize = (*buf ? strlen(*buf) : 0) + STIME_COLUMN_WIDTH + 2; sprint_stime() local 1733 size_t newsize; sprint_zone() local [all...] |
/titanic_51/usr/src/uts/common/os/ |
H A D | grow.c | 301 size_t newsize; in grow() local 317 if (err == 0 && (newsize = p->p_stksize) > oldsize) { in grow() 319 ASSERT(IS_P2ALIGNED(newsize, PAGESIZE)); in grow() 324 (void) as_fault(as->a_hat, as, p->p_usrstack - newsize, in grow() 325 newsize - oldsize, F_INVAL, S_WRITE); in grow() 340 size_t len, newsize; in grow_lpg() local 346 newsize = p->p_usrstack - sp; in grow_lpg() 349 pgsz = map_pgsz(MAPPGSZ_STK, p, sp, newsize, 0); in grow_lpg() 408 size_t newsize; in grow_internal() local 427 newsize in grow_internal() [all...] |
/titanic_51/usr/src/cmd/backup/lib/ |
H A D | memutils.c | 70 xrealloc(allocated, newsize) in xrealloc() argument 72 size_t newsize; 77 cp = realloc(allocated, newsize);
|
/titanic_51/usr/src/lib/libbc/libc/gen/common/ |
H A D | malloc.c | 701 * shrink(oldblk, oldsize, newsize) 708 shrink(Dblk oldblk, uint oldsize, uint newsize) in shrink() argument 711 if (oldsize - newsize >= SMALLEST_BLK) { in shrink() 716 remainder = nextblk(oldblk, newsize); in shrink() 717 remainder->size = oldsize - newsize; in shrink() 718 oldblk->size = newsize; in shrink() 735 * contents of the old block up to min(size(old block), newsize). 761 uint newsize; in realloc() local 814 newsize = nbytes + ALIGNSIZ; /* add size of a length word */ in realloc() 815 if (newsize < SMALLEST_BL in realloc() [all...] |
/titanic_51/usr/src/lib/pkcs11/libpkcs11/common/ |
H A D | pkcs11Slottable.c | 88 ulong_t newsize; in pkcs11_slottable_increase() local 93 newsize = slottable->st_last + increment + 1; in pkcs11_slottable_increase() 96 if (slottable->st_cur_size >= newsize) { in pkcs11_slottable_increase() 102 (slottable->st_slots, newsize * sizeof (pkcs11_slot_t *)); in pkcs11_slottable_increase() 110 slottable->st_cur_size = newsize; in pkcs11_slottable_increase()
|
/titanic_51/usr/src/lib/libumem/common/ |
H A D | malloc.c | 391 realloc(void *buf_arg, size_t newsize) in realloc() argument 397 return (malloc(newsize)); in realloc() 399 if (newsize == 0) { in realloc() 412 if (newsize == oldsize) /* size didn't change */ in realloc() 415 buf = malloc(newsize); in realloc() 419 (void) memcpy(buf, buf_arg, MIN(newsize, oldsize)); in realloc()
|
/titanic_51/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | svcctl_scm.c | 318 size_t newsize; in svcctl_scm_get_svcdesc() local 340 newsize = strlen(desc_buf) + 1; in svcctl_scm_get_svcdesc() 341 if ((newbuf = malloc(newsize)) == NULL) { in svcctl_scm_get_svcdesc() 346 (void) snprintf(newbuf, newsize, "%s", desc_buf); in svcctl_scm_get_svcdesc() 362 size_t newsize; in svcctl_scm_get_svcfmri() local 392 newsize = strlen(fmri_buf) + 1; in svcctl_scm_get_svcfmri() 393 if ((newbuf = malloc(newsize)) == NULL) { in svcctl_scm_get_svcfmri() 398 (void) snprintf(newbuf, newsize, "%s", fmri_buf); in svcctl_scm_get_svcfmri() 415 size_t newsize; in svcctl_scm_get_svcname() local 420 newsize in svcctl_scm_get_svcname() [all...] |
/titanic_51/usr/src/cmd/rexd/ |
H A D | on.c | 113 struct winsize newsize; /* the modern way to get row and col */ in sigwinch() local 118 ioctl(0, TIOCGWINSZ, &newsize); in sigwinch() 123 size.ts_lines = (int)newsize.ws_row; /* typecast important! */ in sigwinch() 124 size.ts_cols = (int)newsize.ws_col; in sigwinch() 205 struct winsize newsize; /* the modern way to get row and col */ in main() local 512 err = ioctl(0, TIOCGWINSZ, &newsize) < 0; in main() 514 WindowSize.ts_lines = (int)newsize.ws_row; in main() 515 WindowSize.ts_cols = (int)newsize.ws_col; in main()
|
/titanic_51/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | gic_opt.c | 297 size_t newsize; in add_gic_opt_ext_preauth_data() local 301 newsize = opte->opt_private->num_preauth_data + 1; in add_gic_opt_ext_preauth_data() 302 newsize = newsize * sizeof(*opte->opt_private->preauth_data); in add_gic_opt_ext_preauth_data() 304 newpad = malloc(newsize); in add_gic_opt_ext_preauth_data() 306 newpad = realloc(opte->opt_private->preauth_data, newsize); in add_gic_opt_ext_preauth_data()
|
/titanic_51/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/ |
H A D | input.c | 133 int newsize; in rip_input() local 186 newsize = 0; in rip_input() 248 newsize += sizeof (struct netinfo6); in rip_input() 259 if (answer && newsize > 0) { in rip_input() 261 * Adjust newsize by the length of the command, version in rip_input() 266 newsize += sizeof (msg->rip6_cmd) + in rip_input() 268 sendpacket(from, ifp, newsize, 0); in rip_input()
|
/titanic_51/usr/src/lib/gss_mechs/mech_krb5/mech/ |
H A D | errmap.h | 47 * int grow(newsize) -> negative if fail allocation, memset(,0,) new space 99 size_t newsize; in mecherrmap__pairarray_grow() 109 newsize = sizeof(*arr->elts) * newcount; in mecherrmap__pairarray_grow() 110 ptr = realloc(arr->elts, newsize); in mecherrmap__pairarray_grow() 113 memset((char *)ptr + oldsize, 0, newsize - oldsize); in mecherrmap__pairarray_grow() 97 size_t newsize; mecherrmap__pairarray_grow() local
|
/titanic_51/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_client.c | 215 u_offset_t newsize; in smbfs_attrcache_fa() local 292 newsize = fap->fa_size; in smbfs_attrcache_fa() 293 if (vtype == VDIR && newsize < DEV_BSIZE) in smbfs_attrcache_fa() 294 newsize = DEV_BSIZE; in smbfs_attrcache_fa() 296 if (np->r_size != newsize) { in smbfs_attrcache_fa() 302 np->r_size = newsize; in smbfs_attrcache_fa()
|
/titanic_51/usr/src/lib/libdscfg/common/ |
H A D | cfg_local.c | 335 int newsize = DEFAULT_ENTRY_SIZE / 2; in addcfline() local 355 cfl->l_free + newsize); in addcfline() 358 cfl->l_free + newsize) * sizeof (char)); in addcfline() 363 cfl->l_free += newsize; in addcfline() 553 int newsize = DEFAULT_ENTRY_SIZE / 2; in replacecfline() local 576 cfl->l_free + newsize); in replacecfline() 579 (cfl->l_size + cfl->l_free + newsize) * sizeof (char)); in replacecfline()
|
/titanic_51/usr/src/cmd/keyserv/ |
H A D | keyserv_cache.c | 460 size_t newsize, oldsize; in remap_cache_file_ch() local 478 newsize = ALIGN8(sizeof (struct cachekey_header)) + in remap_cache_file_ch() 482 if (newsize > ch->maxsize) { in remap_cache_file_ch() 484 newsize = ch->maxsize; in remap_cache_file_ch() 492 if (newsize > ch->length) { in remap_cache_file_ch() 495 } else if (newsize == ch->length) { in remap_cache_file_ch() 516 while (tmpsize > newsize && fcd > &(ch->array[0])) { in remap_cache_file_ch() 529 ch->length = newsize; in remap_cache_file_ch() 540 if (ftruncate(fd, newsize) < 0) { in remap_cache_file_ch() 545 if ((newch = (void *)mmap(oldaddr, newsize, in remap_cache_file_ch() [all...] |
/titanic_51/usr/src/cmd/bdiff/ |
H A D | bdiff.c | 537 size_t newsize; /* number of bytes to make buffer */ in readline() local 548 newsize = 2 * (*bufsizp); in readline() 549 bufp = (char *)realloc((void *)*bufferp, newsize); in readline() 553 *bufsizp = newsize; in readline()
|
/titanic_51/usr/src/lib/libsec/common/ |
H A D | aclutils.c | 560 int newsize; in acl_modifyentries() local 576 newsize = (acl1->acl_entry_size * acl1->acl_cnt) + in acl_modifyentries() 578 acl1->acl_aclp = realloc(acl1->acl_aclp, newsize); in acl_modifyentries() 605 int newsize; in acl_addentries() local 623 newsize = (acl2->acl_entry_size * acl2->acl_cnt) + in acl_addentries() 625 acl1->acl_aclp = realloc(acl1->acl_aclp, newsize); in acl_addentries()
|
/titanic_51/usr/src/lib/gss_mechs/mech_krb5/profile/ |
H A D | prof_parse.c | 466 size_t newsize; in add_data_to_buffer() local 469 newsize = b->max + (b->max >> 1) + len + 1024; in add_data_to_buffer() 470 newptr = realloc(b->base, newsize); in add_data_to_buffer() 476 b->max = newsize; in add_data_to_buffer()
|
/titanic_51/usr/src/uts/common/fs/lofs/ |
H A D | lofs_subr.c | 515 lgrow(struct loinfo *li, uint_t newsize) in lgrow() argument 526 if ((newtable = kmem_zalloc(newsize * sizeof (*li->li_hashtable), in lgrow() 531 if (newsize <= li->li_htsize) { in lgrow() 533 kmem_free(newtable, newsize * sizeof (*li->li_hashtable)); in lgrow() 560 uint_t hash = ltablehash(tlp->lo_vp, newsize); in lgrow() 583 li->li_htsize = newsize; in lgrow()
|