From: Lionel Sambuc Date: Wed, 30 Dec 2015 22:22:55 +0000 (+0100) Subject: ld.elf_so: sysctl support uncommented X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=b3bac6e0e7fa18186e181d0b053df0f1a2294980;p=minix.git ld.elf_so: sysctl support uncommented Change-Id: I253f3b4a2ef8c5b3fb332eb98a08d328a9591c52 --- diff --git a/libexec/ld.elf_so/load.c b/libexec/ld.elf_so/load.c index 7b8c359ea..dc1b4c524 100644 --- a/libexec/ld.elf_so/load.c +++ b/libexec/ld.elf_so/load.c @@ -206,16 +206,11 @@ static bool _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; @@ -223,7 +218,6 @@ _rtld_load_by_name(const char *name, Obj_Entry *obj, Needed_Entry **needed, } 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; @@ -231,7 +225,6 @@ _rtld_load_by_name(const char *name, Obj_Entry *obj, Needed_Entry **needed, return true; } -#if !defined(__minix) for (; x; x = x->next) { if (strcmp(x->name, name) != 0) continue; @@ -297,7 +290,6 @@ _rtld_load_by_name(const char *name, Obj_Entry *obj, Needed_Entry **needed, } } -#endif /* !defined(__minix) */ if (got) return true; diff --git a/libexec/ld.elf_so/paths.c b/libexec/ld.elf_so/paths.c index 6f5c57ec9..882924822 100644 --- a/libexec/ld.elf_so/paths.c +++ b/libexec/ld.elf_so/paths.c @@ -49,9 +49,7 @@ __RCSID("$NetBSD: paths.c,v 1.41 2013/05/06 08:02:20 skrll Exp $"); #include #include #include -#if !defined(__minix) #include -#endif /* !defined(__minix) */ #include #include @@ -67,9 +65,7 @@ static char *exstrdup(const char *, const char *); 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"; @@ -146,7 +142,6 @@ getword(const char **p, const char *ep, const char *delim) return (getstr(p, ep, delim)); } -#if !defined(__minix) /* * Match `bp' against NUL terminated string pointed by `p'. */ @@ -161,7 +156,6 @@ matchstr(const char *p, const char *bp, const char *ep) return (*p == 0); } -#endif /* !defined(__minix) */ static Search_Path * _rtld_find_path(Search_Path *path, const char *pathstr, size_t pathlen) @@ -414,7 +408,6 @@ _rtld_process_hints(const char *execname, Search_Path **path_p, (void)munmap(buf, sz); } -#if !defined(__minix) /* Basic name -> sysctl MIB translation */ int _rtld_sysctl(const char *name, void *oldp, size_t *oldlen) @@ -483,4 +476,3 @@ bad: xfree(result); return (-1); } -#endif /* !defined(__minix) */