Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 25 of 167) sorted by relevance

1234567

/glibc-2.36/resolv/
Dns_parse.c60 int ns_msg_getflag(ns_msg handle, int flag) { in ns_msg_getflag() argument
61 return(((handle)._flags & _ns_flagdata[flag].mask) >> _ns_flagdata[flag].shift); in ns_msg_getflag()
90 ns_initparse(const u_char *msg, int msglen, ns_msg *handle) { in libresolv_hidden_def()
94 memset(handle, 0x5e, sizeof *handle); in libresolv_hidden_def()
95 handle->_msg = msg; in libresolv_hidden_def()
96 handle->_eom = eom; in libresolv_hidden_def()
99 NS_GET16(handle->_id, msg); in libresolv_hidden_def()
102 NS_GET16(handle->_flags, msg); in libresolv_hidden_def()
106 NS_GET16(handle->_counts[i], msg); in libresolv_hidden_def()
109 if (handle->_counts[i] == 0) in libresolv_hidden_def()
[all …]
Dres_debug.c165 do_section (int pfcode, ns_msg *handle, ns_sect section, int pflag, FILE *file) in do_section() argument
186 opcode = (ns_opcode) ns_msg_getflag(*handle, ns_f_opcode); in do_section()
189 if (ns_parserr(handle, section, rrnum, &rr)) { in do_section()
207 n = ns_sprintrr(handle, &rr, NULL, NULL, in do_section()
242 ns_msg handle; in fp_nquery() local
253 if (ns_initparse(msg, len, &handle) < 0) { in fp_nquery()
257 opcode = ns_msg_getflag(handle, ns_f_opcode); in fp_nquery()
258 rcode = ns_msg_getflag(handle, ns_f_rcode); in fp_nquery()
259 id = ns_msg_id(handle); in fp_nquery()
260 qdcount = ns_msg_count(handle, ns_s_qd); in fp_nquery()
[all …]
/glibc-2.36/elf/
Dtst-glibc-hwcaps-prepend-cache.c60 void *handle = xdlopen (SONAME, RTLD_NOW); in do_test() local
61 int (*marker1) (void) = xdlsym (handle, "marker1"); in do_test()
63 xdlclose (handle); in do_test()
76 void *handle = xdlopen (SONAME, RTLD_NOW); in do_test() local
77 int (*marker1) (void) = xdlsym (handle, "marker1"); in do_test()
79 xdlclose (handle); in do_test()
84 void *handle = xdlopen (SONAME, RTLD_NOW); in do_test() local
85 int (*marker1) (void) = xdlsym (handle, "marker1"); in do_test()
87 xdlclose (handle); in do_test()
99 void *handle = xdlopen (SONAME, RTLD_NOW); in do_test() local
[all …]
Dloadtest.c20 void *handle; member
114 if (testobjs[index].handle == NULL) in main()
119 testobjs[index].handle = dlopen (testobjs[index].name, in main()
121 if (testobjs[index].handle == NULL) in main()
126 fct = dlsym (testobjs[index].handle, tests[nr].fname); in main()
135 testobjs[index].name, testobjs[index].handle); in main()
139 if (dlclose (testobjs[index].handle) != 0) in main()
146 testobjs[index].name, testobjs[index].handle); in main()
148 testobjs[index].handle = NULL; in main()
150 if (testobjs[0].handle == NULL in main()
[all …]
Dtst-auditmod28.c36 void *handle = xdlopen (LIBM_SO, RTLD_LOCAL | RTLD_NOW); in la_version() local
37 void *ptr = xdlsym (handle, "sincos"); in la_version()
39 ptr = dlsym (handle, "SINCOS"); in la_version()
43 ptr = dlsym (handle, "SINCOS"); in la_version()
45 xdlclose (handle); in la_version()
48 handle = xdlopen (LIBC_SO, RTLD_LOCAL | RTLD_NOW | RTLD_NOLOAD); in la_version()
52 TEST_VERIFY (xdlsym (handle, "_exit") in la_version()
53 == xdlvsym (handle, "_exit", FIRST_VERSION_libc__exit_STRING)); in la_version()
58 TEST_COMPARE (dlinfo (handle, RTLD_DI_LINKMAP, &handle2), 0); in la_version()
59 TEST_VERIFY (handle2 == handle); in la_version()
[all …]
Dtst-dlsym-error.c29 test_one (void *handle, const char *name, void *(func) (void *, const char *), in test_one() argument
43 void *addr = func (handle, symbol); in test_one()
78 void *handle = dlopen (LIBC_SO, RTLD_LAZY); in test_handles() local
79 if (handle == NULL) in test_handles()
84 test_one (handle, name, func, suffix); in test_handles()
85 dlclose (handle); in test_handles()
89 dlvsym_no_such_version (void *handle, const char *name) in dlvsym_no_such_version() argument
91 return dlvsym (handle, name, "NO_SUCH_VERSION"); in dlvsym_no_such_version()
95 dlvsym_glibc_private (void *handle, const char *name) in dlvsym_glibc_private() argument
97 return dlvsym (handle, name, "GLIBC_PRIVATE"); in dlvsym_glibc_private()
Ddl-sym.c85 do_sym (void *handle, const char *name, void *who, in do_sym() argument
95 if (handle == RTLD_DEFAULT) in do_sym()
129 else if (handle == RTLD_NEXT) in do_sym()
152 struct link_map *map = handle; in do_sym()
178 _dl_vsym (void *handle, const char *name, const char *version, void *who) in _dl_vsym() argument
189 return do_sym (handle, name, who, &vers, 0); in _dl_vsym()
193 _dl_sym (void *handle, const char *name, void *who) in _dl_sym() argument
195 return do_sym (handle, name, who, NULL, DL_LOOKUP_RETURN_NEWEST); in _dl_sym()
Dtst-dlmodcount.c75 void *handle; in load() local
78 handle = dlopen (path, RTLD_LAZY); in load()
79 if (!handle) in load()
82 return handle; in load()
86 unload (const char *path, void *handle) in unload() argument
89 if (dlclose (handle) < 0) in unload()
/glibc-2.36/dlfcn/
Ddlsym.c27 void *handle; member
40 args->sym = _dl_sym (args->handle, args->name, args->who); in dlsym_doit()
44 dlsym_implementation (void *handle, const char *name, void *dl_caller) in dlsym_implementation() argument
48 args.handle = handle; in dlsym_implementation()
63 ___dlsym (void *handle, const char *name) in ___dlsym() argument
66 return GLRO (dl_dlfcn_hook)->dlsym (handle, name, RETURN_ADDRESS (0)); in ___dlsym()
68 return dlsym_implementation (handle, name, RETURN_ADDRESS (0)); in ___dlsym()
79 __dlsym (void *handle, const char *name, void *dl_caller) in __dlsym() argument
81 return dlsym_implementation (handle, name, dl_caller); in __dlsym()
85 ___dlsym (void *handle, const char *name) in ___dlsym() argument
[all …]
Dmodstatic2.c16 void *handle = dlopen ("modstatic2-nonexistent.so", RTLD_LAZY); in test() local
17 if (handle == NULL) in test()
22 handle = dlopen ("modstatic2.so", RTLD_LAZY); in test()
23 if (handle == NULL) in test()
30 test2 = dlsym (handle, "test"); in test()
102 res = dlinfo (handle, RTLD_DI_LMID, &lmid); in test()
141 void *test3 = dlsymfn (handle, "test"); in test()
154 dlclose (handle); in test()
156 handle = dlmopen (LM_ID_BASE, "modstatic2.so", RTLD_LAZY); in test()
157 if (handle == NULL) in test()
[all …]
Ddlvsym.c27 void *handle; member
41 args->sym = _dl_vsym (args->handle, args->name, args->version, args->who); in dlvsym_doit()
45 dlvsym_implementation (void *handle, const char *name, const char *version, in dlvsym_implementation() argument
50 args.handle = handle; in dlvsym_implementation()
66 ___dlvsym (void *handle, const char *name, const char *version) in ___dlvsym() argument
69 return GLRO (dl_dlfcn_hook)->dlvsym (handle, name, version, in ___dlvsym()
72 return dlvsym_implementation (handle, name, version, RETURN_ADDRESS (0)); in ___dlvsym()
83 __dlvsym (void *handle, const char *name, const char *version, void *dl_caller) in __dlvsym() argument
85 return dlvsym_implementation (handle, name, version, dl_caller); in __dlvsym()
89 ___dlvsym (void *handle, const char *name, const char *version) in ___dlvsym() argument
[all …]
Dtststatic2.c12 void *handle = dlopen ("modstatic2-nonexistent.so", RTLD_LAZY); in do_test() local
13 if (handle == NULL) in do_test()
18 handle = dlopen ("modstatic2.so", RTLD_LAZY); in do_test()
19 if (handle == NULL) in do_test()
26 test = dlsym (handle, "test"); in do_test()
93 res = dlinfo (handle, RTLD_DI_LMID, &lmid); in do_test()
139 void *test2 = dlsymfn (handle, "test"); in do_test()
152 dlclose (handle); in do_test()
154 handle = dlmopen (LM_ID_BASE, "modstatic2.so", RTLD_LAZY); in do_test()
155 if (handle == NULL) in do_test()
[all …]
Ddlinfo.c28 void *handle; member
41 struct link_map *l = args->handle; in dlinfo_doit()
92 dlinfo_implementation (void *handle, int request, void *arg) in dlinfo_implementation() argument
94 struct dlinfo_args args = { handle, request, arg }; in dlinfo_implementation()
101 ___dlinfo (void *handle, int request, void *arg) in ___dlinfo() argument
104 return GLRO (dl_dlfcn_hook)->dlinfo (handle, request, arg); in ___dlinfo()
106 return dlinfo_implementation (handle, request, arg); in ___dlinfo()
116 __dlinfo (void *handle, int request, void *arg) in __dlinfo() argument
118 return dlinfo_implementation (handle, request, arg); in __dlinfo()
Dtststatic3.c37 void *handle; in do_test() local
40 handle = dlopen ("modstatic3.so", RTLD_LAZY | RTLD_GLOBAL); in do_test()
41 if (handle == NULL) in do_test()
48 foop = dlsym (handle, "foo"); in do_test()
55 getfoo = dlsym (handle, "getfoo"); in do_test()
62 setfoo = dlsym (handle, "setfoo"); in do_test()
122 dlclose (handle); in do_test()
Dtst-dlinfo.c31 void *handle = dlopen ("glreflib3.so", RTLD_NOW); in do_test() local
32 if (handle == NULL) in do_test()
36 if (dlinfo (handle, req, arg) != 0) \ in do_test()
46 if (l != handle) in do_test()
48 printf ("bogus link_map? %p != %p\n", l, handle); in do_test()
81 if (dlinfo (handle, RTLD_DI_LMID, &lmid) != 0) in do_test()
90 dlclose (handle); in do_test()
Dfailtestmod.c10 void *handle; in constr() local
13 handle = dlopen (NULL, RTLD_NOW); in constr()
14 if (handle == NULL) in constr()
21 dlsym (handle, "main"); in constr()
24 dlclose (handle); in constr()
Dtststatic.c8 void *handle; in do_test() local
12 handle = dlopen ("modstatic.so", RTLD_LAZY); in do_test()
13 if (handle == NULL) in do_test()
19 test = dlsym (handle, "test"); in do_test()
33 dlclose (handle); in do_test()
/glibc-2.36/iconv/
Dgconv_dl.c92 found->handle = NULL; in __gconv_find_shlib()
113 assert (found->handle == NULL); in __gconv_find_shlib()
114 found->handle = __libc_dlopen (found->name); in __gconv_find_shlib()
115 if (found->handle != NULL) in __gconv_find_shlib()
117 found->fct = __libc_dlsym (found->handle, "gconv"); in __gconv_find_shlib()
127 found->init_fct = __libc_dlsym (found->handle, "gconv_init"); in __gconv_find_shlib()
128 found->end_fct = __libc_dlsym (found->handle, "gconv_end"); in __gconv_find_shlib()
144 else if (found->handle != NULL) in __gconv_find_shlib()
168 && --obj->counter < -TRIES_BEFORE_UNLOAD && obj->handle != NULL) in do_release_shlib()
171 __libc_dlclose (obj->handle); in do_release_shlib()
[all …]
Dgconv_db.c124 struct __gconv_step **handle, size_t *nsteps) in derivation_lookup() argument
134 *handle = (*result)->steps; in derivation_lookup()
145 struct __gconv_step *handle, size_t nsteps) in add_derivation() argument
159 new_deriv->steps = handle; in add_derivation()
230 const char *fromset, struct __gconv_step **handle, size_t *nsteps) in gen_steps() argument
349 *handle = NULL; in gen_steps()
354 *handle = result; in gen_steps()
359 *handle = NULL; in gen_steps()
429 struct __gconv_step **handle, size_t *nsteps) in find_derivation() argument
439 handle, nsteps); in find_derivation()
[all …]
/glibc-2.36/include/
Ddlfcn.h80 extern void *_dl_sym (void *handle, const char *name, void *who)
87 extern void *_dl_vsym (void *handle, const char *name, const char *version,
103 int (*dlclose) (void *handle);
104 void *(*dlsym) (void *handle, const char *name, void *dl_caller);
105 void *(*dlvsym) (void *handle, const char *name, const char *version,
111 int (*dlinfo) (void *handle, int request, void *arg);
128 extern int __dlclose (void *handle);
129 extern void *__dlsym (void *handle, const char *name, void *dl_caller);
130 extern void *__dlvsym (void *handle, const char *name, const char *version,
135 extern int __dlinfo (void *handle, int request, void *arg);
/glibc-2.36/inet/
Didna.c40 void *handle; member
52 void *handle = __libc_dlopen (LIBIDN2_SONAME); in functions_allocate() local
53 if (handle == NULL) in functions_allocate()
62 = __libc_dlvsym (handle, "idn2_lookup_ul", LIBIDN2_VERSION); in functions_allocate()
64 = __libc_dlvsym (handle, "idn2_to_unicode_lzlz", LIBIDN2_VERSION); in functions_allocate()
67 __libc_dlclose (handle); in functions_allocate()
72 result->handle = handle; in functions_allocate()
87 __libc_dlclose (functions->handle); in functions_deallocate()
/glibc-2.36/nss/
Dnss_module.c94 result->handle = NULL; in __nss_module_allocate()
136 module->handle = NULL; in module_load_builtin()
181 void *handle; in module_load() local
191 handle = __libc_dlopen (shlib_name); in module_load()
200 if (handle == NULL) in module_load()
237 __libc_dlclose (handle); in module_load()
240 pointers[idx] = __libc_dlsym (handle, function_name); in module_load()
263 = __libc_dlsym (handle, init_name); in module_load()
285 module->handle = handle; in module_load()
293 __libc_dlclose (handle); in module_load()
[all …]
/glibc-2.36/support/
Dxdlfcn.c35 xdlsym (void *handle, const char *symbol) in xdlsym() argument
40 void *sym = dlsym (handle, symbol); in xdlsym()
55 xdlvsym (void *handle, const char *symbol, const char *version) in xdlvsym() argument
60 void *sym = dlvsym (handle, symbol, version); in xdlvsym()
75 xdlclose (void *handle) in xdlclose() argument
77 if (dlclose (handle) != 0) in xdlclose()
/glibc-2.36/resolv/arpa/
Dnameser.h114 #define ns_msg_id(handle) ((handle)._id + 0) argument
115 #define ns_msg_base(handle) ((handle)._msg + 0) argument
116 #define ns_msg_end(handle) ((handle)._eom + 0) argument
117 #define ns_msg_size(handle) ((handle)._eom - (handle)._msg) argument
118 #define ns_msg_count(handle, section) ((handle)._counts[section] + 0) argument
/glibc-2.36/sysdeps/powerpc/
Dtst-cache-ppc-static-dlopen.c29 void *handle; in do_test() local
32 handle = dlopen ("mod-cache-ppc.so", RTLD_LAZY | RTLD_LOCAL); in do_test()
33 if (handle == NULL) in do_test()
39 test_cache = dlsym (handle, "test_cache"); in do_test()
49 dlclose (handle); in do_test()

1234567