summaryrefslogtreecommitdiffstats
path: root/include/netdb.h
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2006-05-21 11:22:31 +0000
committerume <ume@FreeBSD.org>2006-05-21 11:22:31 +0000
commitc49929798600cc98625b30e672dfe77235791a07 (patch)
treea82b4c284a5ddf2b821903c9504a21a50b34beb7 /include/netdb.h
parent2103e7a60f93b5663802fad9b458412411640d7c (diff)
downloadFreeBSD-src-c49929798600cc98625b30e672dfe77235791a07.zip
FreeBSD-src-c49929798600cc98625b30e672dfe77235791a07.tar.gz
Return EAI_OVERFLOW instead of EAI_MEMORY when the supplied buffer is
too short. This conforms to RFC3493, POSIX and XPG6. Obtained from: NetBSD
Diffstat (limited to 'include/netdb.h')
-rw-r--r--include/netdb.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/netdb.h b/include/netdb.h
index 6e7d818..33a5051 100644
--- a/include/netdb.h
+++ b/include/netdb.h
@@ -168,9 +168,10 @@ struct addrinfo {
#define EAI_SERVICE 9 /* servname not supported for ai_socktype */
#define EAI_SOCKTYPE 10 /* ai_socktype not supported */
#define EAI_SYSTEM 11 /* system error returned in errno */
-#define EAI_BADHINTS 12
-#define EAI_PROTOCOL 13
-#define EAI_MAX 14
+#define EAI_BADHINTS 12 /* invalid value for hints */
+#define EAI_PROTOCOL 13 /* resolved protocol is unknown */
+#define EAI_OVERFLOW 14 /* argument buffer overflow */
+#define EAI_MAX 15
/*
* Flag values for getaddrinfo()
OpenPOWER on IntegriCloud