Lines Matching refs:module

92 static void test_gethostbyname4_r(void *handle, const char *module, const char *name) {  in test_gethostbyname4_r()  argument
107 fname = strjoina("_nss_", module, "_gethostbyname4_r"); in test_gethostbyname4_r()
135 if (STR_IN_SET(module, "resolve", "mymachines") && status == NSS_STATUS_UNAVAIL) in test_gethostbyname4_r()
139 if (streq(module, "myhostname")) { in test_gethostbyname4_r()
143 …} else if (streq(module, "resolve") && getenv_bool_secure("SYSTEMD_NSS_RESOLVE_SYNTHESIZE") != 0) { in test_gethostbyname4_r()
153 static void test_gethostbyname3_r(void *handle, const char *module, const char *name, int af) { in test_gethostbyname3_r() argument
169 fname = strjoina("_nss_", module, "_gethostbyname3_r"); in test_gethostbyname3_r()
188 static void test_gethostbyname2_r(void *handle, const char *module, const char *name, int af) { in test_gethostbyname2_r() argument
198 fname = strjoina("_nss_", module, "_gethostbyname2_r"); in test_gethostbyname2_r()
216 static void test_gethostbyname_r(void *handle, const char *module, const char *name) { in test_gethostbyname_r() argument
225 fname = strjoina("_nss_", module, "_gethostbyname_r"); in test_gethostbyname_r()
244 const char *module, in test_gethostbyaddr2_r() argument
258 fname = strjoina("_nss_", module, "_gethostbyaddr2_r"); in test_gethostbyaddr2_r()
282 const char *module, in test_gethostbyaddr_r() argument
295 fname = strjoina("_nss_", module, "_gethostbyaddr_r"); in test_gethostbyaddr_r()
317 static void test_byname(void *handle, const char *module, const char *name) { in test_byname() argument
318 test_gethostbyname4_r(handle, module, name); in test_byname()
321 test_gethostbyname3_r(handle, module, name, AF_INET); in test_byname()
323 test_gethostbyname3_r(handle, module, name, AF_INET6); in test_byname()
325 test_gethostbyname3_r(handle, module, name, AF_UNSPEC); in test_byname()
327 test_gethostbyname3_r(handle, module, name, AF_UNIX); in test_byname()
330 test_gethostbyname2_r(handle, module, name, AF_INET); in test_byname()
332 test_gethostbyname2_r(handle, module, name, AF_INET6); in test_byname()
334 test_gethostbyname2_r(handle, module, name, AF_UNSPEC); in test_byname()
336 test_gethostbyname2_r(handle, module, name, AF_UNIX); in test_byname()
339 test_gethostbyname_r(handle, module, name); in test_byname()
344 const char *module, in test_byaddr() argument
347 test_gethostbyaddr2_r(handle, module, addr, len, af); in test_byaddr()
350 test_gethostbyaddr_r(handle, module, addr, len, af); in test_byaddr()
374 const char *module, in test_one_module() argument
379 log_info("======== %s ========", module); in test_one_module()
381 _cleanup_(dlclosep) void *handle = nss_open_handle(dir, module, RTLD_LAZY|RTLD_NODELETE); in test_one_module()
386 test_byname(handle, module, *name); in test_one_module()
389 test_byaddr(handle, module, in test_one_module()
480 STRV_FOREACH(module, modules) { in run()
481 r = test_one_module(dir, *module, names, addresses, n_addresses); in run()