summaryrefslogtreecommitdiff
path: root/lib/libc/net
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2009-06-02 16:47:51 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2009-06-02 16:47:51 +0000
commitcaba12193a3fbed4b1793760f627ce31a39716f3 (patch)
treedb2d59292178f2e2b38f1d3a2cb7e2833730f556 /lib/libc/net
parent58851ae693519dcd8aa528c983c462a1ccd5fa01 (diff)
- define EAI_OVERFLOW, as per IEEE Std 1003.1-2001(Interpretation #13)
hint from claudio@, ok millert@
Diffstat (limited to 'lib/libc/net')
-rw-r--r--lib/libc/net/gai_strerror.36
-rw-r--r--lib/libc/net/gai_strerror.c4
2 files changed, 7 insertions, 3 deletions
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";
}