linux-user: Use safe_syscall wrapper for msgsnd and msgrcv
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 6 Jun 2016 18:58:05 +0000 (19:58 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Wed, 8 Jun 2016 07:13:45 +0000 (10:13 +0300)
commit89f9fe4452848386e9d0aacd84ac681944051b78
tree9b4cca124f7540b4fd469f875a23d9e8f90bf0c2
parent666875306e03e1f94e1d4c808502585c10abc69a
linux-user: Use safe_syscall wrapper for msgsnd and msgrcv

Use the safe_syscall wrapper for msgsnd and msgrcv syscalls.
This is made slightly awkward by some host architectures providing
only a single 'ipc' syscall rather than separate syscalls per
operation; we provide safe_msgsnd() and safe_msgrcv() as wrappers
around safe_ipc() to handle this if needed.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/syscall.c