commit | 003eaa897e6437df876ab0555901fa92b57b3e01 | [log] [tgz] |
---|---|---|
author | Sean Anderson <sean.anderson@seco.com> | Tue Mar 22 16:59:16 2022 -0400 |
committer | Tom Rini <trini@konsulko.com> | Fri Apr 01 15:03:13 2022 -0400 |
tree | 24f9d9fe9dc016f50b365e1b83845c740af9765f | |
parent | a3a6c69bec1776adcd4b32012995c3367d56ef09 [diff] |
arm: smh: Return errno on error Instead of printing in what are now library functions, try to return a numeric error code. This also adjust some functions (such as read) to behave more similarly to read(2). For example, we now return the number of bytes read instead of failing immediately on a short read. Signed-off-by: Sean Anderson <sean.anderson@seco.com>