aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2011-03-04 10:35:51 +0000
committerPeter Maydell <peter.maydell@linaro.org>2011-04-13 17:02:06 +0000
commit67f97a8a1db33301ae1e2d4ddbce5aa53f04fc1e (patch)
tree51396ff797a1a42709c3268828d264c58d1baa62
parent7f421336a12705568b7d2be4344aa6ca95451472 (diff)
linux-user: Dummy implementation of prlimit64 to avoid warnings
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). This will be replaced with a proper implementation later. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--linux-user/arm/syscall_nr.h9
-rw-r--r--linux-user/syscall.c4
2 files changed, 13 insertions, 0 deletions
diff --git a/linux-user/arm/syscall_nr.h b/linux-user/arm/syscall_nr.h
index 79a216a137..4dce038778 100644
--- a/linux-user/arm/syscall_nr.h
+++ b/linux-user/arm/syscall_nr.h
@@ -365,3 +365,12 @@
#define TARGET_NR_dup3 (358)
#define TARGET_NR_pipe2 (359)
#define TARGET_NR_inotify_init1 (360)
+#define TARGET_NR_preadv (361)
+#define TARGET_NR_pwritev (362)
+#define TARGET_NR_rt_tgsigqueueinfo (363)
+#define TARGET_NR_perf_event_open (364)
+#define TARGET_NR_recvmmsg (365)
+#define TARGET_NR_accept4 (366)
+#define TARGET_NR_fanotify_init (367)
+#define TARGET_NR_fanotify_mark (368)
+#define TARGET_NR_prlimit64 (369)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index bb0999d1ab..38915b456d 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -7721,6 +7721,10 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
}
#endif
#endif
+#ifdef TARGET_NR_prlimit64
+ case TARGET_NR_prlimit64:
+ goto unimplemented_nowarn;
+#endif
default:
unimplemented:
gemu_log("qemu: Unsupported syscall: %d\n", num);