/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | nvtype.c | 215 Namval_t *nq = pp->ptype->np; in name_chtype() local 219 cp = nv_name(nq); in name_chtype() 220 if((ap = nv_arrayptr(nq)) && !(ap->nelem&ARRAY_UNDEF) && (sub= nv_getsub(nq))) in name_chtype() 299 Namval_t *nq = nv_namptr(dp->nodes,i); in fixnode() local 301 if(fp=nv_hasdisc(nq,&chtype_disc)) in fixnode() 302 nv_disc(nq, fp, NV_POP); in fixnode() 303 if(nv_isattr(nq,NV_REF)) in fixnode() 305 nq->nvalue.nrp = nrp++; in fixnode() 306 nv_setsize(nq,0); in fixnode() 307 if(strchr(nq->nvname,'.')) in fixnode() [all …]
|
H A D | nvdisc.c | 251 register Namval_t *nq = vp->disc[type]; in assign() local 273 if(!nq || isblocked(bp,type)) in assign() 289 nq = vp->disc[type=UNASSIGN]; in assign() 290 if(nq && !isblocked(bp,type)) in assign() 296 sh_fun(nq,np,(char**)0); in assign() 331 else if(!nq || !isblocked(bp,type)) in assign() 345 if((nq=vp->disc[n]) && !nv_isattr(nq,NV_NOFREE)) in assign() 347 _nv_unset(nq,0); in assign() 348 dtdelete(root,nq); in assign() 358 if(nq && nq->nvalue.rp->running==1) in assign() [all …]
|
H A D | name.c | 761 register Namval_t *np=0, *nq=0; in nv_create() local 841 if(!(nq = nv_search((char*)np,shp->var_base,HASH_BUCKET))) in nv_create() 843 nq = np; in nv_create() 887 if(nq==np) in nv_create() 892 else if(nq) in nv_create() 894 if(nv_isnull(np) && c!='.' && ((np->nvfun=nv_cover(nq)) || nq==OPTINDNOD)) in nv_create() 896 np->nvname = nq->nvname; in nv_create() 898 if(shp->namespace && nv_dict(shp->namespace)==shp->var_tree && nv_isattr(nq,NV_EXPORT)) in nv_create() 901 if(nq==OPTINDNOD) in nv_create() 903 np->nvfun = nq->nvfun; in nv_create() [all …]
|
H A D | array.c | 405 Namval_t *nq; in nv_arraysettype() local 414 if(nq = nv_search(sub, ap->table, NV_ADD)) in nv_arraysettype() 416 if(!nq->nvfun && nq->nvalue.cp && *nq->nvalue.cp==0) in nv_arraysettype() 417 _nv_unset(nq,NV_RDONLY); in nv_arraysettype() 418 nv_arraychild(np,nq,0); in nv_arraysettype() 421 sfprintf(sh.strbuf,"%s=%s",nv_name(nq),nv_getval(np)); in nv_arraysettype() 424 if(!nv_clone(tp,nq,flags|NV_NOFREE)) in nv_arraysettype() 428 nv_offattr(nq,NV_RDONLY); in nv_arraysettype() 450 Namval_t *nq, *mq; in array_clone() local 462 if(nq=nv_opensub(np)) in array_clone() [all …]
|
H A D | nvtree.c | 150 Namval_t *nq=0,fake; in nv_diropen() local 217 np = (*nfp->disc->createf)(nq,last,0,nfp); in nv_diropen() 221 if(nq = nv_opensub(np)) in nv_diropen() 222 np = nq; in nv_diropen() 258 nq = np; in nv_diropen() 280 Namval_t *nq; in nv_dirnext() local 307 if(dp->nextnode && !dp->hp && (nq = (Namval_t*)dp->table)) in nv_dirnext() 309 Namarr_t *ap = nv_arrayptr(nq); in nv_dirnext() 310 if(ap && (ap->nelem&ARRAY_SCAN) && nv_nextsub(nq)) in nv_dirnext() 698 register Namval_t *np, *nq, *last_table=wp->shp->last_table; in outval() local [all …]
|
H A D | arith.c | 139 Namval_t *nq; in scope() local 177 if(nq = nv_opensub(np)) in scope() 178 np = nq; in scope() 184 if(ap && ap->table && (nq=nv_search(nv_getsub(np),ap->table,NV_ADD))) in scope() 185 nq->nvenv = (char*)np; in scope() 186 if(nq && nv_isnull(nq)) in scope() 187 np = nv_arraychild(np,nq,0); in scope()
|
H A D | xec.c | 677 static int set_instance(Shell_t *shp,Namval_t *nq, Namval_t *node, struct Namref *nr) in set_instance() argument 682 if(!nv_isattr(nq,NV_MINIMAL|NV_EXPORT|NV_ARRAY) && (np=(Namval_t*)nq->nvenv) && nv_isarray(np)) in set_instance() 683 nq = np; in set_instance() 684 cp = nv_name(nq); in set_instance() 686 nr->np = nq; in set_instance() 694 if((ap=nv_arrayptr(nq)) && (sp = nv_getsub(nq))) in set_instance() 697 if(shp->var_tree!=shp->var_base && !nv_search((char*)nq,nr->root,HASH_BUCKET|HASH_NOSCOPE)) in set_instance() 719 static void unset_instance(Namval_t *nq, Namval_t *node, struct Namref *nr,long mode) in unset_instance() argument 1031 Namval_t *np, *nq, *last_table; in sh_exec() local 1047 nq = (Namval_t*)(t->com.comnamq); in sh_exec() [all …]
|
H A D | macro.c | 1032 Namval_t *np, *nq; in sh_macfun() local 1033 np = nv_bfsearch(name,shp->fun_tree,&nq,(char**)0); in sh_macfun() 1353 Namval_t *nq; in varsub() local 1355 if(ap && !ap->fixed && (nq=nv_opensub(np))) in varsub() 1357 if(ap && (nq=nv_opensub(np))) in varsub() 1359 ap = nv_arrayptr(np=nq); in varsub() 1422 Namval_t *nq = nv_type(np); in varsub() local 1424 if(nq) in varsub() 1425 nv_typename(nq,mp->shp->strbuf); in varsub()
|
H A D | subshell.c | 422 register Namval_t *np,*nq; in table_unset() local 424 for(np=(Namval_t*)dtfirst(root);np;np=nq) in table_unset() 426 nq = (Namval_t*)dtnext(root,np); in table_unset()
|
H A D | init.c | 1739 Namval_t *nq=0; in create_stat() local 1747 nq = nv_namptr(sp->nodes,i); in create_stat() 1748 if((n==0||memcmp(name,nq->nvname,n)==0) && nq->nvname[n]==0) in create_stat() 1751 nq = 0; in create_stat() 1753 if(nq) in create_stat() 1760 return(nq); in create_stat()
|
/illumos-gate/usr/src/lib/libmvec/common/ |
H A D | __vrem_pio2m.c | 173 int nq, ip, n, i, j, k, eq0, eqnqm1; in __vlibm_rem_pio2m() local 204 nq = 5; in __vlibm_rem_pio2m() 212 z = q[nq] * twon24; in __vlibm_rem_pio2m() 213 for (j = nq-1; j >= 1; j--) { in __vlibm_rem_pio2m() 253 for (j = 0; j <= nq; j++) { in __vlibm_rem_pio2m() 259 if (nq - j < 4) { in __vlibm_rem_pio2m() 260 k = 4 - (nq - j); in __vlibm_rem_pio2m() 268 for (i = nq + 1; i <= nq + k; i++) { in __vlibm_rem_pio2m() 275 nq += k; in __vlibm_rem_pio2m() 281 nq = nq - j; in __vlibm_rem_pio2m() [all …]
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | ldap_nisdbquery.c | 625 int i, nq, nn; in filterQuery() local 632 nq = *numQueries; in filterQuery() 633 new = am(myself, nq * sizeof (new[0])); in filterQuery() 635 attr = am(myself, nq * sizeof (attr[0])); in filterQuery() 640 freeQueries(q, nq); in filterQuery() 643 freeObjAttr(*objAttr, nq); in filterQuery() 650 for (i = 0, nn = 0; i < nq; i++) { in filterQuery() 695 int nq; in createNisPlusEntry() local 707 for (r = 0, nq = 0; r < t->numRulesFromLDAP; r++) { in createNisPlusEntry() 813 if (nq <= 0) in createNisPlusEntry() [all …]
|
H A D | db_mindex2.cc | 729 int i, na, nq = 0, stat, stat2, numAttrs, ret; in queryLDAP() local 1434 int i, size, nq = 0; in storeLDAP() local 1492 nq++; in storeLDAP() 1526 (nq+count) * sizeof (rv[0])); in storeLDAP() 1528 (nq+count) * sizeof (qa[0])); in storeLDAP() 1531 (nq+count) * sizeof (qold[0])); in storeLDAP() 1534 freeQueries(qa, nq); in storeLDAP() 1536 freeQueries(qat, nq); in storeLDAP() 1538 freeRuleValue(rv, nq); in storeLDAP() 1540 freeRuleValue(rvt, nq); in storeLDAP() [all …]
|
H A D | ldap_map.c | 816 mapToLDAP(__nis_table_mapping_t *tm, int nq, db_query **old, db_query **new, in mapToLDAP() argument 828 if (tm == 0 || (old == 0 && new == 0) || nq <= 0) in mapToLDAP() 832 if (nq == 1) { in mapToLDAP() 856 dn = am(myself, (firstOnly ? 1 : nq) * maxMatches * sizeof (dn[0])); in mapToLDAP() 857 odn = am(myself, (firstOnly ? 1 : nq) * maxMatches * sizeof (odn[0])); in mapToLDAP() 858 rv = am(myself, (firstOnly ? 1 : nq) * maxMatches * sizeof (rv[0])); in mapToLDAP() 859 tpa = am(myself, (firstOnly ? 1 : nq) * maxMatches * sizeof (tpa[0])); in mapToLDAP() 870 if (nq != 1) in mapToLDAP() 880 myself, NIL(tm->objName), nq, maxMatches); in mapToLDAP() 885 for (iq = 0, rnq = 0; iq < nq; iq++) { in mapToLDAP() [all …]
|
H A D | db_mindex3.cc | 338 int i, na, nau, nq = 0, xid = 0; in entriesFromLDAPreal() local 400 res = mapFromLDAP(t, q, &nq, dbId, &stat, &oa); in entriesFromLDAPreal() 405 ldap_err2string(stat), nq); in entriesFromLDAPreal() 414 table->mapping.enumEntries = nq; in entriesFromLDAPreal() 559 freeQueries(res, nq); in entriesFromLDAPreal() 640 myself, nq); in entriesFromLDAPreal() 669 for (i = 0, na = 0; i < nq; i++) { in entriesFromLDAPreal() 864 freeObjAttr(oa, nq); in entriesFromLDAPreal()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | mkservice.c | 284 register Namval_t* nq = sp->disc[ACCEPT]; in Accept() local 291 if (nq) in Accept() 299 if (sh_fun(nq, sp->node, av)) in Accept() 312 register Namval_t* nq; in Action() local 316 nq = sp->disc[CLOSE]; in Action() 318 nq = sp->disc[ACTION]; in Action() 319 if (nq) in Action() 327 r=sh_fun(nq, sp->node, av); in Action() 352 register Namval_t* nq; in setdisc() local 362 if (nq = sp->disc[i]) in setdisc() [all …]
|
H A D | shiocmd_solaris.c | 228 register Namval_t *nq; in sh_newnode() local 232 nq = nv_search(stkptr(stkstd,offset),sh.var_tree,NV_ADD); in sh_newnode() 235 nv_putval(nq,val,fp->flags|NV_NOFREE); in sh_newnode() 237 (*fp->make)(nq); in sh_newnode() 238 return(nq); in sh_newnode() 246 Namval_t *nq,**nodes = (Namval_t**)(dcp+1); in fieldcreate() local 250 if(!(nq=nodes[n])) in fieldcreate() 252 nodes[n] = nq = sh_newnode(fp,np); in fieldcreate() 256 return(nq); in fieldcreate() 257 return(nq); in fieldcreate()
|
H A D | whence.c | 142 Namval_t *nq; in whence() local 188 if(np= nv_bfsearch(name, root, &nq, ¬used)) in whence()
|
/illumos-gate/usr/src/cmd/krb5/kadmin/kdcmgr/ |
H A D | klookup.c | 54 int len = 0, anslen, hostlen, nq, na, type, class; in main() local 120 nq = ntohs(h->qdcount); in main() 124 if (nq != 1 || na < 1) { in main()
|
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | t4_ioctl.c | 2030 unsigned int ibq_rdaddr, obq_rdaddr, nq; in read_cim_qcfg() local 2046 nq = CIM_NUM_IBQ + t4cimqcfg.num_obq; in read_cim_qcfg() 2048 rc = -t4_cim_read(sc, ibq_rdaddr, 4 * nq, t4cimqcfg.stat); in read_cim_qcfg()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | strsubr.c | 4235 queue_t *nq; in backenable() local 4247 for (nq = backq(q); nq && !nq->q_qinfo->qi_srvp; nq = backq(nq)) { in backenable() 4248 ASSERT(STRMATED(q->q_stream) || STREAM(q) == STREAM(nq)); in backenable() 4251 if (nq) { in backenable() 4262 if (freezer != curthread || STREAM(q) != STREAM(nq)) { in backenable() 4263 mutex_enter(QLOCK(nq)); in backenable() 4269 ASSERT(MUTEX_HELD(QLOCK(nq))); in backenable() 4272 setqback(nq, pri); in backenable() 4273 qenable_locked(nq); in backenable() 4274 if (freezer != curthread || STREAM(q) != STREAM(nq)) in backenable() [all …]
|
/illumos-gate/usr/src/cmd/nvmeadm/ |
H A D | nvmeadm_print.c | 2323 nvme_nqueues_t nq; in nvme_print_feat_nqueues() local 2325 nq.r = cdw0; in nvme_print_feat_nqueues() 2327 nq.b.nq_nsq + 1, NULL, NULL); in nvme_print_feat_nqueues() 2329 nq.b.nq_ncq + 1, NULL, NULL); in nvme_print_feat_nqueues()
|
/illumos-gate/usr/src/uts/common/io/nvme/ |
H A D | nvme.c | 3298 nvme_nqueues_t nq = { 0 }; in nvme_set_nqueues() local 3330 nq.b.nq_nsq = nvme->n_submission_queues - 1; in nvme_set_nqueues() 3331 nq.b.nq_ncq = nvme->n_completion_queues - 1; in nvme_set_nqueues() 3333 ret = nvme_set_features(nvme, B_FALSE, 0, NVME_FEAT_NQUEUES, nq.r, in nvme_set_nqueues() 3334 &nq.r); in nvme_set_nqueues() 3341 nq.b.nq_nsq + 1); in nvme_set_nqueues() 3343 nq.b.nq_ncq + 1); in nvme_set_nqueues()
|
/illumos-gate/usr/src/uts/common/io/cxgbe/common/ |
H A D | t4_hw.c | 5471 int nq = min(n, 32); in t4_config_rss_range() local 5478 cmd.niqid = cpu_to_be16(nq); in t4_config_rss_range() 5483 start += nq; in t4_config_rss_range() 5484 n -= nq; in t4_config_rss_range() 5490 while (nq > 0) { in t4_config_rss_range() 5498 int nqbuf = min(3, nq); in t4_config_rss_range() 5500 nq -= nqbuf; in t4_config_rss_range()
|