diff options
author | downsj <> | 1997-03-13 19:07:41 +0000 |
---|---|---|
committer | downsj <> | 1997-03-13 19:07:41 +0000 |
commit | 05882f672fb3bf8797e68cc2d68f8406e1cb7b07 (patch) | |
tree | f9cdfe48f1a2f821eb8d11d33976f3f19cd834db /src/lib/libc/net/herror.c | |
parent | b0e0ca363d82adf8768f67857659b9590e0e6954 (diff) | |
download | openbsd-05882f672fb3bf8797e68cc2d68f8406e1cb7b07.tar.gz openbsd-05882f672fb3bf8797e68cc2d68f8406e1cb7b07.tar.bz2 openbsd-05882f672fb3bf8797e68cc2d68f8406e1cb7b07.zip |
Integrate BIND 4.9.5 resolver and associated routines.
Includes the DNS aware getnetby*() routines and IPv6 support.
Diffstat (limited to 'src/lib/libc/net/herror.c')
-rw-r--r-- | src/lib/libc/net/herror.c | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/src/lib/libc/net/herror.c b/src/lib/libc/net/herror.c index 40da6562ad..737bb115a7 100644 --- a/src/lib/libc/net/herror.c +++ b/src/lib/libc/net/herror.c | |||
@@ -1,7 +1,11 @@ | |||
1 | /*- | 1 | /* $OpenBSD: herror.c,v 1.4 1997/03/13 19:07:28 downsj Exp $ */ |
2 | |||
3 | /* | ||
4 | * ++Copyright++ 1987, 1993 | ||
5 | * - | ||
2 | * Copyright (c) 1987, 1993 | 6 | * Copyright (c) 1987, 1993 |
3 | * The Regents of the University of California. All rights reserved. | 7 | * The Regents of the University of California. All rights reserved. |
4 | * | 8 | * |
5 | * Redistribution and use in source and binary forms, with or without | 9 | * Redistribution and use in source and binary forms, with or without |
6 | * modification, are permitted provided that the following conditions | 10 | * modification, are permitted provided that the following conditions |
7 | * are met: | 11 | * are met: |
@@ -12,12 +16,12 @@ | |||
12 | * documentation and/or other materials provided with the distribution. | 16 | * documentation and/or other materials provided with the distribution. |
13 | * 3. All advertising materials mentioning features or use of this software | 17 | * 3. All advertising materials mentioning features or use of this software |
14 | * must display the following acknowledgement: | 18 | * must display the following acknowledgement: |
15 | * This product includes software developed by the University of | 19 | * This product includes software developed by the University of |
16 | * California, Berkeley and its contributors. | 20 | * California, Berkeley and its contributors. |
17 | * 4. Neither the name of the University nor the names of its contributors | 21 | * 4. Neither the name of the University nor the names of its contributors |
18 | * may be used to endorse or promote products derived from this software | 22 | * may be used to endorse or promote products derived from this software |
19 | * without specific prior written permission. | 23 | * without specific prior written permission. |
20 | * | 24 | * |
21 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | 25 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND |
22 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 26 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
23 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 27 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
@@ -52,16 +56,22 @@ | |||
52 | */ | 56 | */ |
53 | 57 | ||
54 | #if defined(LIBC_SCCS) && !defined(lint) | 58 | #if defined(LIBC_SCCS) && !defined(lint) |
55 | static char rcsid[] = "$OpenBSD: herror.c,v 1.3 1996/08/19 08:29:02 tholo Exp $"; | 59 | #if 0 |
60 | static char sccsid[] = "@(#)herror.c 8.1 (Berkeley) 6/4/93"; | ||
61 | static char rcsid[] = "$From: herror.c,v 8.3 1996/08/05 08:31:35 vixie Exp $"; | ||
62 | #else | ||
63 | static char rcsid[] = "$OpenBSD: herror.c,v 1.4 1997/03/13 19:07:28 downsj Exp $"; | ||
64 | #endif | ||
56 | #endif /* LIBC_SCCS and not lint */ | 65 | #endif /* LIBC_SCCS and not lint */ |
57 | 66 | ||
58 | #include <sys/types.h> | 67 | #include <sys/types.h> |
68 | #include <sys/param.h> | ||
59 | #include <sys/uio.h> | 69 | #include <sys/uio.h> |
60 | #include <netdb.h> | 70 | #include <netdb.h> |
61 | #include <unistd.h> | 71 | #include <unistd.h> |
62 | #include <string.h> | 72 | #include <string.h> |
63 | 73 | ||
64 | const char *h_errlist[] = { | 74 | const char *h_errlist[] = { |
65 | "Resolver Error 0 (no error)", | 75 | "Resolver Error 0 (no error)", |
66 | "Unknown host", /* 1 HOST_NOT_FOUND */ | 76 | "Unknown host", /* 1 HOST_NOT_FOUND */ |
67 | "Host name lookup failure", /* 2 TRY_AGAIN */ | 77 | "Host name lookup failure", /* 2 TRY_AGAIN */ |