diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2016-06-06 19:58:10 +0100 |
---|---|---|
committer | Riku Voipio <riku.voipio@linaro.org> | 2016-06-08 10:13:46 +0300 |
commit | a6130237b85e15463592484155aa905a9b39cc6c (patch) | |
tree | 8ce16363161b07ed73b1a89fc60b044db7106f07 /vl.c | |
parent | 9e518226f431454ce2d4d01051593b32515b3b55 (diff) |
linux-user: Use safe_syscall wrapper for poll and ppoll syscalls
Use the safe_syscall wrapper for the poll and ppoll syscalls.
Since not all host architectures will have a poll syscall, we
have to rewrite the TARGET_NR_poll handling to use ppoll instead
(we can assume everywhere has ppoll by now).
We take the opportunity to switch to the code structure
already used in the implementation of epoll_wait and epoll_pwait,
which uses a switch() to avoid interleaving #if and if (),
and to stop using a variable with a leading '_' which is in
the implementation's namespace.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'vl.c')
0 files changed, 0 insertions, 0 deletions