Home | History | Annotate | Download | only in ltrace

Lines Matching defs:lib

195 library_get_prototype(struct library *lib, const char *name)
197 if (lib->protolib == NULL) {
198 size_t sz = strlen(lib->soname);
200 memcpy(buf, lib->soname, sz + 1);
204 true, &lib->protolib) < 0)
206 } while (lib->protolib == NULL
207 && lib->type == LT_LIBTYPE_DSO
210 if (lib->protolib == NULL)
211 lib->protolib = protolib_cache_default(&g_protocache,
214 if (lib->protolib == NULL)
217 return protolib_lookup_prototype(lib->protolib, name,
218 lib->type != LT_LIBTYPE_SYSCALL);
227 find_proto_cb(struct process *proc, struct library *lib, void *d)
230 data->ret = library_get_prototype(lib, data->name);
240 struct library *lib = libsym->lib;
241 if (lib != NULL) {
243 data.ret = library_get_prototype(lib, libsym->name);
507 if (!options.hide_caller && libsym->lib != NULL
512 libsym->lib->soname));
523 if (libsym->lib != NULL
524 && libsym->lib->type != LT_LIBTYPE_MAIN
528 libsym->lib->soname)) < 0)
720 struct library *lib = NULL;
745 lib = proc->libraries;
746 while (lib != NULL) {
750 if ((ip >= lib->base) &&
751 ((size_t)(ip - lib->base)
753 distance = ip - lib->base;
754 lib_name = lib->pathname;
756 lib = lib->next;