summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/netdb.h3
-rw-r--r--lib/libc/net/gai_strerror.36
-rw-r--r--lib/libc/net/gai_strerror.c4
3 files changed, 9 insertions, 4 deletions
diff --git a/include/netdb.h b/include/netdb.h
index 9d4ee531e17..4c1a738d729 100644
--- a/include/netdb.h
+++ b/include/netdb.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: netdb.h,v 1.26 2009/05/07 16:32:53 jacekm Exp $ */
+/* $OpenBSD: netdb.h,v 1.27 2009/06/02 16:47:50 jasper Exp $ */
/*
* ++Copyright++ 1980, 1983, 1988, 1993
@@ -186,6 +186,7 @@ struct protoent {
#define EAI_SYSTEM -11 /* system error (code indicated in errno) */
#define EAI_BADHINTS -12 /* invalid value for hints */
#define EAI_PROTOCOL -13 /* resolved protocol is unknown */
+#define EAI_OVERFLOW -14 /* argument buffer overflow */
struct addrinfo {
int ai_flags; /* input flags */
diff --git a/lib/libc/net/gai_strerror.3 b/lib/libc/net/gai_strerror.3
index 9a12d9cb57d..6ce94e30a13 100644
--- a/lib/libc/net/gai_strerror.3
+++ b/lib/libc/net/gai_strerror.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: gai_strerror.3,v 1.6 2007/05/31 19:19:30 jmc Exp $
+.\" $OpenBSD: gai_strerror.3,v 1.7 2009/06/02 16:47:50 jasper Exp $
.\" $KAME: gai_strerror.3,v 1.1 2005/01/05 03:04:47 itojun Exp $
.\"
.\" Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
@@ -16,7 +16,7 @@
.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
.\" PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: June 2 2009 $
.Dt GAI_STRERROR 3
.Os
.Sh NAME
@@ -68,6 +68,8 @@ no address associated with
or
.Fa servname
not provided, or not known
+.It Dv EAI_OVERFLOW
+argument buffer overflow
.It Dv EAI_PROTOCOL
resolved protocol is unknown
.It Dv EAI_SERVICE
diff --git a/lib/libc/net/gai_strerror.c b/lib/libc/net/gai_strerror.c
index 767bc2f7e86..f4126413f8b 100644
--- a/lib/libc/net/gai_strerror.c
+++ b/lib/libc/net/gai_strerror.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gai_strerror.c,v 1.6 2004/12/20 22:35:32 millert Exp $ */
+/* $OpenBSD: gai_strerror.c,v 1.7 2009/06/02 16:47:50 jasper Exp $ */
/*
* Copyright (c) 1997-1999, Craig Metz, All rights reserved.
@@ -70,6 +70,8 @@ gai_strerror(int errnum)
return "invalid value for hints";
case EAI_PROTOCOL:
return "resolved protocol is unknown";
+ case EAI_OVERFLOW:
+ return "argument buffer overflow";
default:
return "unknown/invalid error";
}