Home
last modified time | relevance | path

Searched refs:newnode (Results 1 – 25 of 28) sorted by relevance

12

/illumos-gate/usr/src/cmd/mailx/
H A Dmyfopen.c63 NODE *newnode; in getnode() local
65 if ((newnode = (NODE *)malloc(sizeof(NODE))) == (NODE *)NULL) { in getnode()
69 newnode->fp = fp; in getnode()
70 newnode->next = (NODE *)NULL; in getnode()
71 return(newnode); in getnode()
88 register NODE *newnode; in append() local
90 if ((newnode = getnode(fp)) == (NODE *)NULL) in append()
93 fplist = newnode; in append()
95 newnode->next = curptr->next; in append()
96 curptr->next = newnode; in append()
[all …]
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/
H A Dconfig.c102 struct config *newnode; in config_lookup() local
163 newnode = newcnode(s, num); in config_lookup()
166 lastcp->next = newnode; in config_lookup()
168 parent->child = newnode; in config_lookup()
170 newnode->parent = parent; in config_lookup()
171 parent = newnode; in config_lookup()
211 struct config *newnode; in addconfig() local
237 newnode = newcnode(s, num); in addconfig()
240 lastcp->next = newnode; in addconfig()
242 parent->child = newnode; in addconfig()
[all …]
H A Ditree.c219 struct node *newnp = newnode(T_NAME, file, line); in tname_dup()
235 newnode(T_NUM, file, line); in tname_dup()
325 struct node *newnp = newnode(T_NAME, oldepname->file, in tname_dup_to_epname()
334 newnp->u.name.child = newnode(T_NUM, oldepname->file, in tname_dup_to_epname()
369 ret = newnode(T_EVENT, oldnode->file, oldnode->line); in tevent_dup_to_epname()
390 nrhs = newnode(T_SERD, orhs->file, orhs->line); in nv_instantiate()
399 nrhs = newnode(T_NUM, orhs->file, orhs->line); in nv_instantiate()
404 nrhs = newnode(T_TIMEVAL, orhs->file, orhs->line); in nv_instantiate()
417 nrhs = newnode(T_GLOBID, orhs->file, orhs->line); in nv_instantiate()
581 cpnode->u.name.child = newnode(T_NUM, NULL, 0); in hmatch_full_config()
[all …]
H A Deval.c1076 newnp = newnode(T_NAME, np->file, np->line); in eval_dup()
1083 newnode(T_NUM, np->file, np->line); in eval_dup()
1101 newnp = newnode(T_NAME, np->file, np->line); in eval_dup()
1108 newnode(T_NUM, np->file, np->line); in eval_dup()
1131 newnp = newnode(T_NUM, np->file, np->line); in eval_dup()
1144 newnp = newnode(T_NAME, np->file, np->line); in eval_dup()
1151 newnode(T_NUM, np->file, np->line); in eval_dup()
1171 newnp = newnode(T_NAME, np->file, np->line); in eval_dup()
1188 newnp = newnode(T_QUOTE, np->file, np->line); in eval_dup()
1193 newnp = newnode(T_NUM, np->file, np->line); in eval_dup()
[all …]
/illumos-gate/usr/src/lib/libadm/common/
H A Dgetdgrp.c265 struct dgrplist *newnode; /* Allocated node */ in addtodgrplist() local
287 newnode = malloc(sizeof (struct dgrplist)); in addtodgrplist()
288 if (newnode) { in addtodgrplist()
294 newnode->name = strcpy(newstr, dgrp->name); in addtodgrplist()
295 newnode->next = p; in addtodgrplist()
296 q->next = newnode; in addtodgrplist()
301 free(newnode); in addtodgrplist()
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_cache.c153 smb_cache_node_t *newnode; in smb_cache_add() local
163 if ((newnode = malloc(sizeof (smb_cache_node_t))) == NULL) { in smb_cache_add()
168 newnode->cn_data = (void *)data; in smb_cache_add()
169 node = avl_find(&chandle->ch_cache, newnode, &where); in smb_cache_add()
177 free(newnode); in smb_cache_add()
183 avl_insert(&chandle->ch_cache, newnode, where); in smb_cache_add()
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Dtree.c229 newnode(enum nodetype t, const char *file, int line) in newnode() function
474 return (newnode(T_NOTHING, L_nofile, 0)); in tree_nothing()
484 ret = newnode(t, in tree_expr()
554 ret = newnode(T_EVENT, ename->file, ename->line); in tree_event()
568 struct node *ret = newnode(T_NAME, file, line); in tree_name()
621 ret = newnode(T_NAME, file, line); in tree_iname()
637 struct node *ret = newnode(T_GLOBID, file, line); in tree_globid()
738 struct node *ret = newnode(T_TIMEVAL, file, line); in tree_timeval()
759 struct node *ret = newnode(T_NUM, file, line); in tree_num()
768 struct node *ret = newnode(T_QUOTE, file, line); in tree_quote()
[all …]
H A Dtree.h272 struct node *newnode(enum nodetype t, const char *file, int line);
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_rnode.c346 r4_do_attrcache(vnode_t *vp, nfs4_ga_res_t *garp, int newnode, in r4_do_attrcache() argument
360 if (!newnode) { in r4_do_attrcache()
431 if (newnode) { in r4_do_attrcache()
452 int newnode = 0; in makenfs4node_by_fh() local
467 nfs4_vnodeops, nfs4_putapage, &newnode, cr); in makenfs4node_by_fh()
471 if (newnode) { in makenfs4node_by_fh()
496 r4_do_attrcache(vp, garp, newnode, t, cr, index); in makenfs4node_by_fh()
512 int newnode; in makenfs4node() local
529 nfs4_putapage, &newnode, cr); in makenfs4node()
532 sv_activate(&vp, dvp, &nm, newnode); in makenfs4node()
[all …]
H A Dnfs4_shadow.c92 sv_activate(vnode_t **vpp, vnode_t *dvp, nfs4_fname_t **namepp, int newnode) in sv_activate() argument
116 if (newnode) { in sv_activate()
H A Dnfs_subr.c2280 int newnode; in makenfsnode() local
2293 nfs_putapage, nfs_rddir_compar, &newnode, cr, dnm, nm); in makenfsnode()
2296 if (!newnode) { in makenfsnode()
2321 if (newnode) { in makenfsnode()
2342 int newnode; in makenfs3node_va() local
2350 nfs3_vnodeops, nfs3_putapage, nfs3_rddir_compar, &newnode, cr, in makenfs3node_va()
2354 if (newnode) { in makenfs3node_va()
2361 if (!newnode) { in makenfs3node_va()
2384 int newnode; in makenfs3node() local
2393 nfs3_vnodeops, nfs3_putapage, nfs3_rddir_compar, &newnode, cr, in makenfs3node()
[all …]
/illumos-gate/usr/src/lib/libzonecfg/common/
H A Dlibzonecfg.c1660 xmlNodePtr newnode, cur = handle->zone_dh_cur, options_node; in zonecfg_add_filesystem_core() local
1664 newnode = xmlNewTextChild(cur, NULL, DTD_ELEM_FS, NULL); in zonecfg_add_filesystem_core()
1665 if ((err = newprop(newnode, DTD_ATTR_SPECIAL, in zonecfg_add_filesystem_core()
1669 (err = newprop(newnode, DTD_ATTR_RAW, tabptr->zone_fs_raw)) != Z_OK) in zonecfg_add_filesystem_core()
1671 if ((err = newprop(newnode, DTD_ATTR_DIR, tabptr->zone_fs_dir)) != Z_OK) in zonecfg_add_filesystem_core()
1673 if ((err = newprop(newnode, DTD_ATTR_TYPE, in zonecfg_add_filesystem_core()
1679 options_node = xmlNewTextChild(newnode, NULL, in zonecfg_add_filesystem_core()
2207 xmlNodePtr newnode, cur = handle->zone_dh_cur; in zonecfg_add_nwif_core() local
2210 newnode = xmlNewTextChild(cur, NULL, DTD_ELEM_NET, NULL); in zonecfg_add_nwif_core()
2212 (err = newprop(newnode, DTD_ATTR_ADDRESS, in zonecfg_add_nwif_core()
[all …]
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dautod_parse.c430 hiernode *prevnode, *currnode, *newnode; in hierarchical_sort() local
479 (&newnode, dirname)) in hierarchical_sort()
482 prevnode->leveldir = newnode; in hierarchical_sort()
483 prevnode = newnode; in hierarchical_sort()
484 currnode = newnode->subdir; in hierarchical_sort()
492 if ((rc = alloc_hiernode(&newnode, in hierarchical_sort()
495 prevnode->subdir = newnode; in hierarchical_sort()
496 prevnode = newnode; in hierarchical_sort()
497 currnode = newnode->subdir; in hierarchical_sort()
1617 alloc_hiernode(hiernode **newnode, char *dirname) in alloc_hiernode() argument
[all …]
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_subr2.c236 int newnode; in smbfs_node_findcreate() local
272 np = make_smbnode(mi, rpath, rplen, &newnode); in smbfs_node_findcreate()
325 int *newnode) in make_smbnode() argument
340 *newnode = 0; in make_smbnode()
475 *newnode = 0; in make_smbnode()
489 *newnode = 1; in make_smbnode()
/illumos-gate/usr/src/cmd/backup/restore/
H A Drestore.c85 newnode(ep); in addfile()
328 newnode(ep); in nodeupdates()
416 newnode(ip); in nodeupdates()
H A Drestore.h136 extern void newnode(struct entry *);
H A Dutilities.c48 newnode(ep); in pathcheck()
145 newnode(struct entry *np) in newnode() function
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Dvlan_rcm.c855 boolean_t newnode = B_FALSE; in vlan_update() local
900 newnode = B_TRUE; in vlan_update()
914 if (newnode) { in vlan_update()
930 if (newnode) in vlan_update()
H A Dibpart_rcm.c871 boolean_t newnode = B_FALSE; in ibpart_update() local
927 newnode = B_TRUE; in ibpart_update()
942 if (newnode) { in ibpart_update()
958 if (newnode) in ibpart_update()
H A Dvnic_rcm.c858 boolean_t newnode = B_FALSE; in vnic_update() local
912 newnode = B_TRUE; in vnic_update()
926 if (newnode) { in vnic_update()
942 if (newnode) in vnic_update()
/illumos-gate/usr/src/tools/cscope-fast/
H A Dcgrep.c269 static Node *newnode(re_cw *c, int d);
1344 c->root = newnode(c, 0); in re_cwinit()
1368 l = newlink(*e--, p = newnode(c, depth++)); in re_cwadd()
1373 state->alts = newlink(*e--, p = newnode(c, depth++)); in re_cwadd()
1599 newnode(re_cw *c, int d) in newnode() function
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzfs_acl.c1368 zfs_acl_node_t *newnode; in zfs_acl_chmod() local
1381 newnode = zfs_acl_node_alloc((abstract_size * 6) + aclp->z_acl_bytes); in zfs_acl_chmod()
1383 zacep = newnode->z_acldata; in zfs_acl_chmod()
1475 newnode->z_ace_count = new_count; in zfs_acl_chmod()
1476 newnode->z_size = new_bytes; in zfs_acl_chmod()
1477 list_insert_tail(&aclp->z_acl, newnode); in zfs_acl_chmod()
/illumos-gate/usr/src/uts/common/io/net80211/
H A Dnet80211_node.c1077 boolean_t newnode = B_FALSE; in ieee80211_add_scan() local
1095 newnode = B_TRUE; in ieee80211_add_scan()
1152 if (!newnode) in ieee80211_add_scan()
/illumos-gate/usr/src/uts/common/fs/tmpfs/
H A Dtmp_dir.c1076 struct tmpnode **newnode, in tdirmaketnode() argument
1153 *newnode = tp; in tdirmaketnode()
/illumos-gate/usr/src/cmd/svc/configd/
H A Dfile_object.c606 rc_node_t *newnode, *pg; in fill_pg_callback() local
630 if ((newnode = rc_node_alloc()) == NULL) in fill_pg_callback()
633 pg = rc_node_setup_pg(newnode, lp, name, type, flags, gen_id, in fill_pg_callback()
636 rc_node_destroy(newnode); in fill_pg_callback()

12