mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Add EHOSTDOWN.
This commit is contained in:
parent
c3a3ff86ec
commit
006145d335
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue