aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2011-06-25 19:49:41 +0300
committerRiku Voipio <riku.voipio@linaro.org>2011-06-25 19:51:50 +0300
commite5de9dd9fadc3639f6227dbd251d757d105f355d (patch)
tree1e267f2f0b73a3d03af65b4c5665a085339336c4
parent4b61dd16825071666029e9758d39c2d0be6fc435 (diff)
downloadqemu-prlimit64.tar.gz
linux-user: Dummy implementation of prlimit64 to avoid warningsprlimit64
Special-case prlimit64 to return ENOSYS without printing the default unhandled syscall" warning; this is a new syscall so anything trying to use it will have a fallback case, and the warning can result in a lot of noise (for instance, when running apt under qemu). Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
-rw-r--r--linux-user/syscall.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index fed7a8fe0f..1402ceba72 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -7989,7 +7989,12 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
break;
}
#endif
+#endif /* CONFIG_EPOLL */
+#ifdef TARGET_NR_prlimit64
+ case TARGET_NR_prlimit64:
+ goto unimplemented_nowarn;
#endif
+
default:
unimplemented:
gemu_log("qemu: Unsupported syscall: %d\n", num);