linux-user: Use safe_syscall for pselect, select syscalls
commit6df9d38d33be8397bda8838dea5a4a10d662749b
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 12 May 2016 17:47:51 +0000 (12 18:47 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Fri, 27 May 2016 11:50:38 +0000 (27 14:50 +0300)
treea67017b1a9b5dceeedce8e30fe038b54b75eedfd
parentffdcbe223d23461669869e85786145cce65e1e8c
linux-user: Use safe_syscall for pselect, select syscalls

Use the safe_syscall wrapper for the pselect and select syscalls.
Since not every architecture has the select syscall, we now
have to implement select in terms of pselect, which means doing
timeval<->timespec conversion.

(Five years on from the initial patch that added pselect support
to QEMU and a decade after pselect6 went into the kernel, it seems
safe to not try to support hosts with header files which don't
define __NR_pselect6.)

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