Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Allow rump kernel to call dlsym(RTLD_DEFAULT).



details:   https://anonhg.NetBSD.org/src/rev/624f50190cdc
branches:  trunk
changeset: 760187:624f50190cdc
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Dec 30 15:47:30 2010 +0000

description:
Allow rump kernel to call dlsym(RTLD_DEFAULT).

diffstat:

 lib/librumpuser/rumpuser_dl.c    |  11 +++++++++--
 sys/rump/include/rump/rumpuser.h |   3 ++-
 2 files changed, 11 insertions(+), 3 deletions(-)

diffs (46 lines):

diff -r b189d9071994 -r 624f50190cdc lib/librumpuser/rumpuser_dl.c
--- a/lib/librumpuser/rumpuser_dl.c     Thu Dec 30 13:38:56 2010 +0000
+++ b/lib/librumpuser/rumpuser_dl.c     Thu Dec 30 15:47:30 2010 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rumpuser_dl.c,v 1.4 2010/06/08 15:32:55 pooka Exp $   */
+/*      $NetBSD: rumpuser_dl.c,v 1.5 2010/12/30 15:47:30 pooka Exp $   */
 
 /*
  * Copyright (c) 2009 Antti Kantee.  All Rights Reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: rumpuser_dl.c,v 1.4 2010/06/08 15:32:55 pooka Exp $");
+__RCSID("$NetBSD: rumpuser_dl.c,v 1.5 2010/12/30 15:47:30 pooka Exp $");
 
 #include <sys/types.h>
 #include <sys/time.h>
@@ -428,3 +428,10 @@
        fprintf(stderr, "Warning, dlinfo() unsupported on host?\n");
 }
 #endif
+
+void *
+rumpuser_dl_globalsym(const char *symname)
+{
+
+       return dlsym(RTLD_DEFAULT, symname);
+}
diff -r b189d9071994 -r 624f50190cdc sys/rump/include/rump/rumpuser.h
--- a/sys/rump/include/rump/rumpuser.h  Thu Dec 30 13:38:56 2010 +0000
+++ b/sys/rump/include/rump/rumpuser.h  Thu Dec 30 15:47:30 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumpuser.h,v 1.59 2010/12/16 12:38:20 pooka Exp $      */
+/*     $NetBSD: rumpuser.h,v 1.60 2010/12/30 15:47:30 pooka Exp $      */
 
 /*
  * Copyright (c) 2007 Antti Kantee.  All Rights Reserved.
@@ -204,6 +204,7 @@
 typedef void (*rump_component_init_fn)(struct rump_component *, int);
 void rumpuser_dl_bootstrap(rump_modinit_fn, rump_symload_fn);
 void rumpuser_dl_component_init(int, rump_component_init_fn);
+void *rumpuser_dl_globalsym(const char *);
 
 /* syscall proxy routines */
 



Home | Main Index | Thread Index | Old Index