Re: [RFC v2 4/6] common-user: Adjust system call return on FreeBSD

2021-11-10 Thread Warner Losh
On Wed, Nov 10, 2021 at 9:59 AM Richard Henderson < richard.hender...@linaro.org> wrote: > On 11/10/21 5:31 PM, Warner Losh wrote: > > All the *-users generally use the Linux style of negative return codes > > for errno. FreeBSD returns errno, not -errno. Add ifdefs for FreeBSD to > > make the

Re: [RFC v2 4/6] common-user: Adjust system call return on FreeBSD

2021-11-10 Thread Richard Henderson
On 11/10/21 5:31 PM, Warner Losh wrote: All the *-users generally use the Linux style of negative return codes for errno. FreeBSD returns errno, not -errno. Add ifdefs for FreeBSD to make the adjustment on the 4 hosts that we have support for. Signed-off-by: Warner Losh ---