Lines Matching refs:prefix
283 char *prefix, *path, *symbol; in find_dynamic_method() local
297 prefix = malloc(len + 1); in find_dynamic_method()
298 if (prefix == NULL) in find_dynamic_method()
300 strlcpy(prefix, filename, len + 1); in find_dynamic_method()
302 if (asprintf(&path, LIBDIR "/hdb_%s.so", prefix) == -1) in find_dynamic_method()
316 free(prefix); in find_dynamic_method()
321 if (asprintf(&symbol, "hdb_%s_interface", prefix) == -1) in find_dynamic_method()
330 free(prefix); in find_dynamic_method()
341 prefix, mso->version, HDB_INTERFACE_VERSION); in find_dynamic_method()
343 free(prefix); in find_dynamic_method()
350 prefix); in find_dynamic_method()
352 free(prefix); in find_dynamic_method()
357 method.prefix = prefix; in find_dynamic_method()
374 for (h = methods; h->prefix != NULL; ++h) { in find_method()
375 if (strncmp (filename, h->prefix, strlen(h->prefix)) == 0) { in find_method()
376 *rest = filename + strlen(h->prefix); in find_method()
400 for (h = methods; h->prefix != NULL; ++h) { in hdb_list_builtin()
401 if (h->prefix[0] == '\0') in hdb_list_builtin()
403 len += strlen(h->prefix) + 2; in hdb_list_builtin()
414 for (h = methods; h->prefix != NULL; ++h) { in hdb_list_builtin()
417 strlcat(buf, h->prefix, len); in hdb_list_builtin()
470 if (strncmp (filename, h->prefix, strlen(h->prefix)) == 0 in hdb_create()
472 residual = filename + strlen(h->prefix); in hdb_create()