/illumos-gate/usr/src/contrib/ast/src/lib/libast/vmalloc/ |
H A D | vmbest.c | 437 np = NEXT(fp); /**/ASSERT(ISBUSY(SIZE(np))); 459 { if(np) 464 { if(np) 485 np = t; 495 np = t; 683 np = NEXT(tp); 684 CLRPFREE(SIZE(np)); /**/ ASSERT(ISBUSY(SIZE(np))); 695 SELF(np) = np; 899 np = (Block_t*)((Vmuchar_t*)np + s); 924 np = NEXT(rp); [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | xec.c | 742 if(!is_afunction(np) || !np->nvalue.ip) in print_fun() 859 for(np=(Namval_t*)dtfirst(shp->inpool);np;np=(Namval_t*)dtnext(shp->inpool,np)) in sh_coexec() 1085 if(!np || !is_abuiltin(np) || *np->nvname=='/' || np==SYSCD) in sh_exec() 1105 if(np && is_abuiltin(np)) in sh_exec() 1115 np = dtsearch(shp->fun_tree,np); in sh_exec() 1172 if(np==SYSTYPESET || (np && np->nvalue.bfp==SYSTYPESET->nvalue.bfp)) in sh_exec() 1233 if(np && nv_isattr(np,BLT_DCL)) in sh_exec() 1284 if(!np || !np->nvalue.ip) in sh_exec() 1306 if(np && is_abuiltin(np)) in sh_exec() 2810 rp->np = np; in sh_exec() [all …]
|
H A D | macro.c | 973 if(np && nv_isref(np)) in prefix() 978 while(nv_isref(np) && np->nvalue.cp) in prefix() 981 np = nv_refnode(np); in prefix() 1034 if(np) in sh_macfun() 1337 if(np && (flag&NV_NOADD) && nv_isnull(np)) in varsub() 1348 ap = np?nv_arrayptr(np):0; in varsub() 1975 np = sh_assignok(np,1); in varsub() 1986 …(var && sh_isoption(SH_NOUNSET) && type<=M_TREE && (!np || nv_isnull(np) || (nv_isarray(np) && !n… in varsub() 2001 if(np) in varsub() 2634 if(np) in tilde_expand2() [all …]
|
/illumos-gate/usr/src/uts/common/fs/dev/ |
H A D | sdev_ncache.c | 231 nvp_devname_t *np; in sdev_ncache_unpack_nvlist() local 254 np->nvp_npaths = nstrs; in sdev_ncache_unpack_nvlist() 288 nvp_devname_t *np; in sdev_ncache_pack_list() local 315 DP_DEVNAME_NCACHE_ID, np->nvp_paths, np->nvp_npaths); in sdev_ncache_pack_list() 324 np->nvp_expirecnts, np->nvp_npaths); in sdev_ncache_pack_list() 358 nvp_devname_t *np; in sdev_ncache_process_store() local 370 for (np = list_head(listp); np; np = list_next(listp, np)) { in sdev_ncache_process_store() 373 np->nvp_paths[i], np->nvp_expirecnts[i])); in sdev_ncache_process_store() 430 nvp_devname_t *np; in sdev_ncache_write() local 450 np->nvp_npaths = n; in sdev_ncache_write() [all …]
|
/illumos-gate/usr/src/cmd/svc/configd/ |
H A D | file_object.c | 530 rc_node_t *np; in fill_child_callback() local 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 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() 831 cip->ci_parent = np; in scope_setup_child_info() 849 cip->ci_parent = np; in service_setup_child_info() 1182 np->rn_id.rl_main_id, np->rn_gen_id); in propertygrp_fill_children() 1588 *cpp = np; in object_do_create() [all …]
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | tag.c | 203 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() 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() 233 np->tag = mandoc_strdup(n->tag == NULL ? in tag_move_id() [all …]
|
H A D | roff_validate.c | 70 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/csh/ |
H A D | sh.proc.c | 371 np = pp; in pflush() 373 np->p_index = np->p_pid = 0; 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() 461 for (np = proclist.p_next; np; np = np->p_next) in palloc() 969 while ((np = np->p_friends) != pp); in pkill() 1037 } while ((np = np->p_friends) != pp); in pstart() 1125 if (np) in pfind() 1146 for (np = proclist.p_next; np; np = np->p_next) in pgetcurr() 1147 if (np != pcurrent && np != pp && np->p_pid && in pgetcurr() [all …]
|
H A D | sh.lex.c | 391 np = name, *np++ = '$'; in getdol() 402 *np++ = c; in getdol() 414 np--; in getdol() 418 p = np; in getdol() 445 np--; in getdol() 476 *np = 0; in getdol() 787 for (np = cp; np < mp; ) in subword() 789 for (np = rhsb; *np; np++) switch (*np) { in subword() 793 np++; in subword() 978 tchar *np; in gethent() local [all …]
|
/illumos-gate/usr/src/cmd/awk_xpg4/ |
H A D | awk.y | 417 np = $7; 418 if (np != NNULL 420 && (np = np->n_left)->n_type == INDEX 537 fliplist(np) in fliplist() argument 538 register NODE *np; in fliplist() 542 if (np!=NNULL && !isleaf(np->n_flags) 547 np->n_right = fliplist(np->n_right); 560 *spp = np; 561 np = lp; 566 np->n_left = fliplist(np->n_left); [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/ |
H A D | itree.c | 525 ret->enode = np; in find_or_add_event() 527 ret->props = props2instance(np, np->u.event.epname); in find_or_add_event() 794 if (np == NULL) in hmatch() 814 hmatch_event(infop, np, np->u.event.epname, in hmatch() 819 outfl(O_DIE, np->file, np->line, in hmatch() 848 ret->np = np; in newiterinfo() 999 } else if (np == iterinfop->np) { in vmatch_event() 1332 vmatch(infop, np->u.expr.right, np->u.expr.left, anp); in vmatch() 1337 vmatch(infop, np->u.arrow.rhs, NULL, np->u.arrow.parent); in vmatch() 1341 outfl(O_DIE, np->file, np->line, in vmatch() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | alarm.c | 173 if(action==np) in setdisc() 198 nv_putv(np,val,flag,fp); in putval() 199 d = nv_getnum(np); in putval() 219 nv_unset(np); in putval() 236 register Namval_t *np; in b_alarm() local 263 if(!nv_isnull(np)) in b_alarm() 264 nv_unset(np); in b_alarm() 265 nv_setattr(np, NV_DOUBLE); in b_alarm() 270 tp->node = np; in b_alarm() 272 nv_stack(np,(Namfun_t*)tp); in b_alarm() [all …]
|
H A D | poll_solaris.c | 242 Namval_t *np; in b_poll() local 325 if (!np) in b_poll() 330 nv_close(np); in b_poll() 334 if (!np) in b_poll() 337 s = nv_getval(np); in b_poll() 341 nv_close(np); in b_poll() 356 if (!np) in b_poll() 358 nv_close(np); in b_poll() 370 if (!np) in b_poll() 375 nv_putval(np, buff, 0); in b_poll() [all …]
|
H A D | print.c | 536 if(!np || nv_isnull(np)) in fmtbase64() 544 d = nv_getnum(np); in fmtbase64() 602 int n = nv_size(np); in fmtbase64() 603 if(nv_isarray(np)) in fmtbase64() 606 cp = nv_getval(np); in fmtbase64() 629 cp = nv_getval(np); in fmtbase64() 639 cp = nv_getval(np); in fmtbase64() 783 Namval_t *np; in extend() local 785 _nv_unset(np,0); in extend() 789 nv_setsize(np,10); in extend() [all …]
|
H A D | misc.c | 240 if(np && is_afunction(np) && !nv_isattr(np,NV_FPOSIX)) in b_dot_cmd() 242 if(!np->nvalue.ip) in b_dot_cmd() 245 if(np->nvalue.ip) in b_dot_cmd() 248 np = 0; in b_dot_cmd() 255 np = 0; in b_dot_cmd() 256 if(!np) in b_dot_cmd() 264 shp->st.lineno = np?((struct functnod*)nv_funtree(np))->functline:1; in b_dot_cmd() 277 if(np) in b_dot_cmd() 281 if(np || argv[1]) in b_dot_cmd() 288 if(np) in b_dot_cmd() [all …]
|
/illumos-gate/usr/src/lib/scsi/plugins/ses/ses2/common/ |
H A D | ses2_pages.c | 43 nvlist_t *props = ses_node_props(np); in ses2_ctl_common_setdef() 64 nvlist_t *props = ses_node_props(np); in ses2_aes_index() 164 nvlist_t *props = ses_node_props(np); in ses2_threshold_index() 186 nvlist_t *props = ses_node_props(np); in ses2_element_index() 234 nvlist_t *props = ses_node_props(np); in ses2_status_index() 262 ses_node_t *np) in ses2_ctl_fill() argument 265 nvlist_t *props = ses_node_props(np); in ses2_ctl_fill() 316 ses_node_t *np) in ses2_threshout_ctl_fill() argument 319 nvlist_t *props = ses_node_props(np); in ses2_threshout_ctl_fill() 368 ses_node_t *np) in ses2_ucodeout_ctl_fill() argument [all …]
|
/illumos-gate/usr/src/cmd/backup/restore/ |
H A D | interactive.c | 52 struct entry *np; in runcmdshell() local 124 if (np == NIL || (np->e_flags & NEW) == 0) { in runcmdshell() 527 for (cp = np = canonname; *np != '\0'; cp++) { in canon() 530 np++; in canon() 551 np++; in canon() 552 cp = np; in canon() 553 while (*np != '/' && *np != '\0') in canon() 554 np++; in canon() 562 np = cp; in canon() 576 np = cp; in canon() [all …]
|
/illumos-gate/usr/src/test/os-tests/tests/libtopo/ |
H A D | digraph-test.c | 140 uint_t np; in test_paths() local 150 &np) < 0) { in test_paths() 154 if (np != 2) { in test_paths() 158 for (uint_t i = 0; i < np; i++) { in test_paths() 165 &np) < 0) { in test_paths() 169 if (np != 1) { in test_paths() 173 for (uint_t i = 0; i < np; i++) { in test_paths() 180 &np) < 0) { in test_paths() 184 if (np != 0) { in test_paths() 191 if (np > 0) { in test_paths() [all …]
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_vfsops.c | 3206 if (!np) { in nfs4setclientid() 3921 np->clidtosend.id_len = len + np->saddr.maxlen; in new_nfs4_server() 3925 bcopy(np->saddr.buf, &np->clidtosend.id_val[len], np->saddr.len); in new_nfs4_server() 3991 np = np->forw) { in dumpnfs4slist() 3994 np, (longlong_t)np->clientid, np->saddr.len, in dumpnfs4slist() 3995 hash16((void *)np->saddr.buf, np->saddr.len), in dumpnfs4slist() 4002 if (np->clientid == clientid || np->clientid == 0) in dumpnfs4slist() 4050 np = p; in nfs4_move_mi() 4122 for (np = nfs4_server_lst.forw; np != &nfs4_server_lst; np = np->forw) { in servinfo4_to_nfs4_server() 4146 for (np = nfs4_server_lst.forw; np != &nfs4_server_lst; np = np->forw) { in lookup_nfs4_server() [all …]
|
/illumos-gate/usr/src/uts/sun4/io/efcode/ |
H A D | fc_subr.c | 462 np = ip->next; in fc_phandle_table_free() 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() 557 np->next = *head; in fc_add_dip_to_phandle() 558 np->dip = dip; in fc_add_dip_to_phandle() 559 np->h = h; in fc_add_dip_to_phandle() 560 *head = np; in fc_add_dip_to_phandle() 617 for (np = dp->peer; np->peer; np = dp->peer) { in fc_remove_subtree() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | inst_sync.c | 292 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 D | m4macs.c | 167 struct nlist *np; in dodump() local 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 481 np->tflag = 0; in dotroff() 487 struct nlist *np; in dotron() local 493 np->tflag = 1; in dotron() 522 free(np->name); in undef() 523 free(np->def); in undef() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/ |
H A D | ppcontext.c | 39 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 D | state.cc | 65 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() 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() 276 if (np->has_built) { in write_state_file() 285 target_name = escape_target_name(np); in write_state_file() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/ |
H A D | name.h | 51 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
|