/illumos-gate/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)
|
/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/ |
H A D | pkcs11Slottable.c | 88 ulong_t newsize; local 93 newsize = slottable->st_last + increment + 1; 96 if (slottable->st_cur_size >= newsize) { 102 (slottable->st_slots, newsize * sizeof (pkcs11_slot_t *)); 110 slottable->st_cur_size = newsize;
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/ |
H A D | input.c | 133 int newsize; local 186 newsize = 0; 248 newsize += sizeof (struct netinfo6); 259 if (answer && newsize > 0) { 261 * Adjust newsize by the length of the command, version 266 newsize += sizeof (msg->rip6_cmd) + 268 sendpacket(from, ifp, newsize, 0);
|
/illumos-gate/usr/src/cmd/format/ |
H A D | modify_partition.c | 463 blkaddr32_t newsize; local 490 newsize = (blkaddr32_t)input(FIO_CYL, tmpstr, ':', 492 map[float_part].dkl_nblk -= (newsize - map[i].dkl_nblk); 493 map[i].dkl_nblk = newsize;
|
/illumos-gate/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) argument 133 pgcnt_t np = btopr(newsize); 142 if (newsize > MAXOFF_T) 231 ulong_t newsize) 242 if (newsize == oldsize) { 250 if (newsize > oldsize) { 251 delta = P2ROUNDUP(newsize, PAGESIZE) - 272 (btopr(newsize) != btopr(oldsize)))) { 276 tmpnode_growmap(tp, newsize); 228 tmpnode_trunc( struct tmount *tm, struct tmpnode *tp, ulong_t newsize) argument [all...] |
/illumos-gate/usr/src/lib/libtsol/common/ |
H A D | btos.c | 336 int newsize; local 338 if ((newsize = alloc_string(&sstring, ssize, 343 ssize += newsize; 370 int newsize; local 373 if ((newsize = alloc_string(&sstring, ssize, 's')) == 378 ssize += newsize; 432 int newsize; local 434 if ((newsize = alloc_string(&sstring, ssize, 439 ssize += newsize; 466 int newsize; local [all...] |
H A D | private.c | 139 int newsize; local 151 if ((newsize = alloc_string(static_string, *static_string_size, 156 *static_string_size += newsize;
|
/illumos-gate/usr/src/lib/libumem/common/ |
H A D | malloc.c | 391 realloc(void *buf_arg, size_t newsize) argument 397 return (malloc(newsize)); 399 if (newsize == 0) { 412 if (newsize == oldsize) /* size didn't change */ 415 buf = malloc(newsize); 419 (void) memcpy(buf, buf_arg, MIN(newsize, oldsize));
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | gic_opt.c | 297 size_t newsize; local 301 newsize = opte->opt_private->num_preauth_data + 1; 302 newsize = newsize * sizeof(*opte->opt_private->preauth_data); 304 newpad = malloc(newsize); 306 newpad = realloc(opte->opt_private->preauth_data, newsize);
|
/illumos-gate/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; 109 newsize = sizeof(*arr->elts) * newcount; 110 ptr = realloc(arr->elts, newsize); 113 memset((char *)ptr + oldsize, 0, newsize - oldsize); 97 size_t newsize; local
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/profile/ |
H A D | prof_parse.c | 466 size_t newsize; local 469 newsize = b->max + (b->max >> 1) + len + 1024; 470 newptr = realloc(b->base, newsize); 476 b->max = newsize;
|
/illumos-gate/usr/src/lib/libdscfg/common/ |
H A D | cfg_local.c | 335 int newsize = DEFAULT_ENTRY_SIZE / 2; local 355 cfl->l_free + newsize); 358 cfl->l_free + newsize) * sizeof (char)); 363 cfl->l_free += newsize; 553 int newsize = DEFAULT_ENTRY_SIZE / 2; local 576 cfl->l_free + newsize); 579 (cfl->l_size + cfl->l_free + newsize) * sizeof (char));
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | db_index.cc | 120 long unsigned newsize = 0, n; local 122 newsize = hashsizes[0]; 124 for (n = 0; newsize = hashsizes[n++]; ) 125 if (oldsize == newsize) { 126 newsize = hashsizes[n]; /* get next size */ 129 if (newsize == 0) 130 newsize = oldsize * 2 + 1; /* just double */ 132 return (newsize);
|
H A D | db_index_entry.cc | 69 * returned in 'newsize'. List is chained using the 'nextresult' pointer. 73 db_index_entry_p list2, long * newsize) 122 *newsize = count; 72 join(long , long , db_index_entry_p list2, long * newsize) argument
|
/illumos-gate/usr/src/cmd/rexd/ |
H A D | unix_login.c | 538 struct winsize newsize; local 543 newsize.ws_row = (unsigned short) sizep->ts_lines; 544 newsize.ws_col = (unsigned short) sizep->ts_cols; 546 (void) ioctl(Master, TIOCSWINSZ, &newsize);
|
H A D | on.c | 113 struct winsize newsize; /* the modern way to get row and col */ local 118 ioctl(0, TIOCGWINSZ, &newsize); 123 size.ts_lines = (int)newsize.ws_row; /* typecast important! */ 124 size.ts_cols = (int)newsize.ws_col; 205 struct winsize newsize; /* the modern way to get row and col */ local 512 err = ioctl(0, TIOCGWINSZ, &newsize) < 0; 514 WindowSize.ts_lines = (int)newsize.ws_row; 515 WindowSize.ts_cols = (int)newsize.ws_col;
|
/illumos-gate/usr/src/cmd/cpio/ |
H A D | utils.c | 66 e_realloc(int flag, void *old, size_t newsize) argument 68 void *ret = realloc(old, newsize);
|
/illumos-gate/usr/src/uts/common/fs/lofs/ |
H A D | lofs_subr.c | 515 lgrow(struct loinfo *li, uint_t newsize) argument 526 if ((newtable = kmem_zalloc(newsize * sizeof (*li->li_hashtable), 531 if (newsize <= li->li_htsize) { 533 kmem_free(newtable, newsize * sizeof (*li->li_hashtable)); 560 uint_t hash = ltablehash(tlp->lo_vp, newsize); 583 li->li_htsize = newsize;
|
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_client.c | 215 u_offset_t newsize; local 292 newsize = fap->fa_size; 293 if (vtype == VDIR && newsize < DEV_BSIZE) 294 newsize = DEV_BSIZE; 296 if (np->r_size != newsize) { 302 np->r_size = newsize;
|
/illumos-gate/usr/src/cmd/bdiff/ |
H A D | bdiff.c | 537 size_t newsize; /* number of bytes to make buffer */ local 548 newsize = 2 * (*bufsizp); 549 bufp = (char *)realloc((void *)*bufferp, newsize); 553 *bufsizp = newsize;
|
/illumos-gate/usr/src/cmd/fs.d/ |
H A D | preenlib.c | 376 uint_t newsize; local 378 newsize = howmany(unit+1, WORDSIZE); 379 if (devp->mapsize < newsize) { 382 newsize * sizeof (uint_t)) : 383 (uint_t *)malloc(newsize * sizeof (uint_t)); 389 (uint_t)((newsize - devp->mapsize) * sizeof (uint_t))); 390 devp->mapsize = newsize; 416 int newsize = dev->mapsize; local 419 if (drvp->mapsize < newsize) { 422 newsize * sizeo [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | grow.c | 318 size_t newsize; local 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; local 363 newsize = p->p_usrstack - sp; 366 pgsz = map_pgsz(MAPPGSZ_STK, p, sp, newsize, 0); 425 size_t newsize; local 444 newsize [all...] |
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | svcctl_scm.c | 318 size_t newsize; local 340 newsize = strlen(desc_buf) + 1; 341 if ((newbuf = malloc(newsize)) == NULL) { 346 (void) snprintf(newbuf, newsize, "%s", desc_buf); 362 size_t newsize; local 392 newsize = strlen(fmri_buf) + 1; 393 if ((newbuf = malloc(newsize)) == NULL) { 398 (void) snprintf(newbuf, newsize, "%s", fmri_buf); 415 size_t newsize; local 420 newsize [all...] |
/illumos-gate/usr/src/lib/libsec/common/ |
H A D | aclutils.c | 560 int newsize; local 576 newsize = (acl1->acl_entry_size * acl1->acl_cnt) + 578 acl1->acl_aclp = realloc(acl1->acl_aclp, newsize); 605 int newsize; local 623 newsize = (acl2->acl_entry_size * acl2->acl_cnt) + 625 acl1->acl_aclp = realloc(acl1->acl_aclp, newsize);
|
/illumos-gate/usr/src/lib/libshell/common/sh/ |
H A D | array.c | 643 register int newsize = arsize(arp,maxi+1); local 646 i = (newsize-1)*sizeof(union Value*)+newsize; 649 ap->maxi = newsize; 651 ap->bits = (unsigned char*)&ap->val[newsize]; 652 memset(ap->bits, 0, newsize); 708 for(;i < newsize;i++)
|