diff options
-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 63dd3314..a81bed2d 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 0d3b735b..ba95f773 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"; } |