Home
last modified time | relevance | path

Searched refs:root (Results 1 – 25 of 27) sorted by relevance

12

/bionic/tests/
Dftw_test.cpp31 static void MakeTree(const char* root) { in MakeTree() argument
34 snprintf(path, sizeof(path), "%s/dir", root); in MakeTree()
36 snprintf(path, sizeof(path), "%s/dir/sub", root); in MakeTree()
38 snprintf(path, sizeof(path), "%s/unreadable-dir", root); in MakeTree()
41 snprintf(path, sizeof(path), "%s/dangler", root); in MakeTree()
43 snprintf(path, sizeof(path), "%s/symlink", root); in MakeTree()
47 snprintf(path, sizeof(path), "%s/regular", root); in MakeTree()
104 TemporaryDir root; in TEST() local
105 MakeTree(root.path); in TEST()
106 ASSERT_EQ(0, ftw(root.path, check_ftw, 128)); in TEST()
[all …]
Dsearch_test.cpp79 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 …]
Dmalloc_test.cpp422 auto root = doc.FirstChildElement(); in TEST() local
423 ASSERT_NE(nullptr, root); in TEST()
424 ASSERT_STREQ("malloc", root->Name()); in TEST()
425 std::string version(root->Attribute("version")); in TEST()
427 auto arena = root->FirstChildElement(); in TEST()
456 auto element = root->FirstChildElement(); in TEST()
492 auto root = doc.FirstChildElement(); in TEST() local
493 ASSERT_NE(nullptr, root); in TEST()
494 ASSERT_STREQ("malloc", root->Name()); in TEST()
495 std::string version(root->Attribute("version")); in TEST()
[all …]
/bionic/libc/upstream-openbsd/lib/libc/stdlib/
Dtsearch.c95 trecurse(node *root, void (*action)(const void *, VISIT, int), int level) in trecurse() argument
97 if (root->left == (struct node_t *)0 && root->right == (struct node_t *)0) in trecurse()
98 (*action)(root, leaf, level); in trecurse()
100 (*action)(root, preorder, level); in trecurse()
101 if (root->left != (struct node_t *)0) in trecurse()
102 trecurse(root->left, action, level + 1); in trecurse()
103 (*action)(root, postorder, level); in trecurse()
104 if (root->right != (struct node_t *)0) in trecurse()
105 trecurse(root->right, action, level + 1); in trecurse()
106 (*action)(root, endorder, level); in trecurse()
[all …]
/bionic/benchmarks/linker_relocation/regen/
Dgen_bench.py140 def check_rels(root: LoadedLibrary, defs: Definitions) -> None:
143 for lib in bfs_walk(root):
263 def __init__(self, root: LoadedLibrary):
264 self._root = root
266 all_libs = [x for x in bfs_walk(root) if x is not root and x.soname not in kBionicSonames]
283 def make_ninja_benchmark(root: LoadedLibrary, defs: Definitions, cc: str, out: Path) -> None:
285 lib_names = LibNames(root)
300 for lib in bfs_walk(root):
309 has_map_file = make_asm_file(lib, lib is root, asm_path, map_path, defs)
312 if lib is root:
[all …]
Ddump_relocs.py242 root = load_elf_tree(search_path, Path(args.input))
243 json.dump(elf_tree_to_json(root), f, sort_keys=True, indent=2)
/bionic/libc/kernel/tools/
Dutils.py36 root = os.environ["ANDROID_BUILD_TOP"]
37 if len(cwd) < len(root) or not root == cwd[:len(root)]:
38 panic("Not in android tree pointed at by ANDROID_BUILD_TOP (%s)\n" % root)
87 for root, dirs, files in os.walk(path):
89 dst = "%s/%s" % (root,f)
Dupdate_all.py30 for root, dirs, files in os.walk(update_dir, topdown=True):
35 os.remove(os.path.join(root, entry))
37 shutil.rmtree(os.path.join(root, entry))
45 for root, _, files in os.walk(src_dir):
50 src_file = os.path.normpath(os.path.join(root, file))
/bionic/libc/bionic/
Dtdestroy.cpp28 void tdestroy(void* root, void (*destroy_func)(void*)) { in tdestroy() argument
29 node_t* root_node = reinterpret_cast<node_t*>(root); in tdestroy()
40 free(root); in tdestroy()
Dfts.c75 FTSENT *p, *root; in __fts_open() local
110 for (root = prev = NULL, nitems = 0; *argv; ++argv, ++nitems) { in __fts_open()
130 p->fts_link = root; in __fts_open()
131 root = p; in __fts_open()
134 if (root == NULL) in __fts_open()
135 root = p; in __fts_open()
142 root = fts_sort(sp, root, nitems); in __fts_open()
151 sp->fts_cur->fts_link = root; in __fts_open()
170 mem3: fts_lfree(root); in __fts_open()
Djemalloc_wrapper.cpp145 MallocXmlElem root(fd, "malloc", "version=\"jemalloc-1\""); in je_malloc_info() local
/bionic/
DCleanSpec.mk57 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/root/bionic)
58 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/recovery/root/bionic)
DREADME.md317 $ adb root && adb remount && adb sync
334 a non-root user, so the unit tests must also pass when not run as root.
335 Some tests cannot do any useful work unless run as root. In this case,
338 rewritten to not require root, that's an even better solution.
350 $ adb unroot # Because real CTS doesn't run as root.
/bionic/libc/system_properties/
Dprop_area.cpp291 prop_bt* root = nullptr; in find_property() local
294 root = to_prop_bt(&current->children); in find_property()
297 root = new_prop_bt(remaining_name, substr_size, &new_offset); in find_property()
298 if (root) { in find_property()
303 if (!root) { in find_property()
307 current = find_prop_bt(root, remaining_name, substr_size, alloc_if_needed); in find_property()
/bionic/libc/kernel/uapi/linux/
Dnfs_mount.h44 struct nfs3_fh root; member
Dadfs_fs.h35 __le32 root; member
Dcramfs_fs.h50 struct cramfs_inode root; member
Dbtrfs_tree.h243 __le64 root; member
318 __le64 root; member
/bionic/linker/
Dlinker.cpp732 soinfo* root, in ElfW()
740 walk_dependencies_tree(root, [&](soinfo* current_soinfo) { in ElfW()
1755 for (auto root : local_group_roots) { in find_libraries() local
1757 android_namespace_t* local_group_ns = root->get_primary_namespace(); in find_libraries()
1759 walk_dependencies_tree(root, in find_libraries()
1858 static void soinfo_unload_impl(soinfo* root) { in soinfo_unload_impl() argument
1859 ScopedTrace trace((std::string("unload ") + root->get_realpath()).c_str()); in soinfo_unload_impl()
1860 bool is_linked = root->is_linked(); in soinfo_unload_impl()
1862 if (!root->can_unload()) { in soinfo_unload_impl()
1865 root->get_realpath(), in soinfo_unload_impl()
[all …]
/bionic/libc/kernel/uapi/sound/
Dsfnt_info.h91 short root; member
Dasequencer.h365 struct snd_seq_addr root; member
/bionic/benchmarks/
DREADME.md14 $ adb root
89 adb root
/bionic/libc/dns/nameser/
Dns_print.c130 goto root; in ns_sprintrrf()
139 root: in ns_sprintrrf()
1190 goto root; in addname()
1202 root: in addname()
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_unit_tests.cpp2550 auto root = doc.FirstChildElement(); in TEST_F() local
2551 ASSERT_TRUE(root != nullptr); in TEST_F()
2552 ASSERT_STREQ("malloc", root->Name()); in TEST_F()
2555 ASSERT_STRNE("debug-malloc-1", root->Attribute("version")); in TEST_F()
2585 auto root = doc.FirstChildElement(); in TEST_F() local
2586 ASSERT_TRUE(root != nullptr); in TEST_F()
2587 ASSERT_STREQ("malloc", root->Name()); in TEST_F()
2588 ASSERT_STREQ("debug-malloc-1", root->Attribute("version")); in TEST_F()
2590 auto alloc = root->FirstChildElement(); in TEST_F()
/bionic/libc/malloc_debug/
DREADME_marshmallow_and_earlier.md17 run as root on the device.

12