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

2021-11-14 Thread Richard Henderson
On 11/13/21 5:56 AM, Warner Losh wrote: All the *-users generally use the negative errno return codes to signal errno for a system call. FreeBSD's system calls, on the other hand, returns errno, not -errno. Add ifdefs for FreeBSD to make the adjustment on the 4 hosts that we have support for. S

[RFC v3 4/5] common-user: Adjust system call return on FreeBSD

2021-11-12 Thread Warner Losh
All the *-users generally use the negative errno return codes to signal errno for a system call. FreeBSD's system calls, on the other hand, 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 --- common-use