diff options
author | ume <ume@FreeBSD.org> | 2007-06-03 17:02:29 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2007-06-03 17:02:29 +0000 |
commit | 50b2307361fc1eba9b79963194fda27849a4994c (patch) | |
tree | fcab9dae0a6dfbc5403b46311a5588c3f7f49dd4 /lib/libc/resolv/herror.c | |
parent | 89a3ca4811ee4b83778a8ddb7d54874dff19b707 (diff) | |
download | FreeBSD-src-50b2307361fc1eba9b79963194fda27849a4994c.zip FreeBSD-src-50b2307361fc1eba9b79963194fda27849a4994c.tar.gz |
Vendor import of BIND 9.4.1
Diffstat (limited to 'lib/libc/resolv/herror.c')
-rw-r--r-- | lib/libc/resolv/herror.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/libc/resolv/herror.c b/lib/libc/resolv/herror.c index 58807e9..9232426 100644 --- a/lib/libc/resolv/herror.c +++ b/lib/libc/resolv/herror.c @@ -50,7 +50,7 @@ #if defined(LIBC_SCCS) && !defined(lint) static const char sccsid[] = "@(#)herror.c 8.1 (Berkeley) 6/4/93"; -static const char rcsid[] = "$Id: herror.c,v 1.2.206.1 2004/03/09 08:33:54 marka Exp $"; +static const char rcsid[] = "$Id: herror.c,v 1.3.18.1 2005/04/27 05:01:09 sra Exp $"; #endif /* LIBC_SCCS and not lint */ #include "port_before.h" @@ -72,10 +72,10 @@ static const char rcsid[] = "$Id: herror.c,v 1.2.206.1 2004/03/09 08:33:54 marka const char *h_errlist[] = { "Resolver Error 0 (no error)", - "Unknown host", /* 1 HOST_NOT_FOUND */ - "Host name lookup failure", /* 2 TRY_AGAIN */ - "Unknown server error", /* 3 NO_RECOVERY */ - "No address associated with name", /* 4 NO_ADDRESS */ + "Unknown host", /*%< 1 HOST_NOT_FOUND */ + "Host name lookup failure", /*%< 2 TRY_AGAIN */ + "Unknown server error", /*%< 3 NO_RECOVERY */ + "No address associated with name", /*%< 4 NO_ADDRESS */ }; int h_nerr = { sizeof h_errlist / sizeof h_errlist[0] }; @@ -84,7 +84,7 @@ int h_nerr = { sizeof h_errlist / sizeof h_errlist[0] }; int h_errno; #endif -/* +/*% * herror -- * print the error indicated by the h_errno value. */ @@ -113,7 +113,7 @@ herror(const char *s) { writev(STDERR_FILENO, iov, (v - iov) + 1); } -/* +/*% * hstrerror -- * return the string associated with a given "host" errno value. */ @@ -125,3 +125,5 @@ hstrerror(int err) { return (h_errlist[err]); return ("Unknown resolver error"); } + +/*! \file */ |