_rtld_load_by_name(const char *name, Obj_Entry *obj, Needed_Entry **needed,
int flags)
{
-#if !defined(__minix)
Library_Xform *x = _rtld_xforms;
-#endif /* !defined(__minix) */
Obj_Entry *o;
-#if !defined(__minix)
size_t j;
ssize_t i;
-#endif /* !defined(__minix) */
bool got = false;
-#if !defined(__minix)
union {
int i;
u_quad_t q;
} val;
dbg(("load by name %s %p", name, x));
-#endif /* !defined(__minix) */
for (o = _rtld_objlist->next; o != NULL; o = o->next)
if (_rtld_object_match_name(o, name)) {
++o->refcount;
return true;
}
-#if !defined(__minix)
for (; x; x = x->next) {
if (strcmp(x->name, name) != 0)
continue;
}
}
-#endif /* !defined(__minix) */
if (got)
return true;
#include <sys/gmon.h>
#include <sys/socket.h>
#include <sys/mount.h>
-#if !defined(__minix)
#include <sys/mbuf.h>
-#endif /* !defined(__minix) */
#include <sys/resource.h>
#include <machine/cpu.h>
static const char *getstr(const char **, const char *, const char *);
static const char *getcstr(const char **, const char *, const char *);
static const char *getword(const char **, const char *, const char *);
-#if !defined(__minix)
static int matchstr(const char *, const char *, const char *);
-#endif /* !defined(__minix) */
static const char WS[] = " \t\n";
return (getstr(p, ep, delim));
}
-#if !defined(__minix)
/*
* Match `bp' against NUL terminated string pointed by `p'.
*/
return (*p == 0);
}
-#endif /* !defined(__minix) */
static Search_Path *
_rtld_find_path(Search_Path *path, const char *pathstr, size_t pathlen)
(void)munmap(buf, sz);
}
-#if !defined(__minix)
/* Basic name -> sysctl MIB translation */
int
_rtld_sysctl(const char *name, void *oldp, size_t *oldlen)
xfree(result);
return (-1);
}
-#endif /* !defined(__minix) */