commit | 31d7c03e1cf59fbb373f0f7c73fdc01003922f6b | [log] [tgz] |
---|---|---|
author | Nick Bray <ncbray@google.com> | Thu Aug 01 16:26:53 2019 -0700 |
committer | Nick Bray <ncbray@google.com> | Fri Aug 02 10:38:30 2019 -0700 |
tree | 46ca28c172edc3235239daa8d453223d73f8953c | |
parent | cf03e39330531f1ff6d6bd034c0da674c3785db8 [diff] |
Clean up type signatures of syscalls. Instead of returning long values, prefer int. If a function returns a byte count or an error, return ssize_t. Make handle_t signed so that it can be used as a return value with possible error. If an argument is a handle, make it a handle_t rather than uint32_t. This makes the signature of close(...) compatible with POSIX. Bug: 138738352 Change-Id: Iac2ec408c70e8fd37f857d834693e5aa3feb2c33