diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1997-03-13 19:07:42 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1997-03-13 19:07:42 +0000 |
commit | 6f186362d0923eb9f92a696a1132378f6854f243 (patch) | |
tree | c516aca93e6026f753f6dcf2f004073ee9cd8ca3 /lib/libc/net/herror.c | |
parent | 6e0f740fe402f51cdf52c350f93fbda7a6328142 (diff) |
Integrate BIND 4.9.5 resolver and associated routines.
Includes the DNS aware getnetby*() routines and IPv6 support.
Diffstat (limited to 'lib/libc/net/herror.c')
-rw-r--r-- | lib/libc/net/herror.c | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/lib/libc/net/herror.c b/lib/libc/net/herror.c index 40da6562ada..737bb115a7f 100644 --- a/lib/libc/net/herror.c +++ b/lib/libc/net/herror.c @@ -1,7 +1,11 @@ -/*- +/* $OpenBSD: herror.c,v 1.4 1997/03/13 19:07:28 downsj Exp $ */ + +/* + * ++Copyright++ 1987, 1993 + * - * Copyright (c) 1987, 1993 - * The Regents of the University of California. All rights reserved. - * + * The Regents of the University of California. All rights reserved. + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -12,12 +16,12 @@ * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. + * This product includes software developed by the University of + * California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE @@ -52,16 +56,22 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: herror.c,v 1.3 1996/08/19 08:29:02 tholo Exp $"; +#if 0 +static char sccsid[] = "@(#)herror.c 8.1 (Berkeley) 6/4/93"; +static char rcsid[] = "$From: herror.c,v 8.3 1996/08/05 08:31:35 vixie Exp $"; +#else +static char rcsid[] = "$OpenBSD: herror.c,v 1.4 1997/03/13 19:07:28 downsj Exp $"; +#endif #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> +#include <sys/param.h> #include <sys/uio.h> #include <netdb.h> #include <unistd.h> #include <string.h> -const char *h_errlist[] = { +const char *h_errlist[] = { "Resolver Error 0 (no error)", "Unknown host", /* 1 HOST_NOT_FOUND */ "Host name lookup failure", /* 2 TRY_AGAIN */ |