linux-user: Consistently return host errnos from do_openat()
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 12 May 2016 17:47:26 +0000 (18:47 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Fri, 27 May 2016 11:49:48 +0000 (14:49 +0300)
commita3ca7bb2592010eedca31abd11d3ab451cf3b738
tree3e32ee824be05e7feaf59d8b249e27bd32b05bf5
parent2466119c9551d606a0f92f9832e0c865bc04b488
linux-user: Consistently return host errnos from do_openat()

The function do_openat() is not consistent about whether it is
returning a host errno or a guest errno in case of failure.
Standardise on returning -1 with errno set (ie caller has
to call get_errno()).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reported-by: Timothy Edward Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
linux-user/syscall.c