Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/kern/lib/libsys_linux i386 has a special way to han...



details:   https://anonhg.NetBSD.org/src/rev/52bff9db0919
branches:  trunk
changeset: 785868:52bff9db0919
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Apr 03 23:51:20 2013 +0000

description:
i386 has a special way to handle uname.  We don't really care about
satisfying uname in a rump kernel, but attempt to return something
sane anyway.

diffstat:

 sys/rump/kern/lib/libsys_linux/component.c |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 262e8a4f153a -r 52bff9db0919 sys/rump/kern/lib/libsys_linux/component.c
--- a/sys/rump/kern/lib/libsys_linux/component.c        Wed Apr 03 22:43:56 2013 +0000
+++ b/sys/rump/kern/lib/libsys_linux/component.c        Wed Apr 03 23:51:20 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: component.c,v 1.7 2013/04/03 22:43:56 pooka Exp $      */
+/*     $NetBSD: component.c,v 1.8 2013/04/03 23:51:20 pooka Exp $      */
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -83,3 +83,12 @@
 /* arch-specific */
 __weak_alias(compat_offseterr,rumplinux__stub);
 __weak_alias(linux_sys_ptrace_arch,rumplinux__stub);
+
+#ifdef __i386__
+const char *
+linux_get_uname_arch(void)
+{
+
+       return MACHINE_ARCH;
+}
+#endif /* __i386__ */



Home | Main Index | Thread Index | Old Index