/titanic_44/usr/src/uts/common/fs/tmpfs/ |
H A D | tmp_tnode.c | 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() 277 tp->tn_size = newsize; in tmpnode_trunc() [all …]
|
/titanic_44/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_44/usr/src/test/zfs-tests/tests/functional/interop/ |
H A D | interop_001_pos.ksh | 63 typeset -i newsize=`$ZFS get -pH -o value available $TESTPOOL` 65 (( $oldsize >= $newsize )) && \ 67 "larger than the space available ($newsize) afterwards." 69 log_note "Pool space available was ($oldsize), it's now ($newsize)" 84 log_pass "Successfully used ($(( $newsize - $oldsize )) bytes) in "\ 87 log_fail "Failed to use space in pool ($(( $newsize - $oldsize ))bytes) "\
|
/titanic_44/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 * sizeof (uint_t)) : in makebusy() [all …]
|
/titanic_44/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_44/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_44/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 | 105 long unsigned newsize = 0, n; in get_new_table_size() local 107 newsize = tabsizes[0]; in get_new_table_size() 109 for (n = 0; newsize = tabsizes[n++]; ) in get_new_table_size() 110 if (oldsize == newsize) { in get_new_table_size() 111 newsize = tabsizes[n]; /* get next size */ in get_new_table_size() 114 if (newsize == 0) in get_new_table_size() 115 newsize = oldsize + DB_TABLE_GROWTH_INCREMENT; in get_new_table_size() 117 return (newsize); in get_new_table_size()
|
/titanic_44/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, "%s%-*s ", *buf ? *buf : "", in sprint_desc() [all …]
|
/titanic_44/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 = p->p_usrstack - (caddr_t)P2ALIGN((uintptr_t)sp, pgsz); in grow_internal() [all …]
|
/titanic_44/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_44/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() 716 remainder = nextblk(oldblk, newsize); in shrink() 717 remainder->size = oldsize - newsize; in shrink() 718 oldblk->size = newsize; in shrink() 761 uint newsize; in realloc() local 814 newsize = nbytes + ALIGNSIZ; /* add size of a length word */ in realloc() 815 if (newsize < SMALLEST_BLK) { in realloc() 816 newsize = SMALLEST_BLK; in realloc() 818 newsize = roundup(newsize, ALIGNSIZ); in realloc() [all …]
|
/titanic_44/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_44/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_44/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 = strlen(fmri); in svcctl_scm_get_svcname() [all …]
|
/titanic_44/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_44/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_44/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() 266 newsize += sizeof (msg->rip6_cmd) + in rip_input() 268 sendpacket(from, ifp, newsize, 0); in rip_input()
|
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/mech/ |
H A D | errmap.h | 97 size_t newsize; in mecherrmap__pairarray_grow() local 107 newsize = sizeof(*arr->elts) * newcount; in mecherrmap__pairarray_grow() 108 ptr = realloc(arr->elts, newsize); in mecherrmap__pairarray_grow() 111 memset((char *)ptr + oldsize, 0, newsize - oldsize); in mecherrmap__pairarray_grow()
|
/titanic_44/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_44/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_44/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_44/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_44/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_44/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()
|