diff options
Diffstat (limited to 'kern')
-rw-r--r-- | kern/error.c | 4 | ||||
-rw-r--r-- | kern/error.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/kern/error.c b/kern/error.c index 043cdb98..e37c67ce 100644 --- a/kern/error.c +++ b/kern/error.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 Richard Braun. + * Copyright (c) 2014-2017 Richard Braun. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -34,6 +34,8 @@ error_str(int error) return "device or resource busy"; case ERROR_FAULT: return "Bad address"; + case ERROR_NODEV: + return "No such device"; default: return "unknown error"; } diff --git a/kern/error.h b/kern/error.h index eb11cda0..62859f47 100644 --- a/kern/error.h +++ b/kern/error.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2014 Richard Braun. + * Copyright (c) 2012-2017 Richard Braun. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -23,6 +23,7 @@ #define ERROR_INVAL 3 #define ERROR_BUSY 4 #define ERROR_FAULT 5 +#define ERROR_NODEV 6 /* * Return a string describing the given error. |