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;
249 info = dllinfo();
250 scan->flags = info->flags;
256 if (!version && streq(info->suffix, ".dylib"))
274 j = strlen(info->prefix);
275 if (!j || i > j && strneq(name, info->prefix, j))
277 k = strlen(info->suffix);
278 if (i > k && streq(name + i - k, info->suffix))
305 sfsprintf(scan->nam, sizeof(scan->nam), "%s%s%s", info->prefix, name, info->suffix);
309 sfprintf(scan->tmp, "%s%s", info->prefix, name);
313 sfprintf(scan->tmp, "%s", info->suffix);
319 sfsprintf(scan->nam, sizeof(scan->nam), "%s%s%s.%s", info->prefix, name, info->suffix, version);
335 sfsprintf(scan->pat, sizeof(scan->pat), "%s%s%s%s", info->prefix, name, version, info->suffix);
338 sfsprintf(scan->pat, sizeof(scan->pat), "%s%s@(%s([-.])%s%s|%s.%s)", info->prefix, name, strchr(version, '.') ? "@" : "?", version, info->suffix, info->suffix, version);
342 sfsprintf(scan->pat, sizeof(scan->pat), "%s%s@(?([-.])%s%s|%s%s)", info->prefix, name, version, info->suffix, info->suffix, version);
345 scan->sp = scan->sb = (scan->lib ? scan->lib : info->sibling);
346 scan->prelen = strlen(info->prefix);
347 scan->suflen = strlen(info->suffix);