/titanic_41/usr/src/cmd/ipf/lib/common/ |
H A D | printnat.c | 25 void printnat(np, opts) in printnat() argument 26 ipnat_t *np; in printnat() 34 pr = getprotobynumber(np->in_p); 36 switch (np->in_redir) 52 np->in_redir); 56 printf(" %s", np->in_ifnames[0]); 57 if ((np->in_ifnames[1][0] != '\0') && 58 (strncmp(np->in_ifnames[0], np->in_ifnames[1], LIFNAMSIZ) != 0)) { 59 printf(",%s ", np->in_ifnames[1]); 63 if (np->in_flags & IPN_FILTER) { [all …]
|
/titanic_41/usr/src/uts/common/os/ |
H A D | ddi_nodeid.c | 91 np_free(struct available *np) in np_free() argument 93 kmem_free(np, sizeof (struct available)); in np_free() 100 np_unlink(struct available *np) in np_unlink() argument 102 if (np->prev) in np_unlink() 103 np->prev->next = np->next; in np_unlink() 105 nhead = np->next; in np_unlink() 107 if (np->next) in np_unlink() 108 np->next->prev = np->prev; in np_unlink() 115 np_insert(struct available *fp, struct available *np) in np_insert() argument 117 fp->prev = np->prev; in np_insert() [all …]
|
H A D | instance.c | 62 static void in_dealloc_node(in_node_t *np); 64 static void in_enlist(in_node_t *ap, in_node_t *np); 67 static in_drv_t *in_drvwalk(in_node_t *np, char *binding_name); 69 static void in_endrv(in_node_t *np, in_drv_t *dp); 70 static void in_dq_drv(in_drv_t *np); 544 in_node_t *ap, *np; in e_ddi_assign_instance() local 574 np = in_devwalk(dip, &ap, NULL); in e_ddi_assign_instance() 575 if (np == NULL) { in e_ddi_assign_instance() 577 np = in_devwalk(dip, &ap, NULL); in e_ddi_assign_instance() 580 np = in_alloc_node(name, ddi_get_name_addr(dip)); in e_ddi_assign_instance() [all …]
|
/titanic_41/usr/src/cmd/awk_xpg4/ |
H A D | awk3.c | 38 static NODE *arithmetic(NODE *np); 39 static NODE *comparison(NODE *np); 40 static int type_of(NODE *np); 43 static NODE *userfunc(NODE *np); 45 static NODE *exprconcat(NODE *np, int len); 46 static int s_if(NODE *np); 47 static int s_while(NODE *np); 48 static int s_for(NODE *np); 49 static int s_forin(NODE *np); 52 static int action(NODE *np); [all …]
|
H A D | awk4.c | 40 static uint nargs(NODE *np); 41 static NODE *dosub(NODE *np, int glob); 42 static NODE *docasetr(NODE *np, int upper); 56 f_exp(NODE *np) in f_exp() argument 60 if ((na = nargs(np)) > 1) in f_exp() 62 return (realnode(exp(exprreal(na==0 ? field0 : getlist(&np))))); in f_exp() 71 f_int(NODE *np) in f_int() argument 75 if ((na = nargs(np)) > 1) in f_int() 77 return (intnode(exprint(na==0 ? field0 : getlist(&np)))); in f_int() 86 f_log(NODE *np) in f_log() argument [all …]
|
/titanic_41/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_subr2.c | 154 sn_inactive(smbnode_t *np) in sn_inactive() argument 166 mutex_enter(&np->r_statelock); in sn_inactive() 168 ovsa = np->r_secattr; in sn_inactive() 169 np->r_secattr = smbfs_vsa0; in sn_inactive() 170 np->r_sectime = 0; in sn_inactive() 172 oldcr = np->r_cred; in sn_inactive() 173 np->r_cred = NULL; in sn_inactive() 175 orpath = np->n_rpath; in sn_inactive() 176 orplen = np->n_rplen; in sn_inactive() 177 np->n_rpath = NULL; in sn_inactive() [all …]
|
/titanic_41/usr/src/cmd/fm/eversholt/common/ |
H A D | check.c | 44 static int check_reportlist(enum nodetype t, const char *s, struct node *np); 45 static int check_num(enum nodetype t, const char *s, struct node *np); 46 static int check_quote(enum nodetype t, const char *s, struct node *np); 47 static int check_action(enum nodetype t, const char *s, struct node *np); 48 static int check_num_func(enum nodetype t, const char *s, struct node *np); 49 static int check_fru_asru(enum nodetype t, const char *s, struct node *np); 50 static int check_engine(enum nodetype t, const char *s, struct node *np); 51 static int check_count(enum nodetype t, const char *s, struct node *np); 52 static int check_timeval(enum nodetype t, const char *s, struct node *np); 53 static int check_id(enum nodetype t, const char *s, struct node *np); [all …]
|
H A D | ptree.c | 70 is_stmt(struct node *np) in is_stmt() argument 72 switch (np->t) { in is_stmt() 96 ptree(int flags, struct node *np, int no_iterators, int fileline) in ptree() argument 98 if (np == NULL) in ptree() 101 switch (np->t) { in ptree() 105 out(flags|O_NONL, "%s", np->u.name.s); in ptree() 107 if (np->u.name.cp != NULL) { in ptree() 109 cp2num(np->u.name.cp, &num); in ptree() 111 } else if (np->u.name.it == IT_HORIZONTAL) { in ptree() 112 if (np->u.name.child == NULL || in ptree() [all …]
|
/titanic_41/usr/src/cmd/svc/configd/ |
H A D | rc_node.c | 614 static void rc_node_no_client_refs(rc_node_t *np); 654 rc_node_match(rc_node_t *np, rc_node_lookup_t *l) in rc_node_match() argument 656 rc_node_lookup_t *r = &np->rn_id; in rc_node_match() 689 rc_node_hold_ephemeral_locked(rc_node_t *np) in rc_node_hold_ephemeral_locked() argument 691 assert(MUTEX_HELD(&np->rn_lock)); in rc_node_hold_ephemeral_locked() 693 ++np->rn_erefs; in rc_node_hold_ephemeral_locked() 707 rc_node_hold_other(rc_node_t *np) in rc_node_hold_other() argument 709 if (atomic_add_32_nv(&np->rn_other_refs, 1) == 1) { in rc_node_hold_other() 710 atomic_add_32(&np->rn_other_refs_held, 1); in rc_node_hold_other() 711 assert(np->rn_other_refs_held > 0); in rc_node_hold_other() [all …]
|
/titanic_41/usr/src/lib/libshell/common/sh/ |
H A D | name.c | 92 Namval_t *np; member 138 void sh_envput(Env_t* ep,Namval_t *np) in sh_envput() argument 141 Namarr_t *ap = nv_arrayptr(np); in sh_envput() 146 nv_putsub(np,"0",0L); in sh_envput() 147 else if(!(val=nv_getsub(np)) || strcmp(val,"0")) in sh_envput() 150 if(!(val = nv_getval(np))) in sh_envput() 152 stakputs(nv_name(np)); in sh_envput() 204 Namval_t *nv_addnode(Namval_t* np, int remove) in nv_addnode() argument 209 if(sp->numnodes==0 && !nv_isnull(np) && sh.last_table) in nv_addnode() 213 sp->rp = np; in nv_addnode() [all …]
|
H A D | nvdisc.c | 41 char *nv_getv(Namval_t *np, register Namfun_t *nfp) in nv_getv() argument 52 if(!nv_isattr(np,NV_NODISC) || fp==(Namfun_t*)nv_arrayptr(np)) in nv_getv() 56 cp = (*fp->disc->getval)(np,fp); in nv_getv() 59 sfprintf(sh.strbuf,"%.*Lg",12,(*fp->disc->getnum)(np,fp)); in nv_getv() 65 cp = nv_getval(np); in nv_getv() 73 Sfdouble_t nv_getn(Namval_t *np, register Namfun_t *nfp) in nv_getn() argument 85 if(!fp->disc->getnum && nv_isattr(np,NV_INTEGER)) in nv_getn() 87 if(!nv_isattr(np,NV_NODISC) || fp==(Namfun_t*)nv_arrayptr(np)) in nv_getn() 91 d = (*fp->disc->getnum)(np,fp); in nv_getn() 92 else if(nv_isattr(np,NV_INTEGER)) in nv_getn() [all …]
|
H A D | array.c | 61 static Namarr_t *array_scope(Namval_t *np, Namarr_t *ap, int flags) in array_scope() argument 86 static int array_unscope(Namval_t *np,Namarr_t *ap) in array_unscope() argument 92 (*ap->fun)(np, NIL(char*), NV_AFREE); in array_unscope() 93 if((fp = nv_disc(np,(Namfun_t*)ap,NV_POP)) && !(fp->nofree&1)) in array_unscope() 95 nv_delete(np,(Dt_t*)0,0); in array_unscope() 104 static int array_covered(Namval_t *np, struct index_array *ap) in array_covered() argument 115 static void array_setptr(register Namval_t *np, struct index_array *old, struct index_array *new) in array_setptr() argument 117 register Namfun_t **fp = &np->nvfun; in array_setptr() 146 int array_maxindex(Namval_t *np) in array_maxindex() argument 148 register struct index_array *ap = (struct index_array*)nv_arrayptr(np); in array_maxindex() [all …]
|
H A D | nvtree.c | 52 static int read_tree(Namval_t* np, Sfio_t *iop, int n, Namfun_t *dp) in read_tree() argument 61 sfprintf(sh.strbuf,"%s=%c",nv_name(np),0); in read_tree() 69 static Namval_t *create_tree(Namval_t *np,const char *name,int flag,Namfun_t *dp) in create_tree() argument 77 if(np=(*fp->disc->createf)(np,name,flag,fp)) in create_tree() 79 return(np); in create_tree() 82 return((flag&NV_NOADD)?0:np); in create_tree() 85 static Namfun_t *clone_tree(Namval_t *np, Namval_t *mp, int flags, Namfun_t *fp){ in clone_tree() argument 87 if ((flags&NV_MOVE) && nv_type(np)) in clone_tree() 92 walk_tree(np,mp,flags); in clone_tree() 131 static Namfun_t *nextdisc(Namval_t *np) in nextdisc() argument [all …]
|
/titanic_41/usr/src/cmd/mailx/ |
H A D | names.c | 69 register struct name *np; in nalloc() local 71 np = (struct name *)salloc(sizeof (*np)); in nalloc() 72 np->n_flink = NIL; in nalloc() 73 np->n_blink = NIL; in nalloc() 74 np->n_type = -1; in nalloc() 75 np->n_full = savestr(str); in nalloc() 76 np->n_name = skin(np->n_full); in nalloc() 77 return (np); in nalloc() 87 register struct name *np; in tailof() local 89 np = name; in tailof() [all …]
|
/titanic_41/usr/src/lib/libcmd/common/ |
H A D | expr.c | 141 #define numeric(np) ((np)->type&T_NUM) argument 185 static int getnode(State_t* state, Node_t *np) in getnode() argument 207 np->num = (ep = strpbrk(cp, ep)) ? (ep - cp + 1) : 0; in getnode() 208 np->type = T_NUM; in getnode() 217 np->num = strlen(cp); in getnode() 218 np->type = T_NUM; in getnode() 225 if (!(np->str = *state->arglist++)) in getnode() 227 np->type = T_STR; in getnode() 260 np->type = T_STR; in getnode() 261 np->str = sp; in getnode() [all …]
|
/titanic_41/usr/src/tools/ndrgen/ |
H A D | ndr_print.c | 43 print_node(ndr_node_t *np) in print_node() argument 47 if (!np) { in print_node() 52 switch (np->label) { in print_node() 81 (void) printf("<<lab=%d>>", np->label); in print_node() 85 switch (np->label) { in print_node() 90 if (np->n_c_advice) { in print_node() 91 print_advice_list(np->n_c_advice); in print_node() 95 print_node(np->n_c_typename); in print_node() 97 print_node_list(np->n_c_members); in print_node() 114 if ((np->n_a_arg == NULL) || (np->n_a_arg->n_int == 0)) in print_node() [all …]
|
/titanic_41/usr/src/lib/scsi/libses/common/ |
H A D | ses_node.c | 36 ses_node_t *np; in ses_find_enclosure() local 38 for (np = sp->ss_root->sn_first_child; np != NULL; in ses_find_enclosure() 39 np = np->sn_next_sibling) { in ses_find_enclosure() 40 ASSERT(np->sn_type == SES_NODE_ENCLOSURE); in ses_find_enclosure() 41 if (np->sn_enc_num == number) in ses_find_enclosure() 42 return ((ses_node_t *)np); in ses_find_enclosure() 59 ses_node_teardown(ses_node_t *np) in ses_node_teardown() argument 63 if (np == NULL) in ses_node_teardown() 66 for (; np != NULL; np = rp) { in ses_node_teardown() 67 ses_node_teardown(np->sn_first_child); in ses_node_teardown() [all …]
|
/titanic_41/usr/src/lib/libnisdb/ |
H A D | db_index_entry.cc | 130 db_index_entry_p np, next_np, *hp; in relocate() local 132 for (np = this; np != NULL; np = next_np) { in relocate() 133 next_np = np->next; in relocate() 134 hp = &new_tab[np->hashval % hashsize]; in relocate() 135 np->next = *hp; in relocate() 136 *hp = np; in relocate() 145 db_index_entry_p np; in getnext() local 147 for (np = this; np != NULL; np = np->next) { in getnext() 148 if ((np->hashval == hval) && in getnext() 149 (np->key->equal(i, casein)) && l == location) { in getnext() [all …]
|
/titanic_41/usr/src/cmd/fm/modules/common/eversholt/ |
H A D | eval.c | 50 static struct node *eval_dup(struct node *np, struct lut *ex, 53 enum datatype dtype, struct node *np); 54 static struct node *eval_fru(struct node *np); 55 static struct node *eval_asru(struct node *np); 119 struct node *np, struct lut **globals, in eval_getname() argument 126 if (np->t == T_NAME) in eval_getname() 127 nodep = np; in eval_getname() 128 else if (np->t == T_FUNC && np->u.func.s == L_fru) in eval_getname() 129 nodep = eval_fru(np->u.func.arglist); in eval_getname() 130 else if (np->t == T_FUNC && np->u.func.s == L_asru) in eval_getname() [all …]
|
/titanic_41/usr/src/uts/common/inet/ipf/ |
H A D | ip_nat6.c | 141 ipnat_t **np; local 151 np = ifs->ifs_rdr_rules + hv; 152 while (*np != NULL) 153 np = &(*np)->in_rnext; 155 n->in_prnext = np; 157 *np = n; 174 ipnat_t **np; local 184 np = ifs->ifs_nat_rules + hv; 185 while (*np != NULL) 186 np = &(*np)->in_mnext; [all …]
|
/titanic_41/usr/src/lib/libuutil/common/ |
H A D | uu_list.c | 136 uu_list_node_impl_t *np = (uu_list_node_impl_t *)np_arg; in uu_list_node_init() local 139 uintptr_t offset = (uintptr_t)np - (uintptr_t)base; in uu_list_node_init() 140 if (offset + sizeof (*np) > pp->ulp_objsize) { in uu_list_node_init() 143 base, (void *)np, (void *)pp, pp->ulp_name, in uu_list_node_init() 149 base, (void *)np, (void *)pp, pp->ulp_name, in uu_list_node_init() 153 np->uln_next = POOL_TO_MARKER(pp); in uu_list_node_init() 154 np->uln_prev = NULL; in uu_list_node_init() 160 uu_list_node_impl_t *np = (uu_list_node_impl_t *)np_arg; in uu_list_node_fini() local 163 if (np->uln_next == NULL && in uu_list_node_fini() 164 np->uln_prev == NULL) { in uu_list_node_fini() [all …]
|
/titanic_41/usr/src/lib/libshell/common/bltins/ |
H A D | typeset.c | 404 static void print_value(Sfio_t *iop, Namval_t *np, struct tdata *tp) in print_value() argument 408 if(nv_isnull(np)) in print_value() 410 if(!np->nvflag) in print_value() 414 sfputr(iop,nv_name(np),aflag=='+'?'\n':'='); in print_value() 417 if(nv_isarray(np) && nv_arrayptr(np)) in print_value() 419 nv_outnode(np,iop,-1,0); in print_value() 424 if(nv_isvtree(np)) in print_value() 425 nv_onattr(np,NV_EXPORT); in print_value() 426 if(!(name = nv_getval(np))) in print_value() 428 if(!nv_isvtree(np)) in print_value() [all …]
|
/titanic_41/usr/src/cmd/backup/restore/ |
H A D | symtab.c | 83 addino(inum, np) in addino() argument 85 struct entry *np; 98 np->e_ino = inum; 99 np->e_next = *epp; 100 *epp = np; 102 for (np = np->e_next; np != NIL; np = np->e_next) 103 if (np->e_ino == inum) 104 badentry(np, gettext("duplicate inum")); 150 char *np, *cp; local 161 np = buf; [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.rwhod.c | 375 struct neighbor *np; in onalrm() local 452 } else for (np = neighbors; np != NULL; np = np->n_next) { in onalrm() 454 np->n_flags & IFF_MULTICAST) { in onalrm() 459 &(((struct sockaddr_in *)np->n_addr)->sin_addr), in onalrm() 470 (struct sockaddr *)np->n_addr, np->n_addrlen); in onalrm() 504 struct neighbor *np; in configure() local 558 for (np = neighbors; np != NULL; np = np->n_next) { in configure() 559 if (np->n_name && in configure() 560 strcmp(ifr->ifr_name, np->n_name) == 0) in configure() 563 if (np != NULL) in configure() [all …]
|
/titanic_41/usr/src/cmd/smbsrv/smbd/ |
H A D | smbd_pipesvc.c | 84 ndr_pipe_t *np; in np_new() local 92 len = sizeof (*np) + sizeof (smb_netuserinfo_t); in np_new() 93 np = malloc(len); in np_new() 94 if (np == NULL) in np_new() 97 bzero(np, len); in np_new() 98 np->np_listener = pl; in np_new() 99 np->np_endpoint = pl->name; in np_new() 100 np->np_user = (void*)(np + 1); in np_new() 101 np->np_send = pipe_send; in np_new() 102 np->np_recv = pipe_recv; in np_new() [all …]
|