Lines Matching defs:info
78 * the confstr LIBPATH provides the local info
98 static Dllinfo_t info;
100 if (!info.sibling)
102 info.sibling = info.sib;
144 if (d && dn < sizeof(info.sibbuf))
146 memcpy(info.sibbuf, d, dn);
147 info.sibling[0] = info.sibbuf;
149 if (v && vn < sizeof(info.envbuf))
151 memcpy(info.envbuf, v, vn);
152 info.env = info.envbuf;
156 if (!info.sibling[0] || streq(info.sibling[0], bin))
157 info.sibling[0] = bin;
158 if (!streq(info.sibling[0], lib))
159 info.sibling[1] = lib;
160 if (!info.env)
161 info.env = "LD_LIBRARY_PATH";
162 info.prefix = astconf("LIBPREFIX", NiL, NiL);
163 info.suffix = astconf("LIBSUFFIX", NiL, NiL);
164 if (streq(info.suffix, ".dll"))
165 info.flags |= DLL_INFO_PREVER;
167 info.flags |= DLL_INFO_DOTVER;
169 return &info;
217 Dllinfo_t* info;
247 info = dllinfo();
248 scan->flags = info->flags;
254 if (!version && streq(info->suffix, ".dylib"))
285 sfsprintf(scan->nam, sizeof(scan->nam), "%s%s%s", info->prefix, name, info->suffix);
289 sfprintf(scan->tmp, "%s%s", info->prefix, name);
293 sfprintf(scan->tmp, "%s", info->suffix);
299 sfsprintf(scan->nam, sizeof(scan->nam), "%s%s%s.%s", info->prefix, name, info->suffix, version);
315 sfsprintf(scan->pat, sizeof(scan->pat), "%s%s%s%s", info->prefix, name, version, info->suffix);
318 sfsprintf(scan->pat, sizeof(scan->pat), "%s%s@(%s([-.])%s%s|%s.%s)", info->prefix, name, strchr(version, '.') ? "@" : "?", version, info->suffix, info->suffix, version);
322 sfsprintf(scan->pat, sizeof(scan->pat), "%s%s@(?([-.])%s%s|%s%s)", info->prefix, name, version, info->suffix, info->suffix, version);
325 scan->sp = scan->sb = (scan->lib ? scan->lib : info->sibling);
326 scan->prelen = strlen(info->prefix);
327 scan->suflen = strlen(info->suffix);