Module Name:    src
Committed By:   pooka
Date:           Wed Apr  3 23:51:20 UTC 2013

Modified Files:
        src/sys/rump/kern/lib/libsys_linux: component.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/rump/kern/lib/libsys_linux/component.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/kern/lib/libsys_linux/component.c
diff -u src/sys/rump/kern/lib/libsys_linux/component.c:1.7 src/sys/rump/kern/lib/libsys_linux/component.c:1.8
--- src/sys/rump/kern/lib/libsys_linux/component.c:1.7	Wed Apr  3 22:43:56 2013
+++ src/sys/rump/kern/lib/libsys_linux/component.c	Wed Apr  3 23:51:20 2013
@@ -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 @@ __weak_alias(do_sys_wait,rumplinux__stub
 /* 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__ */

Reply via email to