From: Ben Gras Date: Tue, 14 Sep 2010 11:51:41 +0000 (+0000) Subject: add EHOSTDOWN errno. X-Git-Tag: v3.2.0~882 X-Git-Url: http://zhaoyanbai.com/repos/man.named-rrchecker.html?a=commitdiff_plain;h=a5a8c57fe73283f32985a699aaf0e67ea7927478;p=minix.git add EHOSTDOWN errno. --- diff --git a/include/errno.h b/include/errno.h index 55f920eee..d95ba2c6f 100644 --- a/include/errno.h +++ b/include/errno.h @@ -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. diff --git a/lib/libc/ansi/errlist.c b/lib/libc/ansi/errlist.c index 67746eeae..24377c679 100644 --- a/lib/libc/ansi/errlist.c +++ b/lib/libc/ansi/errlist.c @@ -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]); diff --git a/man/man2/intro.2 b/man/man2/intro.2 index 74556599b..30eeea535 100644 --- a/man/man2/intro.2 +++ b/man/man2/intro.2 @@ -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