Re: [PATCH v6 03/16] linux-user: Move syscall error detection into safe_syscall_base

2021-11-25 Thread Warner Losh
On Tue, Nov 23, 2021 at 10:38 AM Richard Henderson < richard.hender...@linaro.org> wrote: > The current api from safe_syscall_base() is to return -errno, which is > the interface provided by *some* linux kernel abis. The wrapper macro, > safe_syscall(), detects error, stores into errno, and retur

[PATCH v6 03/16] linux-user: Move syscall error detection into safe_syscall_base

2021-11-23 Thread Richard Henderson
The current api from safe_syscall_base() is to return -errno, which is the interface provided by *some* linux kernel abis. The wrapper macro, safe_syscall(), detects error, stores into errno, and returns -1, to match the api of the system syscall(). For those kernel abis that do not return -errno