dlsym
void *dlsym(void * __restrict, const char * __restrict);
void *(*dlsym)(void *, const char *);
p = dlsym((void *)handle, name);
__weak_alias(dlsym,___dlsym)
reg_fn = (nss_module_register_fn) dlsym(mod.handle,
return dlsym(handle, symbol);
host_fork = dlsym(RTLD_NEXT, "fork");
host_daemon = dlsym(RTLD_NEXT, "daemon");
host_mmap = dlsym(RTLD_NEXT, "mmap");
syscalls[i].bs_host = dlsym(RTLD_NEXT,
syscalls[i].bs_rump = dlsym(RTLD_NEXT,
return dlsym(handle, symbol);
mi_start = dlsym(handle, "__start_link_set_modules");
mi_end = dlsym(handle, "__stop_link_set_modules");
rc = dlsym(handle, "__start_link_set_rump_components");
rc_end = dlsym(handle, "__stop_link_set_rump_components");
sfp = dlsym(handle, "__start_link_set_sysctl_funcs");
sfp_end = dlsym(handle, "__stop_link_set_sysctl_funcs");
evp = dlsym(handle, "__start_link_set_evcnts");
evp_end = dlsym(handle, "__stop_link_set_evcnts");
mi_start = dlsym(handle, "__start_link_set_modules");
mi_end = dlsym(handle, "__stop_link_set_modules");
[(RTLD_OBJ_DLOPEN_OFFSET / sizeof(uintptr_t)) + 1] = (uintptr_t)dlsym,
__strong_alias(__dlsym,dlsym)
dlsym(void *handle, const char *name)
__dso_public void *dlsym(void *, const char *);
if (m == NULL) m = dlsym(RTLD_NEXT, "malloc");
if (f == NULL) f = dlsym(RTLD_NEXT, "malloc");
if ((compat13_sigsetjmp = dlsym(RTLD_SELF, "sigsetjmp")) == NULL ||
(compat13_siglongjmp = dlsym(RTLD_SELF, "siglongjmp")) == NULL ||
(compat13_setjmp = dlsym(RTLD_SELF, "setjmp")) == NULL ||
(compat13_longjmp = dlsym(RTLD_SELF, "longjmp")) == NULL)
if ((compat13_sigsetjmp = dlsym(RTLD_SELF, "sigsetjmp")) == NULL ||
(compat13_siglongjmp = dlsym(RTLD_SELF, "siglongjmp")) == NULL ||
(compat13_setjmp = dlsym(RTLD_SELF, "setjmp")) == NULL ||
(compat13_longjmp = dlsym(RTLD_SELF, "longjmp")) == NULL)
strchr_fn = dlsym(dl_handle, "test_strchr");
strchrnul_fn = dlsym(dl_handle, "test_strchrnul");
strlen_fn = dlsym(dl_handle, "test_strlen");
testf_helper = dlsym(handle, "testf_dso_helper");
testf_dso_mutex_unlock = dlsym(handle, "testf_dso_mutex_unlock");
testf_dso_mutex_lock = dlsym(handle, "testf_dso_mutex_lock");
testf_dso_null = dlsym(handle, "testf_dso_null");
testf_dso_null = dlsym(handle, "testf_dso_null");
testf_dso_pthread_create = dlsym(handle, "testf_dso_pthread_create");
testf_dso_pthread_create = dlsym(handle, "testf_dso_pthread_create");
tls_callback_sym = dlsym(dso, "tls_callback");
testfunc = dlsym(dso, "testfunc");
sym = dlsym(handle, "sin");
sym = dlsym(handle, "ifunc_plt");
sym2 = dlsym(handle, "ifunc_indirect");
sym = dlsym(handle, "ifunc");
ATF_REQUIRE_DL(fdef = dlsym(def, "fdef"));
ATF_REQUIRE_DL(fdynamic = dlsym(use_dynamic, "fdynamic"));
ATF_REQUIRE_DL(fdynamic = dlsym(use_dynamic, "fdynamic"));
ATF_REQUIRE_DL(fstatic = dlsym(use_static, "fstatic"));
ATF_REQUIRE_DL(fstatic = dlsym(use_static, "fstatic"));
ATF_REQUIRE_DL(fdynamic = dlsym(use_dynamic, "fdynamic"));
ATF_REQUIRE_DL(fstatic = dlsym(use_static, "fstatic"));
ATF_REQUIRE_DL(fdynamic = dlsym(use_dynamic, "fdynamic"));
ATF_REQUIRE_DL(fdef = dlsym(def, "fdef"));
ATF_REQUIRE_DL(fuse = dlsym(use, "fuse"));
ATF_REQUIRE_DL(fdef = dlsym(def, "fdef"));
ATF_REQUIRE_DL(fuse = dlsym(use, "fuse"));
lazy: ATF_REQUIRE_DL(fdef = dlsym(def, "fdef"));
ATF_REQUIRE_DL(fuse = dlsym(use, "fuse"));
mi_start = dlsym(handle, "__start_link_set_modules");
mi_end = dlsym(handle, "__stop_link_set_modules");
sym = dlsym(handle, buf);