/third_party/musl/libc-test/src/functionalext/dlns/ |
D | dlns_separated.c | 32 Dl_namespace dlns; in separated_0100() local 33 dlns_init(&dlns, "ns_separated_flase"); in separated_0100() 35 void* handle = dlopen_ns(&dlns, dllName, RTLD_LAZY); in separated_0100() 47 Dl_namespace dlns; in separated_0200() local 48 dlns_init(&dlns, "ns_separated1"); in separated_0200() 51 void* handle = dlopen_ns(&dlns, dllName2, RTLD_LAZY); in separated_0200() 63 Dl_namespace dlns; in separated_0300() local 64 dlns_init(&dlns, "ns_normal"); in separated_0300() 67 void* handle = dlopen_ns(&dlns, dllNamePath, RTLD_LAZY); in separated_0300() 81 Dl_namespace dlns; in separated_0400() local [all …]
|
D | dlns_dlopen.c | 56 Dl_namespace dlns; in dlns_init_0100() local 58 dlns_init(&dlns, n); in dlns_init_0100() 59 EXPECT_EQ("dlns_init_0100", strcmp(dlns.name, n), 0); in dlns_init_0100() 69 Dl_namespace dlns; in dlns_init_0200() local 76 dlns_init(&dlns, n); in dlns_init_0200() 79 int dlnslen = strlen(dlns.name); in dlns_init_0200() 90 Dl_namespace dlns; in dlns_create_0100() local 91 dlns_init(&dlns, "dlns_create_0100"); in dlns_create_0100() 93 EXPECT_EQ("dlns_create_0100", dlns_create(&dlns, path), EOK); in dlns_create_0100() 104 Dl_namespace dlns; in dlns_create_0200() local [all …]
|
D | dlns_set_fun.c | 42 Dl_namespace dlns; in dlns_set_namespace_lib_path_0200() local 43 dlns_init(&dlns, "dlns_set_namespace_lib_path_0200"); in dlns_set_namespace_lib_path_0200() 45 EXPECT_EQ("dlns_set_namespace_lib_path_0200", dlns_create(&dlns, NULL), EOK); in dlns_set_namespace_lib_path_0200() 47 void* handle = dlopen_ns(&dlns, dllName_set_002, RTLD_LAZY); in dlns_set_namespace_lib_path_0200() 53 handle = dlopen_ns(&dlns, dllName_set_002, RTLD_LAZY); in dlns_set_namespace_lib_path_0200() 75 Dl_namespace dlns; in dlns_set_namespace_lib_path_0400() local 76 dlns_init(&dlns, "dlns_set_namespace_lib_path_0400"); in dlns_set_namespace_lib_path_0400() 78 EXPECT_EQ("dlns_set_namespace_lib_path_0400", dlns_create(&dlns, NULL), EOK); in dlns_set_namespace_lib_path_0400() 91 Dl_namespace dlns; in dlns_set_namespace_lib_path_0500() local 92 dlns_init(&dlns, "dlns_set_namespace_lib_path_0500"); in dlns_set_namespace_lib_path_0500() [all …]
|
D | dlns_special_scene.c | 33 Dl_namespace dlns; in dlopen_ns_special_0100() local 34 dlns_init(&dlns, "ns_no_allowed_libs"); in dlopen_ns_special_0100() 35 dlns_inherit(&dlns, &dlns_default, "libc++.so"); in dlopen_ns_special_0100() 37 void* handle1 = dlopen_ns(&dlns, dllName, RTLD_LAZY); in dlopen_ns_special_0100() 40 void* handle2 = dlopen_ns(&dlns, dllName, RTLD_LAZY); in dlopen_ns_special_0100() 43 void* handle3 = dlopen_ns(&dlns, dllName, RTLD_LAZY); in dlopen_ns_special_0100() 90 Dl_namespace dlns; in dlopen_ns_sys_path_0100() local 91 dlns_init(&dlns, "default"); in dlopen_ns_sys_path_0100() 92 void* handle = dlopen_ns(&dlns, dllName, RTLD_LAZY); in dlopen_ns_sys_path_0100()
|
D | dlns_dlopen_ext.c | 37 Dl_namespace dlns; in dlopen_0100() local 38 dlns_init(&dlns, "dlns_create_0100"); in dlopen_0100() 40 void *handle = dlopen_ns_ext(&dlns, dllNamePath, RTLD_LAZY, &extinfo); in dlopen_0100()
|
/third_party/musl/libc-test/src/functionalext/rpath/ |
D | rpath_test.c | 82 Dl_namespace dlns; in RpathNsOrigin() local 83 dlns_init(&dlns, g_dlName); in RpathNsOrigin() 84 dlns_create2(&dlns, g_dlpath, 0); in RpathNsOrigin() 87 void *handleErr = dlopen_ns(&dlns, g_originLib, RTLD_LAZY); in RpathNsOrigin() 93 void *handle = dlopen_ns(&dlns, g_originLib, RTLD_LAZY); in RpathNsOrigin() 110 Dl_namespace dlns; in RpathNsMultiple() local 111 dlns_init(&dlns, g_dlName); in RpathNsMultiple() 112 dlns_create2(&dlns, g_dlpath, 0); in RpathNsMultiple() 115 void *handle = dlopen_ns(&dlns, g_multipleLib, RTLD_LAZY); in RpathNsMultiple()
|
/third_party/musl/libc-test/src/functionalext/ldso_randomization/ |
D | ldso_randomization_test.c | 372 Dl_namespace dlns; in dlopen_ns_randomization_0100() local 373 dlns_init(&dlns, __FUNCTION__); in dlopen_ns_randomization_0100() 374 dlns_create(&dlns, "./"); in dlopen_ns_randomization_0100() 375 void *handle = dlopen_ns(&dlns, LIB_NAME, RTLD_NOW); in dlopen_ns_randomization_0100() 389 Dl_namespace dlns; in dlopen_ns_randomization_0200() local 390 dlns_init(&dlns, __FUNCTION__); in dlopen_ns_randomization_0200() 391 dlns_create(&dlns, "./"); in dlopen_ns_randomization_0200() 392 void *handle = dlopen_ns(&dlns, NULL, RTLD_NOW); in dlopen_ns_randomization_0200() 423 Dl_namespace dlns; in dlopen_ns_randomization_0300() local 424 dlns_init(&dlns, __FUNCTION__); in dlopen_ns_randomization_0300() [all …]
|
D | ldso_randomization_manual.c | 191 Dl_namespace dlns; in dlopen_ns_randomization_0500() local 192 dlns_init(&dlns, __FUNCTION__); in dlopen_ns_randomization_0500() 193 dlns_create(&dlns, "./"); in dlopen_ns_randomization_0500() 199 handle = dlopen_ns(&dlns, LIB_NAME, RTLD_NOW); in dlopen_ns_randomization_0500() 219 Dl_namespace dlns; in dlopen_ns_randomization_0700() local 220 dlns_init(&dlns, __FUNCTION__); in dlopen_ns_randomization_0700() 221 dlns_create(&dlns, "./"); in dlopen_ns_randomization_0700() 232 void *child_handle = dlopen_ns(&dlns, LIB_NAME, RTLD_NOW); in dlopen_ns_randomization_0700() 240 parent_handle = dlopen_ns(&dlns, LIB_NAME, RTLD_NOW); in dlopen_ns_randomization_0700()
|
/third_party/musl/porting/linux/user/config/ |
D | ld-musl-namespace-riscv64-test.ini | 3 test = /data/tests/libc-test/src/functionalext:/data/tests/libc-test/src/functionalext/dlns 14 namespace.ns_no_allowed_libs.lib.paths = /data/tests/libc-test/src/functionalext/dlns 18 namespace.ns_normal.lib.paths = /data/tests/libc-test/src/functionalext/dlns 29 namespace.ns_wrong_allowed_path.lib.paths = /data/tests/libc-test/src/functionalext/dlns 39 namespace.inherited_class.lib.paths = /data/tests/libc-test/src/functionalext/dlns 44 namespace.ns_separated_flase.lib.paths = /data/tests/libc-test/src/functionalext/dlns 49 namespace.ns_asan_lib_path.lib.paths = /data/tests/libc-test/src/functionalext/dlns 50 namespace.ns_asan_lib_path.asan.lib.paths = /data/tests/libc-test/src/functionalext/dlns/B 54 namespace.ns_asan_permit_path.permitted.paths = /data/tests/libc-test/src/functionalext/dlns/C 55 …namespace.ns_asan_permit_path.asan.permitted.paths = /data/tests/libc-test/src/functionalext/dlns/B
|
D | ld-musl-namespace-arm-test.ini | 35 namespace.ns_wrong_allowed_path.lib.paths = /data/tests/libc-test/src/functionalext/dlns
|
D | ld-musl-namespace-aarch64-test.ini | 35 namespace.ns_wrong_allowed_path.lib.paths = /data/tests/libc-test/src/functionalext/dlns
|
D | ld-musl-namespace-x86_64-test.ini | 35 namespace.ns_wrong_allowed_path.lib.paths = /data/tests/libc-test/src/functionalext/dlns
|
/third_party/musl/libc-test/src/functionalext/supplement/ldso/ldso_gtest/ |
D | ldso_dlopen_ns_test.cpp | 37 Dl_namespace dlns; variable 38 dlns_init(&dlns, "name_one"); 39 dlns_create(&dlns, searchPath.c_str()); 41 void* handle = dlopen_ns(&dlns, rootSo, RTLD_NOW); 157 Dl_namespace dlns; variable 158 dlns_init(&dlns, "lspath"); 159 dlns_create(&dlns, (g_ldsoTestRootPath + "/libzipalign_lspath.zip" + "!/libso").c_str()); 161 handle = dlopen_ns(&dlns, "libdlopen_zip_test.so", RTLD_NOW);
|
D | ldso_dlns_create_test.cpp | 26 Dl_namespace dlns; variable 27 dlns_init(&dlns, "create2_ns"); 28 dlns_create2(&dlns, searchPath.c_str(), CREATE_INHERIT_DEFAULT); 29 handle = dlopen_ns(&dlns, rootSo, RTLD_LAZY);
|
/third_party/musl/libc-test/src/functional/ |
D | dlopen_ns.c | 44 Dl_namespace dlns; in ndk_so_dlopen_default_ns_so() local 45 dlns_init(&dlns, "ndk"); in ndk_so_dlopen_default_ns_so() 46 void *handle = dlopen_ns(&dlns, ndk_so, RTLD_NOW); in ndk_so_dlopen_default_ns_so() 250 Dl_namespace dlns; in dlopen_test_dlns_create2() local 251 dlns_init(&dlns, "ns_for_create2"); in dlopen_test_dlns_create2() 253 void* handle = dlopen_ns(&dlns, dllName, RTLD_LAZY); in dlopen_test_dlns_create2() 261 dlns_create2(&dlns, errPath_ns, 0); in dlopen_test_dlns_create2() 262 void* handle2 = dlopen_ns(&dlns, dllName, RTLD_LAZY); in dlopen_test_dlns_create2()
|
/third_party/musl/libc-test/src/functionalext/unittest/ |
D | unit_test_ldso_dynlink.c | 478 Dl_namespace dlns = {.name = ""}; in dynlink_test_0300() local 480 int ret = dlns_inherit(&dlns, &inherited, ""); in dynlink_test_0300() 491 Dl_namespace dlns = {.name = ""}; in dynlink_test_0310() local 492 int ret = dlns_create2(&dlns, "", CREATE_INHERIT_CURRENT); in dynlink_test_0310() 514 Dl_namespace dlns = {.name = ""}; in dynlink_test_0330() local 515 dlns_init(&dlns, NULL); in dynlink_test_0330()
|
/third_party/musl/porting/linux/user/ldso/ |
D | dynlink.c | 3580 void dlns_init(Dl_namespace *dlns, const char *name) in dlns_init() argument 3582 if (!dlns) { in dlns_init() 3586 dlns->name[0] = 0; in dlns_init() 3595 snprintf(dlns->name, sizeof dlns->name, name); in dlns_init() 3596 LD_LOGI("dlns_init dlns->name:%{public}s .", dlns->name); in dlns_init() 3599 int dlns_get(const char *name, Dl_namespace *dlns) in dlns_get() argument 3601 if (!dlns) { in dlns_get() 3613 (void)snprintf(dlns->name, sizeof dlns->name, ns->ns_name); in dlns_get() 3614 LD_LOGI("dlns_get name is null, current dlns dlns->name:%{public}s.", dlns->name); in dlns_get() 3618 (void)snprintf(dlns->name, sizeof dlns->name, ns->ns_name); in dlns_get() [all …]
|
D | README.md | 18 …g directory is configures for test. The file <libc-test/src/functionalext/dlns/> gives usages of h…
|
/third_party/musl/libc-test/src/functionalext/ |
D | test_src_functionalext.gni | 21 "dlns:dlns_test",
|
/third_party/chromium/patch/ |
D | 0003-ohos-1115.patch | 73245 + Dl_namespace dlns; 73246 + dlns_init(&dlns, "nweb_test_ns"); 73247 + dlns_create(&dlns, "/data/app/el1/bundle/public/com.ohos.nweb/libs/arm"); 73250 + void *libHandleWebEngine = dlopen_ns(&dlns, LIB_PATH_WEB_ENGINE.c_str(), RTLD_NOW); 73255 + void *libHandleNWebRender = dlopen_ns(&dlns, LIB_PATH_NWEB_RENDER.c_str(), RTLD_NOW);
|