Home
last modified time | relevance | path

Searched refs:nq (Results 1 – 25 of 38) sorted by relevance

12

/titanic_51/usr/src/lib/libshell/common/sh/
H A Dnvtype.c212 Namval_t *nq = pp->ptype->np; in name_chtype() local
216 cp = nv_name(nq); in name_chtype()
217 if((ap = nv_arrayptr(nq)) && !(ap->nelem&ARRAY_UNDEF) && (sub= nv_getsub(nq))) in name_chtype()
291 Namval_t *nq = nv_namptr(dp->nodes,i); in fixnode() local
293 if(fp=nv_hasdisc(nq,&chtype_disc)) in fixnode()
294 nv_disc(nq, fp, NV_POP); in fixnode()
295 if(nv_isattr(nq,NV_REF)) in fixnode()
297 nq->nvalue.nrp = nrp++; in fixnode()
298 nv_setsize(nq,0); in fixnode()
299 if(strchr(nq->nvname,'.')) in fixnode()
[all …]
H A Darray.c301 Namval_t *nq; in nv_arraysettype() local
310 if(nq = nv_search(sub, ap->table, NV_ADD)) in nv_arraysettype()
312 if(!nq->nvfun && nq->nvalue.cp && *nq->nvalue.cp==0) in nv_arraysettype()
313 _nv_unset(nq,NV_RDONLY); in nv_arraysettype()
314 nv_arraychild(np,nq,0); in nv_arraysettype()
317 sfprintf(sh.strbuf,"%s=%s",nv_name(nq),nv_getval(np)); in nv_arraysettype()
320 if(!nv_clone(tp,nq,flags|NV_NOFREE)) in nv_arraysettype()
324 nv_offattr(nq,NV_RDONLY); in nv_arraysettype()
346 Namval_t *nq, *mq; in array_clone() local
358 if(nq=nv_opensub(np)) in array_clone()
[all …]
H A Dname.c690 register Namval_t *np=0, *nq=0; in nv_create() local
759 nq = np; in nv_create()
796 if(nq==np) in nv_create()
801 else if(nq) in nv_create()
803 if(nv_isnull(np) && c!='.' && (np->nvfun=nv_cover(nq))) in nv_create()
804 np->nvname = nq->nvname; in nv_create()
844 if(np==nq) in nv_create()
877 if(!nq && *sp=='[' && *cp==0 && cp[-1]==']') in nv_create()
980 if(!(nq = nv_opensub(np))) in nv_create()
993 if(ap && ap->table && (nq=nv_search(sub,ap->table,n))) in nv_create()
[all …]
H A Dnvdisc.c242 register Namval_t *nq = vp->disc[type]; in assign() local
264 if(!nq || isblocked(bp,type)) in assign()
280 nq = vp->disc[type=UNASSIGN]; in assign()
281 if(nq && !isblocked(bp,type)) in assign()
287 sh_fun(nq,np,(char**)0); in assign()
322 else if(!nq || !isblocked(bp,type)) in assign()
335 if((nq=vp->disc[n]) && !nv_isattr(nq,NV_NOFREE)) in assign()
337 nv_unset(nq); in assign()
338 dtdelete(root,nq); in assign()
359 register Namval_t *nq = vp->disc[type]; in lookup() local
[all …]
H A Dnvtree.c149 Namval_t *nq=0,fake; in nv_diropen() local
215 np = (*nfp->disc->createf)(nq,last,0,nfp); in nv_diropen()
219 if(nq = nv_opensub(np)) in nv_diropen()
220 np = nq; in nv_diropen()
256 nq = np; in nv_diropen()
278 Namval_t *nq; in nv_dirnext() local
305 if(dp->nextnode && !dp->hp && (nq = (Namval_t*)dp->table)) in nv_dirnext()
307 Namarr_t *ap = nv_arrayptr(nq); in nv_dirnext()
308 if(ap && (ap->nelem&ARRAY_SCAN) && nv_nextsub(nq)) in nv_dirnext()
648 register Namval_t *np, *nq; in outval() local
[all …]
H A Dxec.c611 static int set_instance(Shell_t *shp,Namval_t *nq, Namval_t *node, struct Namref *nr) in set_instance() argument
613 char *sp=0,*cp = nv_name(nq); in set_instance()
616 nr->np = nq; in set_instance()
620 if((ap=nv_arrayptr(nq)) && (sp = nv_getsub(nq))) in set_instance()
639 static void unset_instance(Namval_t *nq, Namval_t *node, struct Namref *nr,long mode) in unset_instance() argument
646 nv_putsub(nq, nr->sub, mode); in unset_instance()
706 Namval_t *np, *nq, *last_table; in sh_exec() local
722 nq = (Namval_t*)(t->com.comnamq); in sh_exec()
734 np = nv_bfsearch(com0, shp->bltin_tree, &nq, &cp); in sh_exec()
751 np = nv_bfsearch(com0, root, &nq, &cp); in sh_exec()
[all …]
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dnvtype.c215 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, in fixnode()
368 register Namval_t *nq, *nr; clone_type() local
502 Namval_t *nq=0; create_type() local
549 Namval_t *nq; put_type() local
567 Namval_t *nq; put_type() local
620 Namval_t *np,*nq,*tp; typeinfo() local
749 Namval_t *np=0,*nq; std_disc() local
853 Namval_t *mp=nodes[0], *bp=0, *np, *nq, **mnodes=nodes; nv_mktype() local
1296 Namval_t *nq; type_init() local
1436 Namval_t *mp, *nq, *nr, *tp; nv_mkstruct() local
[all...]
H A Dnvdisc.c251 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()
373 register Namval_t *nq = vp->disc[type]; lookup() local
1098 Namval_t *np, *nq; nv_bfsearch() local
1187 register Namval_t *np, *nq=0; sh_addbuiltin() local
1329 register Namval_t *nq, *mp; put_table() local
[all...]
H A Dname.c761 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 in nv_create()
2447 register Namval_t *np,*nq, *npnext; table_unset() local
2545 Namval_t *mp, *nq; _nv_unset() local
3394 register Namval_t *nq=0, *nr=0; nv_setref() local
3579 Namval_t *nq; nv_unref() local
3677 Namval_t *nq= shp->last_table, *mp= (Namval_t*)np->nvenv; nv_name() local
[all...]
H A Darray.c405 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_RDONL in nv_arraysettype()
450 Namval_t *nq, *mq; array_clone() local
1025 nv_arraychild(Namval_t * np,Namval_t * nq,int c) nv_arraychild() argument
[all...]
H A Dnvtree.c150 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_tabl in outval() local
1019 Namval_t *nq, *mq; walk_tree() local
[all...]
H A Darith.c139 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 Dxec.c677 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_ argument
1031 Namval_t *np, *nq, *last_table; sh_exec() local
2765 Namval_t *mp, *nq; sh_exec() local
3430 Namval_t *np, *nq, **nref; sh_funscope() local
3556 sh_fun(Namval_t * np,Namval_t * nq,char * argv[]) sh_fun() argument
[all...]
/titanic_51/usr/src/lib/libmvec/common/
H A D__vrem_pio2m.c173 int nq, ip, n, i, j, k, eq0, eqnqm1; in __vlibm_rem_pio2m() local
181 /* compute q[0,...,5] = x * ipio2 and initialize nq and eqnqm1 */ in __vlibm_rem_pio2m()
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()
262 * compute q[nq+1] to q[nq in __vlibm_rem_pio2m()
[all...]
/titanic_51/usr/src/lib/libnisdb/
H A Dldap_nisdbquery.c625 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()
795 * Of course, we already have 'nq' db_quer in createNisPlusEntry()
1057 int i, nqp, nq, *nnp = 0, nv; ruleValue2Query() local
[all...]
H A Ddb_mindex2.cc729 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 Ddb_mindex3.cc338 int i, na, nau, nq = 0, xid = 0; in entriesFromLDAPreal() local
400 res = mapFromLDAP(t, q, &nq, dbId, &stat, &oa); in entriesFromLDAPreal()
403 "%s: mapFromLDAP() => 0x%x, status=%d %s; nq = %d", 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()
858 freeObjAttr(oa, nq); in entriesFromLDAPreal()
H A Dldap_map.c779 * 'nq' is the number of elements in the 'old', 'new', and 'rvIn'
803 * (zo_owner, etc.) to be written to LDAP. 'rvIn' is an array with 'nq'
811 * an array of 'nq' elements, though if 'firstOnly' is set, it should be
818 mapToLDAP(__nis_table_mapping_t *tm, int nq, db_query **old, db_query **new, in mapToLDAP() argument
830 if (tm == 0 || (old == 0 && new == 0) || nq <= 0) in mapToLDAP()
834 if (nq == 1) { in mapToLDAP()
854 * we need nq * maxMatches elements in each array. However, if in mapToLDAP()
858 dn = am(myself, (firstOnly ? 1 : nq) * maxMatches * sizeof (dn[0])); in mapToLDAP()
859 odn = am(myself, (firstOnly ? 1 : nq) * maxMatches * sizeof (odn[0])); in mapToLDAP()
860 rv = am(myself, (firstOnly ? 1 : nq) * maxMatche in mapToLDAP()
[all...]
/titanic_51/usr/src/lib/libshell/common/bltins/
H A Dmkservice.c284 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 Dshiocmd_solaris.c228 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 Dwhence.c142 Namval_t *nq; in whence() local
188 if(np= nv_bfsearch(name, root, &nq, &notused)) in whence()
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dmkservice.c284 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 in setdisc()
[all...]
H A Dshiocmd_solaris.c228 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()
[all...]
/titanic_51/usr/src/cmd/krb5/kadmin/kdcmgr/
H A Dklookup.c54 int len = 0, anslen, hostlen, nq, na, type, class; in main() local
118 nq = ntohs(h->qdcount); in main()
122 if (nq != 1 || na < 1) { in main()
/titanic_51/usr/src/uts/common/avs/ns/rdc/
H A Drdc_diskq.c963 net_queue *nq = &group->ra_queue; in rdc_qfill_shldwakeup() local
966 ASSERT(MUTEX_HELD(&nq->net_qlock)); in rdc_qfill_shldwakeup()
971 if (nq->qfill_sleeping != RDC_QFILL_ASLEEP) in rdc_qfill_shldwakeup()
974 if (nq->qfflags & RDC_QFILLSTOP) in rdc_qfill_shldwakeup()
977 if (nq->qfflags & RDC_QFILLSLEEP) in rdc_qfill_shldwakeup()
990 if (nq->qfill_sleeping == RDC_QFILL_ASLEEP) { in rdc_qfill_shldwakeup()
991 if (nq->hwmhit) { in rdc_qfill_shldwakeup()
992 if (nq->blocks <= RDC_LOW_QBLOCKS) { in rdc_qfill_shldwakeup()
993 nq->hwmhit = 0; in rdc_qfill_shldwakeup()
1684 net_queue *nq in rdc_diskq_buf2queue() local
2318 net_queue *nq = &group->ra_queue; rdc_read_diskq_buf() local
2614 net_queue *nq = &krdc->group->ra_queue; rdc_qfill_shldsleep() local
[all...]

12