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 ENETDOWN (_SIGN 77) /* network is down */
|
||||||
#define EPFNOSUPPORT (_SIGN 78) /* Protocol family not supported */
|
#define EPFNOSUPPORT (_SIGN 78) /* Protocol family not supported */
|
||||||
#define EDESTADDRREQ (_SIGN 79) /* Destination address required */
|
#define EDESTADDRREQ (_SIGN 79) /* Destination address required */
|
||||||
|
#define EHOSTDOWN (_SIGN 80) /* Host down */
|
||||||
|
|
||||||
/* The following are not POSIX errors, but they can still happen.
|
/* The following are not POSIX errors, but they can still happen.
|
||||||
* All of these are generated by the kernel and relate to message passing.
|
* 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 */
|
"Network is down", /* ENETDOWN */
|
||||||
"Protocol family not supported", /* EPFNOSUPPORT */
|
"Protocol family not supported", /* EPFNOSUPPORT */
|
||||||
"Destination address required", /* EDESTADDRREQ */
|
"Destination address required", /* EDESTADDRREQ */
|
||||||
|
"Host is down", /* EHOSTDOWN */
|
||||||
};
|
};
|
||||||
|
|
||||||
const int _sys_nerr = sizeof(_sys_errlist) / sizeof(_sys_errlist[0]);
|
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.
|
A socket operation specified an unsupported protocol family.
|
||||||
.It Er 79 EDESTADDRREQ Em "Destination address required" .
|
.It Er 79 EDESTADDRREQ Em "Destination address required" .
|
||||||
A required address was omitted from an operation on a socket.
|
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
|
.El
|
||||||
.Sh DEFINITIONS
|
.Sh DEFINITIONS
|
||||||
.Bl -tag -width Ds
|
.Bl -tag -width Ds
|
||||||
|
|
Loading…
Reference in a new issue