fn getErrno(r: errno_t) errno_t
Get the errno from a syscall return value, or 0 for no error.
r: errno_t,