diff options
author | Richard Purdie <richard@openedhand.com> | 2007-12-04 13:58:45 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-12-04 13:58:45 +0000 |
commit | d0b4968cd24a0152e88396d40310cdbae9555a1f (patch) | |
tree | 0ec4da2bbbbfcc7300780589135c01a3430ff774 /meta/packages/qemu/qemu-0.9.0+cvs20070613/32_syscall_sysctl.patch | |
parent | 1fbde4b0c426c59695eb19e3785718dddf62632c (diff) | |
download | openembedded-core-d0b4968cd24a0152e88396d40310cdbae9555a1f.tar.gz openembedded-core-d0b4968cd24a0152e88396d40310cdbae9555a1f.tar.bz2 openembedded-core-d0b4968cd24a0152e88396d40310cdbae9555a1f.tar.xz openembedded-core-d0b4968cd24a0152e88396d40310cdbae9555a1f.zip |
qemu: Make 20071121 the default version and cleanup various file locations and recipes
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3305 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/qemu/qemu-0.9.0+cvs20070613/32_syscall_sysctl.patch')
-rw-r--r-- | meta/packages/qemu/qemu-0.9.0+cvs20070613/32_syscall_sysctl.patch | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/meta/packages/qemu/qemu-0.9.0+cvs20070613/32_syscall_sysctl.patch b/meta/packages/qemu/qemu-0.9.0+cvs20070613/32_syscall_sysctl.patch new file mode 100644 index 000000000..d175cf96b --- /dev/null +++ b/meta/packages/qemu/qemu-0.9.0+cvs20070613/32_syscall_sysctl.patch @@ -0,0 +1,56 @@ +#DPATCHLEVEL=0 +--- +# linux-user/syscall.c | 33 ++++++++++++++++++++++++++++++--- +# 1 file changed, 30 insertions(+), 3 deletions(-) +# +Index: linux-user/syscall.c +=================================================================== +--- linux-user/syscall.c.orig 2007-06-13 11:51:54.000000000 +0100 ++++ linux-user/syscall.c 2007-06-13 11:52:17.000000000 +0100 +@@ -52,6 +52,7 @@ + //#include <sys/user.h> + #include <netinet/ip.h> + #include <netinet/tcp.h> ++#include <sys/sysctl.h> + + #define termios host_termios + #define winsize host_winsize +@@ -3912,9 +3913,35 @@ long do_syscall(void *cpu_env, int num, + break; + #endif + case TARGET_NR__sysctl: +- /* We don't implement this, but ENODIR is always a safe +- return value. */ +- return -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: + { + struct sched_param *target_schp; |