diff options
author | Richard Braun <rbraun@sceen.net> | 2018-02-24 07:23:58 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2018-02-24 07:23:58 +0100 |
commit | 6a69c45189d3c576cc18dfac6e426cd606831657 (patch) | |
tree | 5553d55a7a95b3714cb8f6fad7140d0feb6399dc | |
parent | 44fe3a6ad5307dd4b18638972af8cf0f2b529575 (diff) |
New ENOENT error code
-rw-r--r-- | include/errno.h | 1 | ||||
-rw-r--r-- | kern/string.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/errno.h b/include/errno.h index 63dd331..a81bed2 100644 --- a/include/errno.h +++ b/include/errno.h @@ -28,5 +28,6 @@ #define EIO 8 #define ESRCH 9 #define ETIMEDOUT 10 +#define ENOENT 11 #endif /* ERRNO_H */ diff --git a/kern/string.c b/kern/string.c index 0d3b735..ba95f77 100644 --- a/kern/string.c +++ b/kern/string.c @@ -254,6 +254,8 @@ strerror(int error) return "no such process"; case ETIMEDOUT: return "timeout error"; + case ENOENT: + return "no such file or directory"; default: return "unknown error"; } |