Home
last modified time | relevance | path

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

/external/libcap-ng/libcap-ng-0.7/utils/
Dproc-llist.c38 lnode* newnode; in list_append() local
43 newnode = malloc(sizeof(lnode)); in list_append()
44 if (newnode == NULL) in list_append()
47 newnode->ppid = node->ppid; in list_append()
48 newnode->pid = node->pid; in list_append()
49 newnode->uid = node->uid; in list_append()
50 newnode->inode = node->inode; in list_append()
52 newnode->cmd = node->cmd; in list_append()
53 newnode->capabilities = node->capabilities; in list_append()
54 newnode->bounds = node->bounds; in list_append()
[all …]
/external/selinux/checkpolicy/
Dqueue.c28 queue_node_ptr_t newnode; in queue_insert() local
33 newnode = (queue_node_ptr_t) malloc(sizeof(struct queue_node)); in queue_insert()
34 if (newnode == NULL) in queue_insert()
37 newnode->element = e; in queue_insert()
38 newnode->next = NULL; in queue_insert()
41 q->head = q->tail = newnode; in queue_insert()
43 q->tail->next = newnode; in queue_insert()
44 q->tail = newnode; in queue_insert()
52 queue_node_ptr_t newnode; in queue_push() local
57 newnode = (queue_node_ptr_t) malloc(sizeof(struct queue_node)); in queue_push()
[all …]
/external/selinux/libsepol/src/
Dhashtab.c69 hashtab_ptr_t prev, cur, newnode; in hashtab_insert() local
85 newnode = (hashtab_ptr_t) malloc(sizeof(hashtab_node_t)); in hashtab_insert()
86 if (newnode == NULL) in hashtab_insert()
88 memset(newnode, 0, sizeof(struct hashtab_node)); in hashtab_insert()
89 newnode->key = key; in hashtab_insert()
90 newnode->datum = datum; in hashtab_insert()
92 newnode->next = prev->next; in hashtab_insert()
93 prev->next = newnode; in hashtab_insert()
95 newnode->next = h->htable[hvalue]; in hashtab_insert()
96 h->htable[hvalue] = newnode; in hashtab_insert()
[all …]
Davtab.c95 avtab_ptr_t newnode; in avtab_insert_node() local
98 newnode = (avtab_ptr_t) malloc(sizeof(struct avtab_node)); in avtab_insert_node()
99 if (newnode == NULL) in avtab_insert_node()
101 memset(newnode, 0, sizeof(struct avtab_node)); in avtab_insert_node()
102 newnode->key = *key; in avtab_insert_node()
107 free(newnode); in avtab_insert_node()
113 newnode->datum.xperms = xperms; in avtab_insert_node()
118 newnode->datum.data = datum->data; in avtab_insert_node()
120 newnode->datum = *datum; in avtab_insert_node()
124 newnode->next = prev->next; in avtab_insert_node()
[all …]
Dsidtab.c46 sidtab_node_t *prev, *cur, *newnode; in sepol_sidtab_insert() local
64 newnode = (sidtab_node_t *) malloc(sizeof(sidtab_node_t)); in sepol_sidtab_insert()
65 if (newnode == NULL) in sepol_sidtab_insert()
67 newnode->sid = sid; in sepol_sidtab_insert()
68 if (context_cpy(&newnode->context, context)) { in sepol_sidtab_insert()
69 free(newnode); in sepol_sidtab_insert()
74 newnode->next = prev->next; in sepol_sidtab_insert()
75 prev->next = newnode; in sepol_sidtab_insert()
77 newnode->next = s->htable[hvalue]; in sepol_sidtab_insert()
78 s->htable[hvalue] = newnode; in sepol_sidtab_insert()
/external/selinux/policycoreutils/newrole/
Dhashtab.c48 hashtab_ptr_t prev, cur, newnode; in hashtab_insert() local
64 newnode = (hashtab_ptr_t) malloc(sizeof(hashtab_node_t)); in hashtab_insert()
65 if (newnode == NULL) in hashtab_insert()
67 memset(newnode, 0, sizeof(struct hashtab_node)); in hashtab_insert()
68 newnode->key = key; in hashtab_insert()
69 newnode->datum = datum; in hashtab_insert()
71 newnode->next = prev->next; in hashtab_insert()
72 prev->next = newnode; in hashtab_insert()
74 newnode->next = h->htable[hvalue]; in hashtab_insert()
75 h->htable[hvalue] = newnode; in hashtab_insert()
[all …]
/external/python/cpython2/Lib/lib2to3/pgen2/
Dparse.py107 newnode = (start, None, None, [])
108 stackentry = (self.grammar.dfas[start], 0, newnode)
178 newnode = (type, value, context, None)
179 newnode = self.convert(self.grammar, newnode)
180 if newnode is not None:
181 node[-1].append(newnode)
187 newnode = (type, None, context, [])
189 self.stack.append((newdfa, 0, newnode))
194 newnode = self.convert(self.grammar, popnode)
195 if newnode is not None:
[all …]
/external/python/cpython3/Lib/lib2to3/pgen2/
Dparse.py107 newnode = (start, None, None, [])
108 stackentry = (self.grammar.dfas[start], 0, newnode)
178 newnode = (type, value, context, None)
179 newnode = self.convert(self.grammar, newnode)
180 if newnode is not None:
181 node[-1].append(newnode)
187 newnode = (type, None, context, [])
189 self.stack.append((newdfa, 0, newnode))
194 newnode = self.convert(self.grammar, popnode)
195 if newnode is not None:
[all …]
/external/selinux/libselinux/src/
Davc_sidtab.c52 struct sidtab_node *newnode; in sidtab_insert() local
55 newnode = (struct sidtab_node *)avc_malloc(sizeof(*newnode)); in sidtab_insert()
56 if (!newnode) { in sidtab_insert()
63 avc_free(newnode); in sidtab_insert()
68 newnode->next = s->htable[hvalue]; in sidtab_insert()
69 newnode->sid_s.ctx = newctx; in sidtab_insert()
70 newnode->sid_s.refcnt = 1; /* unused */ in sidtab_insert()
71 s->htable[hvalue] = newnode; in sidtab_insert()
/external/toybox/toys/pending/
Dtcpsvd.c92 struct list_pid *newnode = xmalloc(sizeof(struct list_pid)); in insert() local
93 newnode->pid = pid; in insert()
94 newnode->ip = addr; in insert()
95 newnode->next = NULL; in insert()
96 if (!*l) *l = newnode; in insert()
98 newnode->next = (*l); in insert()
99 *l = newnode; in insert()
270 struct list *head, *newnode; in tcpsvd_main() local
338 newnode = (struct list*)xzalloc(sizeof(struct list)); in tcpsvd_main()
339 newnode->d = addr; in tcpsvd_main()
[all …]
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/
DDTMNodeProxy.java340 int newnode = dtm.getParent(node); in getParentNode() local
342 return (newnode == DTM.NULL) ? null : dtm.getNode(newnode); in getParentNode()
353 int newnode = dtm.getParent(node); in getOwnerNode() local
355 return (newnode == DTM.NULL) ? null : dtm.getNode(newnode); in getOwnerNode()
382 int newnode = dtm.getFirstChild(node); in getFirstChild() local
384 return (newnode == DTM.NULL) ? null : dtm.getNode(newnode); in getFirstChild()
395 int newnode = dtm.getLastChild(node); in getLastChild() local
397 return (newnode == DTM.NULL) ? null : dtm.getNode(newnode); in getLastChild()
408 int newnode = dtm.getPreviousSibling(node); in getPreviousSibling() local
410 return (newnode == DTM.NULL) ? null : dtm.getNode(newnode); in getPreviousSibling()
[all …]
/external/libxml2/doc/tutorial/
Dincludeaddattribute.c14 xmlNodePtr newnode;
38 newnode = xmlNewTextChild (cur, NULL, "reference", NULL);
39 newattr = xmlNewProp (newnode, "uri", uri);
/external/iptables/iptables/
Dxtables-eb.c668 struct ebt_match *newnode; in ebt_add_match() local
686 newnode = calloc(1, sizeof(struct ebt_match)); in ebt_add_match()
687 if (newnode == NULL) in ebt_add_match()
690 newnode->ismatch = true; in ebt_add_match()
691 newnode->u.match = newm; in ebt_add_match()
694 cs->match_list = newnode; in ebt_add_match()
696 cs->match_list->next = newnode; in ebt_add_match()
702 struct ebt_match *i, *newnode; in ebt_add_watcher() local
713 newnode = calloc(1, sizeof(struct ebt_match)); in ebt_add_watcher()
714 if (newnode == NULL) in ebt_add_watcher()
[all …]
/external/curl/lib/
Dsplay.h41 struct Curl_tree *newnode);
/external/e2fsprogs/lib/support/
Ddict.c1067 void dict_load_next(dict_load_t *load, dnode_t *newnode, const void *key) in dict_load_next() argument
1072 dict_assert (!dnode_is_in_a_dict(newnode)); in dict_load_next()
1084 newnode->key = key; in dict_load_next()
1085 nil->right->left = newnode; in dict_load_next()
1086 nil->right = newnode; in dict_load_next()
1087 newnode->left = nil; in dict_load_next()
/external/f2fs-tools/fsck/
Ddict.c1037 void dict_load_next(dict_load_t *load, dnode_t *newnode, const void *key) in dict_load_next() argument
1042 dict_assert(!dnode_is_in_a_dict(newnode)); in dict_load_next()
1054 newnode->key = key; in dict_load_next()
1055 nil->right->left = newnode; in dict_load_next()
1056 nil->right = newnode; in dict_load_next()
1057 newnode->left = nil; in dict_load_next()
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/dom2dtm/
DDOM2DTM.java1028 Node newnode=(Node)m_nodes.elementAt(id); in getLocalName()
1029 String newname=newnode.getLocalName(); in getLocalName()
1033 String qname = newnode.getNodeName(); in getLocalName()
/external/antlr/antlr-3.4/runtime/ObjC/Framework/
DACBTree.m184 // newnode.lnodeid = tnew.btNodes[0].nodeid;