/illumos-gate/usr/src/cmd/lp/lib/access/ |
H A D | loadaccess.c | 122 register size_t nalloc, in _loadaccess() local 139 nalloc = ACC_MAX_GUESS; in _loadaccess() 140 list = (char **)Malloc((nalloc + 1) * sizeof(char *)); in _loadaccess() 155 if (nlist >= nalloc) { in _loadaccess() 156 nalloc += ACC_MAX_GUESS; in _loadaccess() 159 (nalloc + 1) * sizeof(char *) in _loadaccess() 185 if (nlist != nalloc) { in _loadaccess()
|
/illumos-gate/usr/src/cmd/lp/lib/filters/ |
H A D | loadfilters.c | 60 size_t nalloc; in loadfilters() local 63 nalloc = nfilters; in loadfilters() 66 nalloc = FL_MAX_GUESS; in loadfilters() 76 filters = (_FILTER *)Malloc((nalloc + 1) * sizeof(_FILTER)); in loadfilters() 94 if (++nfilters > nalloc) { in loadfilters() 95 nalloc = nfilters; in loadfilters() 98 (nalloc + 1) * sizeof(_FILTER) in loadfilters() 157 if (nfilters != nalloc) { in loadfilters()
|
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | nhash.c | 122 if (bp->nent >= bp->nalloc) { in add_cache() 123 if (bp->nalloc == 0) { in add_cache() 130 bp->nalloc + cp->bsz, in add_cache() 135 (bp->nalloc + cp->bsz))) != NULL) { in add_cache() 137 (sizeof (*bp->itempp) * bp->nalloc)); in add_cache() 140 (sizeof (*bp->itempp) * bp->nalloc)); in add_cache() 153 bp->nalloc += cp->bsz; in add_cache()
|
H A D | nhash.h | 50 int nalloc; member
|
/illumos-gate/usr/src/cmd/sendmail/db/mp/ |
H A D | mp_sync.c | 42 int ar_cnt, nalloc, next, maxpin, ret, wrote; local 63 nalloc = mp->stat.st_page_dirty + mp->stat.st_page_dirty / 2 + 10; 66 if ((ret = __os_malloc(nalloc * sizeof(BH *), NULL, &bharray)) != 0) 160 if (++ar_cnt >= nalloc || ar_cnt >= maxpin) { 242 __os_free(bharray, nalloc * sizeof(BH *)); 322 int ar_cnt, incomplete, nalloc, next, ret, wrote; local 338 nalloc = mp->stat.st_page_dirty + mp->stat.st_page_dirty / 2 + 10; 341 if ((ret = __os_malloc(nalloc * sizeof(BH *), NULL, &bharray)) != 0) 370 if (++ar_cnt >= nalloc) { 422 __os_free(bharray, nalloc * sizeof(BH *));
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | devpolicy.c | 151 int nalloc = 0, cnt = 0; in loadpolicy() local 171 if (cnt >= nalloc) { in loadpolicy() 172 nalloc += PLCY_CHUNK; in loadpolicy() 173 mem = realloc(mem, nalloc * devplcysys_sz); in loadpolicy() 176 nalloc * devplcysys_sz); in loadpolicy()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | soconfig.c | 421 size_t tupcnt, nalloc; in parse_filter_params() local 509 nalloc = 4; in parse_filter_params() 510 socktuples = calloc(nalloc, sizeof (sof_socktuple_t)); in parse_filter_params() 522 if (tupcnt == nalloc) { in parse_filter_params() 525 nalloc *= 2; in parse_filter_params() 527 nalloc * sizeof (sof_socktuple_t)); in parse_filter_params()
|
/illumos-gate/usr/src/uts/common/io/usb/usba/ |
H A D | usba_bos.c | 114 uint_t ncaps, nalloc; in usba_bos_save() local 154 nalloc = ncaps; in usba_bos_save() 155 bos = kmem_zalloc(sizeof (usb_bos_t) * nalloc, KM_SLEEP); in usba_bos_save() 213 ud->usb_bos_nalloc = nalloc; in usba_bos_save() 220 kmem_free(bos, sizeof (usb_bos_t) * nalloc); in usba_bos_save()
|
/illumos-gate/usr/src/cmd/ptools/pfiles/ |
H A D | pfiles.c | 664 int i = 0, nalloc = 2, len = nalloc * sizeof (*fi); in show_sockfilters() local 668 fi = calloc(nalloc, sizeof (*fi)); in show_sockfilters() 681 if (fi->fi_pos >= nalloc) { in show_sockfilters() 684 nalloc = fi->fi_pos + 1; in show_sockfilters() 685 if (nalloc > MAXNALLOC) in show_sockfilters() 687 len = nalloc * sizeof (*fi); in show_sockfilters() 688 new = realloc(fi, nalloc * sizeof (*fi)); in show_sockfilters()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/vmalloc/ |
H A D | vmprofile.c | 40 #define PFNALLOC(pf) ((pf)->data.data.nalloc) 56 Vmulong_t nalloc; /* number of alloc calls */ member 363 reg Vmulong_t nalloc, alloc, nfree, free; local 377 alloc = free = nalloc = nfree = 0; 396 nalloc += PFNALLOC(pf); 408 bufp = pfsummary(bufp,nalloc,alloc,nfree,free,0,0); 427 alloc = free = nalloc = nfree = 0; 431 nalloc += PFNALLOC(pf); 439 bufp = pfsummary(bufp,nalloc,alloc,nfree,free,0,0);
|
/illumos-gate/usr/src/uts/common/io/sfxge/ |
H A D | sfxge_intr.c | 507 unsigned int nalloc; in sfxge_intr_init() local 627 nalloc = pow2_le(sip->si_nalloc); in sfxge_intr_init() 633 while (--index >= nalloc) { in sfxge_intr_init() 640 sip->si_nalloc = nalloc; in sfxge_intr_init() 641 DTRACE_PROBE1(nalloc, unsigned int, sip->si_nalloc); in sfxge_intr_init()
|
/illumos-gate/usr/src/lib/libpcsc/common/ |
H A D | libpcsc.c | 351 uint32_t len, ulen, npaths, nalloc, off, i; in SCardListReaders() local 376 npaths = nalloc = 0; in SCardListReaders() 404 if (npaths == nalloc) { in SCardListReaders() 407 nalloc += 8; in SCardListReaders() 408 tmp = reallocarray(readers, nalloc, sizeof (char *)); in SCardListReaders()
|
/illumos-gate/usr/src/test/nvme-tests/tests/libnvme/ |
H A D | ns-disc.c | 335 uint32_t nbd = 0, nni = 0, nact = 0, nalloc = 0, nns = 0; in main() local 359 nalloc++; in main() 394 if (!ns_disc_count(ctrl, NVME_NS_DISC_F_ALLOCATED, nalloc)) { in main()
|
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/ |
H A D | util.c | 194 (struct q_node *)qp->nalloc(sizeof (struct q_node)); in queue_add() 252 newqp->nalloc = nodealloc; in new_queue()
|
H A D | util.h | 77 void *(*nalloc)(size_t); member
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | names.c | 52 static struct name *nalloc(char str[]); 68 nalloc(char str[]) in nalloc() function 133 t = nalloc(nbuf); in extract() 470 np = nalloc(cp); in gexpand()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | kobj.h | 150 int nalloc; member
|
/illumos-gate/usr/src/cmd/dc/ |
H A D | dc.h | 165 char *nalloc(char *, unsigned int);
|
H A D | dc.c | 2177 ptr = nalloc(hptr->beg, (unsigned)size); in copy() 2180 if ((ptr = nalloc(hptr->beg, (unsigned)size)) == NULL) { in copy() 2416 nalloc(char *p, unsigned int nbytes) in nalloc() function
|
/illumos-gate/usr/src/cmd/mdb/common/modules/libc/ |
H A D | libc.c | 1177 uint_t nalloc; in d_tsd() local 1179 if (mdb_vread(&nalloc, sizeof (nalloc), in d_tsd() 1184 if (key < nalloc) { in d_tsd()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | fio.c | 324 int nalloc = 0; in flist_nalloc() local 330 nalloc += fip->fi_list[fd >> 1].uf_alloc; in flist_nalloc() 332 return (nalloc); in flist_nalloc()
|
H A D | kstat_fr.c | 182 kstat_named_t nalloc; member 888 system_pages_kstat.nalloc.value.ul = kobj_stat.nalloc; in system_pages_kstat_update()
|
/illumos-gate/usr/src/uts/common/fs/proc/ |
H A D | prvnops.c | 5220 ulong_t nalloc; in rebuild_objdir() local 5231 if ((nalloc = avl_numnodes(&as->a_segtree)) == 0 || in rebuild_objdir() 5239 nalloc = (nalloc + 0xf) & ~0xf; /* multiple of 16 */ in rebuild_objdir() 5240 dir = kmem_zalloc(nalloc * sizeof (vnode_t *), KM_SLEEP); in rebuild_objdir() 5254 ASSERT(nentries < nalloc); in rebuild_objdir() 5262 as->a_sizedir = nalloc; in rebuild_objdir() 5319 kmem_free(dir, nalloc * sizeof (vnode_t *)); in rebuild_objdir()
|
/illumos-gate/usr/src/uts/common/krtld/ |
H A D | kobj.c | 4067 kobj_stat.nalloc += size; in kobj_alloc()
|