Lines Matching defs:name
23 unsigned char *name;
27 static void *xmlModulePlatformOpen(const char *name);
29 static int xmlModulePlatformSymbol(void *handle, const char *name, void **result);
46 const char *name = NULL;
49 name = (const char *) module->name;
54 name, NULL, 0, 0,
60 * @name: the module name
63 * Opens a module/shared library given its name or path
69 xmlModuleOpen(const char *name, int options ATTRIBUTE_UNUSED)
81 module->handle = xmlModulePlatformOpen(name);
87 name, NULL, 0, 0, "failed to open %s\n", name);
91 module->name = xmlStrdup((const xmlChar *) name);
98 * @name: the name of the symbol
106 xmlModuleSymbol(xmlModulePtr module, const char *name, void **symbol)
117 rc = xmlModulePlatformSymbol(module->handle, name, symbol);
122 name, NULL, 0, 0,
124 (name == NULL ? "NULL" : name));
158 (const char *) module->name, NULL, 0, 0,
159 "failed to close: %s\n", module->name);
187 xmlFree(module->name);
204 * @name: path to the module
210 xmlModulePlatformOpen(const char *name)
212 return dlopen(name, RTLD_GLOBAL | RTLD_NOW);
235 xmlModulePlatformSymbol(void *handle, const char *name, void **symbol)
237 *symbol = dlsym(handle, name);
256 xmlModulePlatformOpen(const char *name)
258 return shl_load(name, BIND_IMMEDIATE, 0L);
279 xmlModulePlatformSymbol(void *handle, const char *name, void **symbol)
284 rc = shl_findsym(&handle, name, TYPE_UNDEFINED, symbol);
301 xmlModulePlatformOpen(const char *name)
303 return LoadLibrary(name);
327 xmlModulePlatformSymbol(void *handle, const char *name, void **symbol)
329 *symbol = GetProcAddress(handle, name);
346 xmlModulePlatformOpen(const char *name)
348 return (void *) load_add_on(name);
377 xmlModulePlatformSymbol(void *handle, const char *name, void **symbol)
381 rc = get_image_symbol((image_id) handle, name, B_SYMBOL_TYPE_ANY, symbol);
399 xmlModulePlatformOpen(const char *name)
405 rc = DosLoadModule(errbuf, sizeof(errbuf) - 1, name, &handle);
432 xmlModulePlatformSymbol(void *handle, const char *name, void **symbol)
436 rc = DosQueryProcAddr(handle, 0, name, symbol);