diff options
author | Juan Castillo <jcastillo.devel@gmail.com> | 2015-10-01 17:55:11 +0100 |
---|---|---|
committer | Juan Castillo <juan.castillo@arm.com> | 2015-10-23 16:57:52 +0100 |
commit | 7e26fe1f05bb05ce6e0f95b9a44ada2a21d53dd3 (patch) | |
tree | 8aa2b46736442be975e7f83cb689082018903d98 /common | |
parent | 84ab33e1e95500a3dfc776fe416b9d1a51288057 (diff) |
IO Framework: use standard errno codes as return values
This patch redefines the values of IO_FAIL, IO_NOT_SUPPORTED and
IO_RESOURCES_EXHAUSTED to match the corresponding definitions in
errno.h:
#define IO_FAIL (-ENOENT)
#define IO_NOT_SUPPORTED (-ENODEV)
#define IO_RESOURCES_EXHAUSTED (-ENOMEM)
NOTE: please note that the IO_FAIL, IO_NOT_SUPPORTED and
IO_RESOURCES_EXHAUSTED definitions are considered deprecated
and their usage should be avoided. Callers should rely on errno.h
definitions when checking the return values of IO functions.
Change-Id: Ic8491aa43384b6ee44951ebfc053a3ded16a80be
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions