Home
last modified time | relevance | path

Searched refs:np (Results 76 – 100 of 410) sorted by relevance

12345678910>>...17

/illumos-gate/usr/src/contrib/ast/src/lib/libast/vmalloc/
H A Dvmbest.c370 reg Block_t *fp, *np, *t, *list; local
416 { np = (Block_t*)((Vmuchar_t*)fp+size+sizeof(Head_t));
417 s = SIZE(np); /**/ASSERT(s > 0);
420 if(np == vd->wild)
422 else REMOVE(vd,np,INDEX(s),t,bestsearch);
428 SIZE(np) = 0;
437 np = NEXT(fp); /**/ASSERT(ISBUSY(SIZE(np)));
438 /**/ASSERT(!ISJUNK(SIZE(np)));
439 SETPFREE(SIZE(np));
449 if(np->body.data >= vd->seg->baddr)
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dxec.c280 Namval_t *np=com->comnamp; in p_comarg() local
284 if(com->comstate && np) in p_comarg()
290 bp->bnode = np; in p_comarg()
292 bp->ptr = nv_context(np); in p_comarg()
295 ((Shbltin_f)funptr(np))(0,(char**)0, bp); in p_comarg()
300 if(com->comarg && !np) in p_comarg()
453 static void put_level(Namval_t* np,const char *val,int flags,Namfun_t *fp) in put_level() argument
457 int16_t level, oldlevel = (int16_t)nv_getnum(np); in put_level()
458 nv_putv(np,val,flags,fp); in put_level()
461 fp = nv_stack(np, NIL(Namfun_t*)); in put_level()
[all …]
H A Dmacro.c964 Namval_t *np; in prefix() local
969 np = nv_search(id, shp->var_tree,0); in prefix()
973 if(np && nv_isref(np)) in prefix()
978 while(nv_isref(np) && np->nvalue.cp) in prefix()
980 sub = nv_refsub(np); in prefix()
981 np = nv_refnode(np); in prefix()
983 nv_putsub(np,sub,0L); in prefix()
985 id = (char*)malloc(strlen(cp)+1+(n=strlen(sp=nv_name(np)))+ (sub?strlen(sub)+3:1)); in prefix()
1032 Namval_t *np, *nq; in sh_macfun() local
1033 np = nv_bfsearch(name,shp->fun_tree,&nq,(char**)0); in sh_macfun()
[all …]
/illumos-gate/usr/src/cmd/svc/configd/
H A Dfile_object.c530 rc_node_t *np; in fill_child_callback() local
547 if ((np = rc_node_alloc()) == NULL) in fill_child_callback()
550 np = rc_node_setup(np, lp, name, cp->ci_parent); in fill_child_callback()
551 rc_node_rele(np); in fill_child_callback()
561 rc_node_t *np; in fill_snapshot_callback() local
584 if ((np = rc_node_alloc()) == NULL) in fill_snapshot_callback()
587 np = rc_node_setup_snapshot(np, lp, name, snap_id, cp->ci_parent); in fill_snapshot_callback()
588 rc_node_rele(np); in fill_snapshot_callback()
825 scope_setup_child_info(rc_node_t *np, uint32_t type, child_info_t *cip) in scope_setup_child_info() argument
831 cip->ci_parent = np; in scope_setup_child_info()
[all …]
/illumos-gate/usr/src/uts/common/fs/dev/
H A Dsdev_ncache.c231 nvp_devname_t *np; in sdev_ncache_unpack_nvlist() local
245 np = kmem_zalloc(sizeof (nvp_devname_t), KM_SLEEP); in sdev_ncache_unpack_nvlist()
250 kmem_free(np, sizeof (nvp_devname_t)); in sdev_ncache_unpack_nvlist()
254 np->nvp_npaths = nstrs; in sdev_ncache_unpack_nvlist()
255 np->nvp_paths = kmem_zalloc(nstrs * sizeof (char *), KM_SLEEP); in sdev_ncache_unpack_nvlist()
257 np->nvp_paths[i] = i_ddi_strdup(strs[i], KM_SLEEP); in sdev_ncache_unpack_nvlist()
259 np->nvp_expirecnts = kmem_zalloc(nstrs * sizeof (int), KM_SLEEP); in sdev_ncache_unpack_nvlist()
261 np->nvp_expirecnts[i] = sdev_nc_expirecnt; in sdev_ncache_unpack_nvlist()
270 np->nvp_expirecnts[i] = cnts[i]; in sdev_ncache_unpack_nvlist()
274 list_insert_tail(nvf_list(sdevfd_handle), np); in sdev_ncache_unpack_nvlist()
[all …]
/illumos-gate/usr/src/cmd/csh/
H A Dsh.proc.c355 struct process *np; in pflush() local
371 np = pp; in pflush()
373 np->p_index = np->p_pid = 0; in pflush()
374 np->p_flags &= ~PNEEDNOTE; in pflush()
375 } while ((np = np->p_friends) != pp); in pflush()
377 for (np = proclist.p_next, index = 0; np; np = np->p_next) in pflush()
378 if (np->p_index > (tchar)index) in pflush()
379 index = np->p_index; in pflush()
458 struct process *np; in palloc() local
461 for (np = proclist.p_next; np; np = np->p_next) in palloc()
[all …]
H A Dsh.lex.c382 tchar *np, *p; in getdol() local
391 np = name, *np++ = '$'; in getdol()
399 *np++ = c, c = getC(DOEXCL); in getdol()
401 special++, *np++ = c, c = getC(DOEXCL); in getdol()
402 *np++ = c; in getdol()
414 np--; in getdol()
418 p = np; in getdol()
421 while (digit(c = getC(DOEXCL)) && (np - p) < MAX_VAR_LEN) { in getdol()
422 *np++ = c; in getdol()
426 (np - p) < MAX_VAR_LEN) { in getdol()
[all …]
/illumos-gate/usr/src/cmd/mandoc/
H A Dtag.c203 struct roff_node *np; in tag_move_id() local
205 np = n; in tag_move_id()
207 if (np->prev != NULL) in tag_move_id()
208 np = np->prev; in tag_move_id()
209 else if ((np = np->parent) == NULL) in tag_move_id()
211 switch (np->tok) { in tag_move_id()
213 switch (np->parent->parent->norm->Bl.type) { in tag_move_id()
216 np = np->parent; in tag_move_id()
224 np = np->parent->head; in tag_move_id()
232 if (np->tag == NULL) { in tag_move_id()
[all …]
H A Droff_validate.c70 struct roff_node *np; in roff_valid_br() local
80 if ((np = roff_node_prev(n)) == NULL) in roff_valid_br()
83 switch (np->tok) { in roff_valid_br()
88 n->line, n->pos, "br after %s", roff_name[np->tok]); in roff_valid_br()
132 struct roff_node *np; in roff_valid_sp() local
134 if ((np = roff_node_prev(n)) == NULL) in roff_valid_sp()
137 switch (np->tok) { in roff_valid_sp()
140 np->line, np->pos, "br before sp"); in roff_valid_sp()
141 roff_node_delete(man, np); in roff_valid_sp()
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/
H A Ditree.c84 static void vmatch(struct info *infop, struct node *np, struct node *lnp,
86 static void hmatch(struct info *infop, struct node *np, struct node *nextnp);
99 static struct event *find_or_add_event(struct info *infop, struct node *np);
391 nrhs->u.stmt.np = tevent_dup_to_epname(orhs, pd->epname); in nv_instantiate()
507 find_or_add_event(struct info *infop, struct node *np) in find_or_add_event() argument
512 ASSERTeq(np->t, T_EVENT, ptree_nodetype2str); in find_or_add_event()
514 searchevent.enode = np; in find_or_add_event()
515 searchevent.ipp = ipath(np->u.event.epname); in find_or_add_event()
524 ret->t = np->u.event.ename->u.name.t; in find_or_add_event()
525 ret->enode = np; in find_or_add_event()
[all …]
/illumos-gate/usr/src/cmd/awk_xpg4/
H A Dawk.y48 static NODE * fliplist ANSI((NODE *np));
409 register NODE *np;
417 np = $7;
418 if (np != NNULL
419 && np->n_type == DELETE
420 && (np = np->n_left)->n_type == INDEX
421 && np->n_left == $5
422 && np->n_right == $3)
537 fliplist(np) in fliplist() argument
538 register NODE *np; in fliplist()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dalarm.c162 static char *setdisc(Namval_t *np, const char *event, Namval_t* action, Namfun_t in setdisc() argument
171 return(nv_setdisc(np, event, action, fp)); in setdisc()
173 if(action==np) in setdisc()
183 static void putval(Namval_t* np, const char* val, int flag, Namfun_t* fp) in putval() argument
198 nv_putv(np,val,flag,fp); in putval()
199 d = nv_getnum(np); in putval()
203 nv_putv(np,(char*)&x,NV_INTEGER|NV_DOUBLE,fp); in putval()
215 tp = (struct tevent*)nv_stack(np, (Namfun_t*)0); in putval()
219 nv_unset(np); in putval()
236 register Namval_t *np; in b_alarm() local
[all …]
H A Dpoll_solaris.c242 Namval_t *np; in b_poll() local
324 np = nv_open_fmt(shp->var_tree, NV_NOFAIL|NV_NOADD, "%s[%s].fd", varname, subname); in b_poll()
325 if (!np) in b_poll()
327 fd = (int)nv_getnum(np); in b_poll()
330 nv_close(np); in b_poll()
333 np = nv_open_fmt(shp->var_tree, NV_NOFAIL|NV_NOADD, "%s[%s].events", varname, subname); in b_poll()
334 if (!np) in b_poll()
337 s = nv_getval(np); in b_poll()
341 nv_close(np); in b_poll()
355 np = nv_open_fmt(shp->var_tree, NV_VARNAME|NV_ARRAY|NV_NOFAIL, "%s", eventarrayname); in b_poll()
[all …]
H A Dprint.c533 Namval_t *np = nv_open(string, NiL, NV_VARNAME|NV_NOASSIGN|NV_NOADD); in fmtbase64() local
536 if(!np || nv_isnull(np)) in fmtbase64()
542 if(nv_isattr(np,NV_INTEGER)) in fmtbase64()
544 d = nv_getnum(np); in fmtbase64()
545 if(nv_isattr(np,NV_DOUBLE)) in fmtbase64()
547 if(nv_isattr(np,NV_LONG)) in fmtbase64()
552 else if(nv_isattr(np,NV_SHORT)) in fmtbase64()
565 if(nv_isattr(np,NV_LONG)) in fmtbase64()
570 else if(nv_isattr(np,NV_SHORT)) in fmtbase64()
589 if(nv_isattr(np,NV_BINARY)) in fmtbase64()
[all …]
H A Dmisc.c92 static void noexport(register Namval_t* np, void *data) in noexport() argument
95 nv_offattr(np,NV_EXPORT); in noexport()
117 register Namval_t* np; in B_login() local
133 (*cp=0,np=nv_search(arg->argval,shp->var_tree,0))) in B_login()
135 nv_onattr(np,NV_EXPORT); in B_login()
136 sh_envput(shp->env,np); in B_login()
210 register Namval_t *np; in b_dot_cmd() local
236 if(!(np=shp->posix_fun)) in b_dot_cmd()
239 np = nv_search(script,shp->fun_tree,0); in b_dot_cmd()
240 if(np && is_afunction(np) && !nv_isattr(np,NV_FPOSIX)) in b_dot_cmd()
[all …]
/illumos-gate/usr/src/lib/scsi/plugins/ses/ses2/common/
H A Dses2_pages.c40 ses2_ctl_common_setdef(ses_node_t *np, ses2_diag_page_t page, void *data) in ses2_ctl_common_setdef() argument
43 nvlist_t *props = ses_node_props(np); in ses2_ctl_common_setdef()
59 ses2_aes_index(ses_plugin_t *sp, ses_node_t *np, void *data, size_t pagelen, in ses2_aes_index() argument
64 nvlist_t *props = ses_node_props(np); in ses2_aes_index()
160 ses2_threshold_index(ses_plugin_t *sp, ses_node_t *np, void *data, in ses2_threshold_index() argument
164 nvlist_t *props = ses_node_props(np); in ses2_threshold_index()
182 ses2_element_index(ses_plugin_t *sp, ses_node_t *np, void *data, in ses2_element_index() argument
186 nvlist_t *props = ses_node_props(np); in ses2_element_index()
230 ses2_status_index(ses_plugin_t *sp, ses_node_t *np, void *data, in ses2_status_index() argument
234 nvlist_t *props = ses_node_props(np); in ses2_status_index()
[all …]
/illumos-gate/usr/src/cmd/backup/restore/
H A Dinteractive.c52 struct entry *np; in runcmdshell() local
123 np = lookupname(name); in runcmdshell()
124 if (np == NIL || (np->e_flags & NEW) == 0) { in runcmdshell()
129 treescan(name, np->e_ino, deletefile); in runcmdshell()
513 char *cp, *np, *prefix; in canon() local
527 for (cp = np = canonname; *np != '\0'; cp++) { in canon()
528 *cp = *np++; in canon()
529 while (*cp == '/' && *np == '/') in canon()
530 np++; in canon()
549 np = canonname; in canon()
[all …]
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_vfsops.c3184 struct nfs4_server *np; in nfs4setclientid() local
3204 np = servinfo4_to_nfs4_server(svp); /* This locks np if it is found */ in nfs4setclientid()
3206 if (!np) { in nfs4setclientid()
3208 np = new_nfs4_server(svp, cr); in nfs4setclientid()
3209 mutex_enter(&np->s_lock); in nfs4setclientid()
3219 np->s_refcnt = 0; in nfs4setclientid()
3220 destroy_nfs4_server(np); in nfs4setclientid()
3221 np = tnp; in nfs4setclientid()
3227 insque(np, &nfs4_server_lst); in nfs4setclientid()
3231 ASSERT(MUTEX_HELD(&np->s_lock)); in nfs4setclientid()
[all …]
/illumos-gate/usr/src/test/os-tests/tests/libtopo/
H A Ddigraph-test.c140 uint_t np; in test_paths() local
150 &np) < 0) { in test_paths()
154 if (np != 2) { in test_paths()
155 logmsg("\t%d paths found (expected 2)", np); in test_paths()
158 for (uint_t i = 0; i < np; i++) { in test_paths()
161 topo_hdl_free(thp, paths, np * sizeof (topo_path_t *)); in test_paths()
165 &np) < 0) { in test_paths()
169 if (np != 1) { in test_paths()
170 logmsg("\t%d paths found (expected 1)", np); in test_paths()
173 for (uint_t i = 0; i < np; i++) { in test_paths()
[all …]
/illumos-gate/usr/src/uts/sun4/io/efcode/
H A Dfc_subr.c456 struct fc_phandle_entry *ip, *np; in fc_phandle_table_free() local
461 for (ip = *head; ip; ip = np) { in fc_phandle_table_free()
462 np = ip->next; in fc_phandle_table_free()
487 struct fc_phandle_entry *hp, *np; in fc_dip_to_phandle() local
496 np = kmem_zalloc(sizeof (struct fc_phandle_entry), KM_SLEEP); in fc_dip_to_phandle()
506 kmem_free(np, sizeof (struct fc_phandle_entry)); in fc_dip_to_phandle()
514 np->next = *head; in fc_dip_to_phandle()
515 np->dip = dip; in fc_dip_to_phandle()
516 np->h = h; in fc_dip_to_phandle()
517 *head = np; in fc_dip_to_phandle()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dinst_sync.c292 in_walktree(in_node_t *np, char *this) in in_walktree() argument
298 for (error = 0; np; np = np->in_sibling) { in in_walktree()
300 if (np->in_drivers == NULL) in in_walktree()
303 if (np->in_unit_addr[0] == '\0') in in_walktree()
304 (void) sprintf(this, "/%s", np->in_node_name); in in_walktree()
306 (void) sprintf(this, "/%s@%s", np->in_node_name, in in_walktree()
307 np->in_unit_addr); in in_walktree()
310 ASSERT(np->in_drivers); in in_walktree()
312 for (dp = np->in_drivers; dp; dp = dp->ind_next_drv) { in in_walktree()
329 if (np->in_child) in in_walktree()
[all …]
/illumos-gate/usr/src/cmd/sgs/m4/common/
H A Dm4macs.c167 struct nlist *np; in dodump() local
172 if ((np = lookup(*++ap))->name != NULL) in dodump()
173 dump(np->name, np->def); in dodump()
177 for (np = hshtab[i]; np != NULL; np = np->next) in dodump()
178 dump(np->name, np->def); in dodump()
475 struct nlist *np; in dotroff() local
480 if ((np = lookup(ap[c--]))->name) in dotroff()
481 np->tflag = 0; in dotroff()
487 struct nlist *np; in dotron() local
492 if ((np = lookup(ap[c--]))->name) in dotron()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/
H A Dppcontext.c39 struct ppcontext* np = (struct ppcontext*)context; in ppcontext() local
49 if (!(op = np)) op = (struct ppcontext*)_PP_CONTEXT_BASE_; in ppcontext()
55 if (np) in ppcontext()
57 free(np); in ppcontext()
58 np = 0; in ppcontext()
63 if (np) memcpy(_PP_CONTEXT_BASE_, np, sizeof(struct ppcontext)); in ppcontext()
/illumos-gate/usr/src/cmd/make/bin/
H A Dstate.cc65 static char * escape_target_name(Name np) in escape_target_name() argument
67 if(np->dollar) { in escape_target_name()
68 int len = strlen(np->string_mb); in escape_target_name()
74 int n = mbtowc(&wc, np->string_mb + pos, MB_CUR_MAX); in escape_target_name()
77 return strdup(np->string_mb); in escape_target_name()
84 buff[pp] = np->string_mb[pos+j]; pp++; in escape_target_name()
92 return strdup(np->string_mb); in escape_target_name()
129 Name_set::iterator np, e; in write_state_file() local
240 for (np = hashtab.begin(), e = hashtab.end(); np != e; np++) { in write_state_file()
245 if ((lines = get_prop(np->prop, line_prop)) == NULL) { in write_state_file()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/
H A Dname.h51 struct Namval *np; /* for Namval_t node */ member
88 Namval_t *np; member
112 Namval_t *np; /* function node pointer */ member
161 #define nv_refnode(n) ((n)->nvalue.nrp->np)
174 #define nv_size(np) ((np)->nvsize) argument
175 #define _nv_hasget(np) ((np)->nvfun && (np)->nvfun->disc && nv_hasget(np)) argument
176 #define nv_isnull(np) (!(np)->nvalue.cp && (nv_isattr(np,NV_SHORT|NV_INTEGER)!=(NV_SHORT|NV_INTEGER… argument

12345678910>>...17