You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2018/11/29 21:08:31 UTC

[mynewt-core] 01/14: sys/defs: Add new error code

This is an automated email from the ASF dual-hosted git repository.

andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 4412d434de760f98654ea842f751eba89368ab5f
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Mon Nov 26 15:35:33 2018 +0100

    sys/defs: Add new error code
    
    This is used to indicate I/O error caused by remote side. For example,
    in bus driver this will indicate data NAK while existing SYS_EIO can be
    used to indicate I/O errors on local side.
---
 sys/defs/include/defs/error.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/defs/include/defs/error.h b/sys/defs/include/defs/error.h
index 678cc19..9d7cd0e 100644
--- a/sys/defs/include/defs/error.h
+++ b/sys/defs/include/defs/error.h
@@ -38,6 +38,7 @@ extern "C" {
 #define SYS_EALREADY (-11)
 #define SYS_ENOTSUP  (-12)
 #define SYS_EUNKNOWN (-13)
+#define SYS_EREMOTEIO   (-14)
 
 #define SYS_EPERUSER (-65535)