/illumos-gate/usr/src/lib/libast/common/vmalloc/ |
H A D | vmdcheap.c | 36 size_t csize, size_t nsize, 39 static Void_t* heapmem(vm, caddr, csize, nsize, disc) 43 size_t nsize; /* new size */ 51 return vmalloc(Vmheap,nsize); 52 else if(nsize == 0) 54 else return vmresize(Vmheap,caddr,nsize,0); 35 heapmem(Vmalloc_t* vm, Void_t* caddr, size_t csize, size_t nsize, Vmdisc_t* disc) argument
|
H A D | vmmopen.c | 159 size_t csize, size_t nsize, Vmdisc_t* disc) 161 static Void_t* mmvmmemory(vm, caddr, csize, nsize, disc) 165 size_t nsize; 177 if(nsize < csize) 180 if(nsize > mmdc->mm->size-MM_START) 183 csize = MM_START + nsize + 184 ((nsize % disc->round) < (disc->round/2) ? disc->round/2 : 0); 208 mmdc->mm->busy = nsize+MM_START; 158 mmvmmemory(Vmalloc_t* vm, Void_t* caddr, size_t csize, size_t nsize, Vmdisc_t* disc) argument
|
H A D | vmbest.c | 1272 static int okaddr(Void_t* addr, size_t nsize) argument 1274 static int okaddr(addr, nsize) 1276 size_t nsize; 1288 rv += *(((char*)addr)+nsize-1); 1302 size_t csize, size_t nsize, Vmdisc_t* disc) 1304 static Void_t* sbrkmem(vm, caddr, csize, nsize, disc) 1308 size_t nsize; /* new size */ 1319 return (Void_t*)VirtualAlloc(0,nsize,MEM_COMMIT,PAGE_READWRITE); 1320 else if(nsize == 0) 1344 if((addr+nsize) < add 1301 sbrkmem(Vmalloc_t* vm, Void_t* caddr, size_t csize, size_t nsize, Vmdisc_t* disc) argument [all...] |
/illumos-gate/usr/src/lib/libbc/libc/sys/4.2/ |
H A D | write.c | 54 int nsize; local 58 nsize = getmodsize(size, sizeof (struct compat_utmp), 61 if ((nbuf = (void *)malloc(nsize)) == NULL) { 66 (void) memset(nbuf, 0, nsize);
|
H A D | writev.c | 54 int nsize, total = 0; local 60 nsize = getmodsize(iov[i].iov_len, 64 if ((nbuf = (void *)malloc(nsize)) == NULL) { 69 (void) memset(nbuf, 0, nsize);
|
/illumos-gate/usr/src/lib/libbc/libc/sys/sys5/ |
H A D | write.c | 50 int nsize; local 54 nsize = getmodsize(size, sizeof (struct compat_utmp), 57 if ((nbuf = (void *)malloc(nsize)) == NULL) { 62 (void) memset(nbuf, 0, nsize);
|
H A D | writev.c | 51 int nsize, total = 0; local 57 nsize = getmodsize(iov[i].iov_len, 61 if ((nbuf = (void *)malloc(nsize)) == NULL) { 66 (void) memset(nbuf, 0, nsize);
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | getdents.c | 82 int osize, nsize; local 131 nsize = 0; 133 while (nsize < count) { 161 nsize += (uint_t)dp->d_reclen;
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_vxvm.c | 298 int nsize; local 318 nsize = (vxdl_libvxvm_get_conf)(VXVM_NAME_SIZE); 321 if (nsize == -1 || psize == -1) { 326 namep = (vm_name_t *)calloc(MAX_DISK_GROUPS, nsize); 388 pnp += nsize;
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_map.c | 72 size_t nsize = new_max * sizeof (void *); local 74 void **new_data = dt_zalloc(dtp, nsize); 120 size_t nsize = new_max * sizeof (void *); local 124 if ((new_pdesc = malloc(nsize)) == NULL || 125 (new_edesc = malloc(nsize)) == NULL) { 130 bzero(new_pdesc, nsize); 131 bzero(new_edesc, nsize); 322 size_t nsize = new_max * sizeof (void *); local 325 if ((new_aggdesc = malloc(nsize)) == NULL) 328 bzero(new_aggdesc, nsize); [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | malloc.c | 606 ssize_t nsize; local 633 nsize = n + offset; 635 /* check if nsize request could overflow in GETCORE */ 636 if ((size_t)nsize > MAX_MALLOC - (uintptr_t)addr) { 641 if ((size_t)nsize <= MAX_GETCORE) { 642 if (GETCORE(nsize) == ERRCORE) 661 nsize -= MAX_GETCORE; 662 delta = nsize;
|
/illumos-gate/usr/src/lib/libidmap/common/ |
H A D | utils.c | 63 size_t nsize; local 66 nsize = (udthandle->batch.idmap_update_batch_len + 69 udthandle->batch.idmap_update_batch_val, nsize); 89 size_t nsize, len; local 94 nsize = (len + _GET_IDS_SIZE_INCR) * sizeof (*t1); 95 t1 = realloc(gh->batch.idmap_mapping_batch_val, nsize); 103 nsize = (len + _GET_IDS_SIZE_INCR) * sizeof (*t2); 104 t2 = realloc(gh->retlist, nsize);
|
/illumos-gate/usr/src/lib/libipmi/common/ |
H A D | ipmi_hash.c | 61 ulong_t nsize; local 64 nsize = (size * 2) + 5; 65 return (nsize < IPMI_HASHCROSSOVER ? nsize : 75 ulong_t nsize; local 78 nsize = (size - 33) / 2; 79 return (nsize > IPMI_HASHCROSSUNDER ? nsize : 83 nsize = (size - 5) / 2; 85 return (nsize > IPMI_HASHMINSIZ 170 ipmi_hash_resize(ipmi_hash_t *ihp, ulong_t nsize) argument [all...] |
/illumos-gate/usr/src/cmd/avs/ncall/ |
H A D | ncalladm.c | 223 int nsize; local 368 nodes = getnodelist(fd, &nsize, &mnode); 390 for (i = 1; i < nsize; i++) { 397 if ((mnode == -1) || (i >= nsize)) { 407 if (nsize > 1) { 409 for (i = 1; i < nsize; i++) {
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs_cmd.c | 331 size_t nsize; local 343 nsize = strlen(name); 347 ret = kiconv(charset->inbound, &name, &nsize, 350 ret = kiconv(charset->outbound, &name, &nsize, 372 size_t nsize; local 385 nsize = strlen(((struct dirent64 *)data)->d_name); 392 ret = kiconv(charset->outbound, &iname, &nsize, &oname, &count, &err); 421 size_t nsize; local 441 nsize = 0; 451 if ((maxsize - nsize) < d [all...] |
/illumos-gate/usr/src/uts/sparc/v9/vm/ |
H A D | seg_nf.c | 345 size_t nsize = (seg->s_base + seg->s_size) - nbase; local 352 nseg = seg_alloc(seg->s_as, nbase, nsize);
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_whatis.c | 440 size_t nsize = MAX(2 * whatis_cb_size, WHATIS_CB_SIZE_MIN); local 443 size_t nbytes = sizeof (*whatis_cb) * nsize; 452 whatis_cb_size = nsize;
|
/illumos-gate/usr/src/lib/krb5/kadm5/ |
H A D | str_conv.c | 155 size_t nsize, psize; local 162 nsize = strlen(neg); 168 if (!strncasecmp(neg, string, nsize)) { 170 cpos += (int) nsize;
|
/illumos-gate/usr/src/uts/sun4u/starfire/os/ |
H A D | pda.c | 493 uint_t addr, size, naddr, nsize; local 507 nsize = mc[ncp].Memc_Size; 514 * if (nsize < overlap) then 518 if (nsize >= overlap) { 519 size += nsize - overlap;
|
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/ |
H A D | pi_subr.c | 72 * topo_mod_free(mod, nodes, nsize); 77 char *type_str, char *arc_str, mde_cookie_t **nodes, size_t *nsize) 91 *nsize = sizeof (mde_cookie_t) * total_mdenodes; 92 *nodes = topo_mod_zalloc(mod, *nsize); 95 *nsize = 0; 103 topo_mod_free(mod, *nodes, *nsize); 105 *nsize = 0; 76 pi_find_mdenodes(topo_mod_t *mod, md_t *mdp, mde_cookie_t mde_start, char *type_str, char *arc_str, mde_cookie_t **nodes, size_t *nsize) argument
|
/illumos-gate/usr/src/cmd/acct/ |
H A D | acctcom.c | 299 long nsize; local 322 nsize = sizeof(struct acct); /* make sure offset is signed */ 324 nsize = sizeof(struct o_acct); /* make sure offset is signed */ 325 fseek(stdin, (long)(-nsize), 2);
|
/illumos-gate/usr/src/uts/common/fs/ufs/ |
H A D | ufs_bmap.c | 321 long osize, nsize; local 450 nsize = fragroundup(fs, size); 451 if (nsize <= osize) 460 btodb(nsize - osize)) > INT_MAX) { 471 (int)nsize, &nb, cr); 485 nsize = fragroundup(fs, size); 487 nsize = bsize; 495 btodb(nsize - osize)) > INT_MAX) { 500 err = alloc(ip, pref, (int)nsize, &nb, cr); 524 PAGESIZE, u_offset_t) < nsize) { [all...] |
H A D | ufs_alloc.c | 183 int nsize, daddr_t *bnp, cred_t *cr) 197 (unsigned)nsize > fs->fs_bsize || fragoff(fs, nsize) != 0) { 200 "osize=%d, nsize=%d, fs=%s\n", 201 ip->i_dev, fs->fs_bsize, osize, nsize, fs->fs_fsmnt); 214 err = chkdq(ip, (long)btodb(nsize - osize), 0, cr, &errmsg, &len); 224 bno = fragextend(ip, cg, (long)bprev, osize, nsize); 245 request = (fs->fs_optim == FS_OPTTIME) ? fs->fs_bsize : nsize; 250 if (nsize < request) 251 (void) free(ip, bno + numfrags(fs, nsize), 182 realloccg(struct inode *ip, daddr_t bprev, daddr_t bpref, int osize, int nsize, daddr_t *bnp, cred_t *cr) argument 894 fragextend(struct inode *ip, int cg, long bprev, int osize, int nsize) argument [all...] |
/illumos-gate/usr/src/uts/common/disp/ |
H A D | thread.c | 1708 tsd_realloc(void *old, size_t osize, size_t nsize) argument 1712 new = kmem_zalloc(nsize, KM_SLEEP);
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/ |
H A D | nvfile.c | 436 nvf_node_name_get(char *id, char *name, uint_t nsize) argument 453 if (strlen(tmpname) < nsize) { 459 tmpname, nsize, id);
|