/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 | 31 Dl_namespace dlns; in dlopen_ns_special_0100() local 32 dlns_init(&dlns, "ns_no_allowed_libs"); in dlopen_ns_special_0100() 34 void* handle1 = dlopen_ns(&dlns, dllName, RTLD_LAZY); in dlopen_ns_special_0100() 37 void* handle2 = dlopen_ns(&dlns, dllName, RTLD_LAZY); in dlopen_ns_special_0100() 40 void* handle3 = dlopen_ns(&dlns, dllName, RTLD_LAZY); in dlopen_ns_special_0100() 82 Dl_namespace dlns; in dlopen_ns_sys_path_0100() local 83 dlns_init(&dlns, "default"); in dlopen_ns_sys_path_0100() 84 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/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/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() 242 Dl_namespace dlns; in dlopen_test_dlns_create2() local 243 dlns_init(&dlns, "ns_for_create2"); in dlopen_test_dlns_create2() 245 void* handle = dlopen_ns(&dlns, dllName, RTLD_LAZY); in dlopen_test_dlns_create2() 253 dlns_create2(&dlns, errPath_ns, 0); in dlopen_test_dlns_create2() 254 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 | 3494 void dlns_init(Dl_namespace *dlns, const char *name) in dlns_init() argument 3496 if (!dlns) { in dlns_init() 3500 dlns->name[0] = 0; in dlns_init() 3509 snprintf(dlns->name, sizeof dlns->name, name); in dlns_init() 3510 LD_LOGI("dlns_init dlns->name:%{public}s .", dlns->name); in dlns_init() 3513 int dlns_get(const char *name, Dl_namespace *dlns) in dlns_get() argument 3515 if (!dlns) { in dlns_get() 3527 (void)snprintf(dlns->name, sizeof dlns->name, ns->ns_name); in dlns_get() 3528 LD_LOGI("dlns_get name is null, current dlns dlns->name:%{public}s.", dlns->name); in dlns_get() 3532 (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/musl/porting/linux/user/config/ |
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-arm-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/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);
|