summaryrefslogtreecommitdiffstats
path: root/linux-user/syscall.c
diff options
context:
space:
mode:
authorths2007-02-11 19:36:44 +0100
committerths2007-02-11 19:36:44 +0100
commit39b9aae15b8766a9456dc12dd89b70ed6ed50c97 (patch)
tree54836c06a1b00802d97ea9949eb2dafc05e86cce /linux-user/syscall.c
parentLinux userland emulation of syslog, from Debian patchset. (diff)
downloadqemu-39b9aae15b8766a9456dc12dd89b70ed6ed50c97.tar.gz
qemu-39b9aae15b8766a9456dc12dd89b70ed6ed50c97.tar.xz
qemu-39b9aae15b8766a9456dc12dd89b70ed6ed50c97.zip
Linux userland emulation of prctl, from Debian patchset.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2421 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r--linux-user/syscall.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 8196401ca1..5020f3fee4 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -32,6 +32,7 @@
#include <sys/time.h>
#include <sys/stat.h>
#include <sys/mount.h>
+#include <sys/prctl.h>
#include <sys/resource.h>
#include <sys/mman.h>
#include <sys/swap.h>
@@ -3422,7 +3423,8 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
case TARGET_NR_nfsservctl:
goto unimplemented;
case TARGET_NR_prctl:
- goto unimplemented;
+ ret = get_errno(prctl(arg1, arg2, arg3, arg4, arg5));
+ break;
#ifdef TARGET_NR_pread
case TARGET_NR_pread:
page_unprotect_range(arg2, arg3);