add EHOSTDOWN errno.
This commit is contained in:
parent
eaa37fd21c
commit
a5a8c57fe7
3 changed files with 4 additions and 0 deletions
|
@ -112,6 +112,7 @@ extern int errno; /* place where the error numbers go */
|
|||
#define ENETDOWN (_SIGN 77) /* network is down */
|
||||
#define EPFNOSUPPORT (_SIGN 78) /* Protocol family not supported */
|
||||
#define EDESTADDRREQ (_SIGN 79) /* Destination address required */
|
||||
#define EHOSTDOWN (_SIGN 80) /* Host down */
|
||||
|
||||
/* The following are not POSIX errors, but they can still happen.
|
||||
* All of these are generated by the kernel and relate to message passing.
|
||||
|
|
|
@ -87,6 +87,7 @@ const char *_sys_errlist[] = {
|
|||
"Network is down", /* ENETDOWN */
|
||||
"Protocol family not supported", /* EPFNOSUPPORT */
|
||||
"Destination address required", /* EDESTADDRREQ */
|
||||
"Host is down", /* EHOSTDOWN */
|
||||
};
|
||||
|
||||
const int _sys_nerr = sizeof(_sys_errlist) / sizeof(_sys_errlist[0]);
|
||||
|
|
|
@ -369,6 +369,8 @@ A socket operation encountered a dead network.
|
|||
A socket operation specified an unsupported protocol family.
|
||||
.It Er 79 EDESTADDRREQ Em "Destination address required" .
|
||||
A required address was omitted from an operation on a socket.
|
||||
.It Er 80 EHOSTDOWN Em "Host is down" .
|
||||
The destination host has been determined to be down or disconnected.
|
||||
.El
|
||||
.Sh DEFINITIONS
|
||||
.Bl -tag -width Ds
|
||||
|
|
Loading…
Reference in a new issue