diff options
author | Richard Braun <rbraun@sceen.net> | 2017-05-28 17:33:26 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-05-28 17:57:29 +0200 |
commit | 5a711e07fe97d3fdbd6e322bacd41de44bdf82d3 (patch) | |
tree | ce44a0d78f4764f61b51ccd45ddc3bc72de6fdce | |
parent | 2f3437c5a936c9871644971952922e7040313854 (diff) |
kern/error: new ERROR_EXIST and ERROR_IO macros
-rw-r--r-- | kern/error.c | 4 | ||||
-rw-r--r-- | kern/error.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/kern/error.c b/kern/error.c index e37c67ce..02a26d0c 100644 --- a/kern/error.c +++ b/kern/error.c @@ -36,6 +36,10 @@ error_str(int error) return "Bad address"; case ERROR_NODEV: return "No such device"; + case ERROR_EXIST: + return "Entry exists"; + case ERROR_IO: + return "Input/output error"; default: return "unknown error"; } diff --git a/kern/error.h b/kern/error.h index 62859f47..96a26206 100644 --- a/kern/error.h +++ b/kern/error.h @@ -24,6 +24,8 @@ #define ERROR_BUSY 4 #define ERROR_FAULT 5 #define ERROR_NODEV 6 +#define ERROR_EXIST 7 +#define ERROR_IO 8 /* * Return a string describing the given error. |