summaryrefslogtreecommitdiff
path: root/recipes/qemu/qemu-0.10.3/32_syscall_sysctl.patch
diff options
context:
space:
mode:
authorRoman I Khimov <khimov@altell.ru>2010-03-08 18:43:50 +0300
committerJesse Gilles <jgilles@multitech.com>2010-04-26 11:36:18 -0500
commit986f08bbb72b05da0c250b0f4dba417beff80dbd (patch)
tree296aa1f46befa2f4e556118a364c52b0d607efa3 /recipes/qemu/qemu-0.10.3/32_syscall_sysctl.patch
parent6f76f618ceadc68c884ca117ef64b4c95f9d19e4 (diff)
qemu: remove 0.10.3
See "sanity: remove /proc/sys/vm/mmap_min_addr check" for reasoning, basically, 0.12.x is needed for reliable work on any host system. Signed-off-by: Roman I Khimov <khimov@altell.ru> Acked-by: Tom Rini <tom_rini@mentor.com> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
Diffstat (limited to 'recipes/qemu/qemu-0.10.3/32_syscall_sysctl.patch')
-rw-r--r--recipes/qemu/qemu-0.10.3/32_syscall_sysctl.patch55
1 files changed, 0 insertions, 55 deletions
diff --git a/recipes/qemu/qemu-0.10.3/32_syscall_sysctl.patch b/recipes/qemu/qemu-0.10.3/32_syscall_sysctl.patch
deleted file mode 100644
index 2a670c90be..0000000000
--- a/recipes/qemu/qemu-0.10.3/32_syscall_sysctl.patch
+++ /dev/null
@@ -1,55 +0,0 @@
-#DPATCHLEVEL=0
----
-# linux-user/syscall.c | 32 +++++++++++++++++++++++++++++---
-# 1 file changed, 29 insertions(+), 3 deletions(-)
-#
-Index: linux-user/syscall.c
-===================================================================
---- linux-user/syscall.c.orig 2009-05-19 17:50:28.000000000 +0400
-+++ linux-user/syscall.c 2009-05-19 17:52:19.094103462 +0400
-@@ -55,6 +55,7 @@
- #include <netinet/ip.h>
- #include <netinet/tcp.h>
- #include <qemu-common.h>
-+#include <sys/sysctl.h>
- #ifdef HAVE_GPROF
- #include <sys/gmon.h>
- #endif
-@@ -5193,9 +5194,34 @@
- break;
- #endif
- case TARGET_NR__sysctl:
-- /* We don't implement this, but ENOTDIR is always a safe
-- return value. */
-- ret = -TARGET_ENOTDIR;
-+ {
-+ struct __sysctl_args *args = (struct __sysctl_args *) arg1;
-+ int *name_target, *name, nlen, *oldlenp, oldlen, newlen, i;
-+ void *oldval, *newval;
-+
-+ name_target = (int *) tswapl((long) args->name);
-+ nlen = tswapl(args->nlen);
-+ oldval = (void *) tswapl((long) args->oldval);
-+ oldlenp = (int *) tswapl((long) args->oldlenp);
-+ oldlen = tswapl(*oldlenp);
-+ newval = (void *) tswapl((long) args->newval);
-+ newlen = tswapl(args->newlen);
-+
-+ name = alloca(nlen * sizeof (int));
-+ for (i = 0; i < nlen; i++)
-+ name[i] = tswapl(name_target[i]);
-+
-+ if (nlen == 2 && name[0] == CTL_KERN && name[1] == KERN_VERSION) {
-+ ret = get_errno(
-+ sysctl(name, nlen, oldval, &oldlen, newval, newlen));
-+ if (!is_error(ret)) {
-+ *oldlenp = tswapl(oldlen);
-+ }
-+ } else {
-+ gemu_log("qemu: Unsupported sysctl name\n");
-+ ret = -ENOSYS;
-+ }
-+ }
- break;
- case TARGET_NR_sched_setparam:
- {