You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/01/29 21:50:21 UTC
[2/3] incubator-mynewt-larva git commit: Add error code OS_ENOENT.
Add error code OS_ENOENT.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/6689163e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/6689163e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/6689163e
Branch: refs/heads/master
Commit: 6689163ef5315e52acd28136918832c03e751b5c
Parents: 8007c19
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Fri Jan 29 12:48:21 2016 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Fri Jan 29 12:48:21 2016 -0800
----------------------------------------------------------------------
libs/os/include/os/os.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/6689163e/libs/os/include/os/os.h
----------------------------------------------------------------------
diff --git a/libs/os/include/os/os.h b/libs/os/include/os/os.h
index 938f8b7..eb63253 100644
--- a/libs/os/include/os/os.h
+++ b/libs/os/include/os/os.h
@@ -53,7 +53,7 @@ int os_started(void);
/* OS error enumerations */
enum os_error {
- OS_OK = 0,
+ OS_OK = 0,
OS_ENOMEM = 1,
OS_EINVAL = 2,
OS_INVALID_PARM = 3,
@@ -63,6 +63,7 @@ enum os_error {
OS_ERR_IN_ISR = 7, /* Function cannot be called from ISR */
OS_ERR_PRIV = 8, /* Privileged access error */
OS_NOT_STARTED = 9, /* Operating must be started to call this function, but isn't */
+ OS_ENOENT = 10, /* No such thing */
};
#define OS_WAIT_FOREVER (-1)