diff options
author | ume <ume@FreeBSD.org> | 2007-06-03 17:20:27 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2007-06-03 17:20:27 +0000 |
commit | 1f0b78cb3e02e3e161fed2e61d1cf1d0fb386365 (patch) | |
tree | 4c177bc1c465cdceae9dd1ea93c01fa64b220b93 /lib/libc/resolv/herror.c | |
parent | 09efba1c33e3e58c865d7f628c4f48e47d74bcd0 (diff) | |
download | FreeBSD-src-1f0b78cb3e02e3e161fed2e61d1cf1d0fb386365.zip FreeBSD-src-1f0b78cb3e02e3e161fed2e61d1cf1d0fb386365.tar.gz |
Merge BIND 9.4.1 into main chunk.
MFC after: 2 weeks
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 c09969d..cb9dd0e 100644 --- a/lib/libc/resolv/herror.c +++ b/lib/libc/resolv/herror.c @@ -46,7 +46,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 <sys/cdefs.h> __FBSDID("$FreeBSD$"); @@ -71,17 +71,17 @@ __FBSDID("$FreeBSD$"); 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 */ }; const int h_nerr = { sizeof h_errlist / sizeof h_errlist[0] }; #undef h_errno int h_errno; -/* +/*% * herror -- * print the error indicated by the h_errno value. */ @@ -110,7 +110,7 @@ herror(const char *s) { _writev(STDERR_FILENO, iov, (v - iov) + 1); } -/* +/*% * hstrerror -- * return the string associated with a given "host" errno value. */ @@ -122,3 +122,5 @@ hstrerror(int err) { return (h_errlist[err]); return ("Unknown resolver error"); } + +/*! \file */ |