Lines Matching refs:dll
23 * find and load a pzip dll
33 register Pzdll_t* dll;
45 * see if the dll is already loaded
48 for (dll = state.dll; dll && !streq(dll->name, name); dll = dll->next);
49 if (!dll)
55 if (!(dll = newof(0, Pzdll_t, 1, strlen(name) + 1)))
57 dll->name = strcpy((char*)(dll + 1), name);
58 dll->next = state.dll;
59 state.dll = dll;
62 if (!(dll->dll = dllplugin(id, dll->name, NiL, PZ_PLUGIN_VERSION, NiL, RTLD_LAZY, path, sizeof(path))))
65 (*pz->disc->errorf)(pz, pz->disc, ERROR_SYSTEM|2, "%s: %s", dll->name, dlerror());
74 if (!(dll->initf = (Pzinit_f)dlllook(dll->dll, buf)))
86 if (dll->initf)
88 for (pzs = dll->pzs; pzs && pzs->pz != pz; pzs = pzs->next);
94 pzs->next = dll->pzs;
95 dll->pzs = pzs;
96 if (!(dll->usage = pzinit(pz, dll->name, dll->initf)))