From 006145d335e51c41e68221c162c28c495889b181 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sun, 4 Dec 2022 22:10:36 +0100 Subject: [PATCH] Add EHOSTDOWN. --- libc/include/errno.h | 3 ++- libc/string/strerror.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libc/include/errno.h b/libc/include/errno.h index d286aae3..32f6587a 100644 --- a/libc/include/errno.h +++ b/libc/include/errno.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2016, 2020 Jonas 'Sortie' Termansen. + * Copyright (c) 2011-2016, 2020-2022 Jonas 'Sortie' Termansen. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -108,6 +108,7 @@ #define ETXTBSY 98 #define ENOMOUNT 99 #define ENOMEDIUM 100 +#define EHOSTDOWN 101 #define EOPNOTSUPP ENOTSUP #define EWOULDBLOCK EAGAIN diff --git a/libc/string/strerror.c b/libc/string/strerror.c index 39df8060..90071782 100644 --- a/libc/string/strerror.c +++ b/libc/string/strerror.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2012, 2013, 2014 Jonas 'Sortie' Termansen. + * Copyright (c) 2011-2016, 2020-2022 Jonas 'Sortie' Termansen. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -111,6 +111,7 @@ const char* sortix_strerror(int errnum) case ETXTBSY: return "Text file busy"; case ENOMOUNT: return "No such mountpoint"; case ENOMEDIUM: return "No medium found"; + case EHOSTDOWN: return "Host is down"; default: return "Unknown error condition"; } }