diff options
-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. |