/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
D | tsearch.c | 96 trecurse(node *root, void (*action)(const void *, VISIT, int), int level) in trecurse() argument 98 if (root->left == (struct node_t *)0 && root->right == (struct node_t *)0) in trecurse() 99 (*action)(root, leaf, level); in trecurse() 101 (*action)(root, preorder, level); in trecurse() 102 if (root->left != (struct node_t *)0) in trecurse() 103 trecurse(root->left, action, level + 1); in trecurse() 104 (*action)(root, postorder, level); in trecurse() 105 if (root->right != (struct node_t *)0) in trecurse() 106 trecurse(root->right, action, level + 1); in trecurse() 107 (*action)(root, endorder, level); in trecurse() [all …]
|
/bionic/libc/bionic/ |
D | tdestroy.cpp | 23 void tdestroy(void* root, void (*destroy_func)(void*)) { in tdestroy() argument 24 node_t* root_node = (node_t*) root; in tdestroy() 35 free(root); in tdestroy()
|
D | fts.c | 76 FTSENT *p, *root; in fts_open() local 110 for (root = NULL, nitems = 0; *argv; ++argv, ++nitems) { in fts_open() 133 p->fts_link = root; in fts_open() 134 root = p; in fts_open() 137 if (root == NULL) in fts_open() 138 tmp = root = p; in fts_open() 146 root = fts_sort(sp, root, nitems); in fts_open() 155 sp->fts_cur->fts_link = root; in fts_open() 173 mem3: fts_lfree(root); in fts_open()
|
D | system_properties.cpp | 435 prop_bt* root = NULL; in find_property() local 437 root = reinterpret_cast<prop_bt*>(to_prop_obj(current->children)); in find_property() 440 root = new_prop_bt(remaining_name, substr_size, &new_bt_offset); in find_property() 441 if (root) { in find_property() 446 if (!root) { in find_property() 450 current = find_prop_bt(root, remaining_name, substr_size, alloc_if_needed); in find_property()
|
/bionic/tests/ |
D | search_test.cpp | 79 void* root = nullptr; in TEST() local 86 ASSERT_EQ(nullptr, tfind(&n1, &root, node_cmp)); in TEST() 87 ASSERT_EQ(nullptr, tfind(&n2, &root, node_cmp)); in TEST() 88 ASSERT_EQ(nullptr, tfind(&n3, &root, node_cmp)); in TEST() 91 void* i1 = tsearch(&n1, &root, node_cmp); in TEST() 95 ASSERT_EQ(i1, tfind(&n1, &root, node_cmp)); in TEST() 96 ASSERT_EQ(nullptr, tfind(&n2, &root, node_cmp)); in TEST() 97 ASSERT_EQ(nullptr, tfind(&n3, &root, node_cmp)); in TEST() 100 ASSERT_NE(nullptr, tsearch(&n2, &root, node_cmp)); in TEST() 101 ASSERT_NE(nullptr, tsearch(&n3, &root, node_cmp)); in TEST() [all …]
|
/bionic/libc/kernel/tools/ |
D | utils.py | 94 for root, dirs, files in os.walk(path): 98 if os.path.join(root,d) in excludes: 103 callback( "%s/%s" % (root,f), args ) 111 for root, dirs, files in os.walk(path, topdown=False): 112 if root.endswith("kernel_headers/"): 116 os.remove(os.path.join(root, name)) 118 os.rmdir(os.path.join(root, name)) 135 for root, dirs, files in os.walk(path): 137 dst = "%s/%s" % (root,f)
|
D | update_all.py | 54 for root, dirs, files in os.walk( original_dir ): 57 warning_ion.append(" Skipped file %s/%s" % (root, file)) 61 sources.append( "%s/%s" % (root,file) )
|
/bionic/libc/kernel/uapi/linux/ |
D | nfs_mount.h | 50 struct nfs3_fh root; member
|
D | adfs_fs.h | 39 __le32 root; member
|
D | cramfs_fs.h | 57 struct cramfs_inode root; member
|
/bionic/libc/kernel/uapi/sound/ |
D | sfnt_info.h | 109 short root; member
|
D | asequencer.h | 447 struct snd_seq_addr root; member
|
/bionic/libc/dns/nameser/ |
D | ns_print.c | 136 goto root; in ns_sprintrrf() 145 root: in ns_sprintrrf() 1196 goto root; in addname() 1208 root: in addname()
|