Lines Matching defs:dl_handle
35 void *dl_handle;
70 ctx->dl_handle = dlopen("libnss_sss.so.2", RTLD_NOW);
71 if (ctx->dl_handle == NULL) {
75 ctx->getpwnam_r = dlsym(ctx->dl_handle, "_nss_sss_getpwnam_r");
80 ctx->getpwuid_r = dlsym(ctx->dl_handle, "_nss_sss_getpwuid_r");
85 ctx->setpwent = dlsym(ctx->dl_handle, "_nss_sss_setpwent");
90 ctx->getpwent_r = dlsym(ctx->dl_handle, "_nss_sss_getpwent_r");
95 ctx->endpwent = dlsym(ctx->dl_handle, "_nss_sss_endpwent");
100 ctx->getgrnam_r = dlsym(ctx->dl_handle, "_nss_sss_getgrnam_r");
105 ctx->getgrgid_r = dlsym(ctx->dl_handle, "_nss_sss_getgrgid_r");
110 ctx->setgrent = dlsym(ctx->dl_handle, "_nss_sss_setgrent");
115 ctx->getgrent_r = dlsym(ctx->dl_handle, "_nss_sss_getgrent_r");
120 ctx->endgrent = dlsym(ctx->dl_handle, "_nss_sss_endgrent");
125 ctx->initgroups_dyn = dlsym(ctx->dl_handle, "_nss_sss_initgroups_dyn");
133 if (ctx->dl_handle != NULL) {
134 dlclose(ctx->dl_handle);