Lines Matching refs:handle

47 static void test_getpwnam_r(void *handle, const char *module, const char *name) {  in test_getpwnam_r()  argument
57 f = dlsym(handle, fname); in test_getpwnam_r()
58 log_debug("dlsym(0x%p, %s) → 0x%p", handle, fname, f); in test_getpwnam_r()
73 static void test_getgrnam_r(void *handle, const char *module, const char *name) { in test_getgrnam_r() argument
83 f = dlsym(handle, fname); in test_getgrnam_r()
84 log_debug("dlsym(0x%p, %s) → 0x%p", handle, fname, f); in test_getgrnam_r()
99 static void test_getpwuid_r(void *handle, const char *module, uid_t uid) { in test_getpwuid_r() argument
109 f = dlsym(handle, fname); in test_getpwuid_r()
110 log_debug("dlsym(0x%p, %s) → 0x%p", handle, fname, f); in test_getpwuid_r()
125 static void test_getgrgid_r(void *handle, const char *module, gid_t gid) { in test_getgrgid_r() argument
135 f = dlsym(handle, fname); in test_getgrgid_r()
136 log_debug("dlsym(0x%p, %s) → 0x%p", handle, fname, f); in test_getgrgid_r()
151 static void test_byname(void *handle, const char *module, const char *name) { in test_byname() argument
152 test_getpwnam_r(handle, module, name); in test_byname()
153 test_getgrnam_r(handle, module, name); in test_byname()
157 static void test_byuid(void *handle, const char *module, uid_t uid) { in test_byuid() argument
158 test_getpwuid_r(handle, module, uid); in test_byuid()
159 test_getgrgid_r(handle, module, uid); in test_byuid()
169 _cleanup_(dlclosep) void *handle = nss_open_handle(dir, module, RTLD_LAZY|RTLD_NODELETE); in test_one_module()
170 if (!handle) in test_one_module()
174 test_byname(handle, module, *name); in test_one_module()
184 test_byuid(handle, module, uid); in test_one_module()