Add EAI_OVERFLOW as specified in RFC3493, POSIX and XPG6.
This commit is contained in:
parent
1f315c6ab1
commit
e0882f7342
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: netdb.h,v 1.52 2006/01/24 17:08:58 christos Exp $ */
|
||||
/* $NetBSD: netdb.h,v 1.53 2006/02/17 15:55:01 ginsbach Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1983, 1988, 1993
|
||||
@ -239,9 +239,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
|
||||
#endif /* _POSIX_C_SOURCE >= 200112 || _XOPEN_SOURCE >= 520 || _NETBSD_SOURCE */
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: getaddrinfo.c,v 1.76 2006/02/13 17:16:20 ginsbach Exp $ */
|
||||
/* $NetBSD: getaddrinfo.c,v 1.77 2006/02/17 15:55:01 ginsbach Exp $ */
|
||||
/* $KAME: getaddrinfo.c,v 1.29 2000/08/31 17:26:57 itojun Exp $ */
|
||||
|
||||
/*
|
||||
@ -79,7 +79,7 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: getaddrinfo.c,v 1.76 2006/02/13 17:16:20 ginsbach Exp $");
|
||||
__RCSID("$NetBSD: getaddrinfo.c,v 1.77 2006/02/17 15:55:01 ginsbach Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include "namespace.h"
|
||||
@ -266,6 +266,7 @@ static const char * const ai_errlist[] = {
|
||||
"System error returned in errno", /* EAI_SYSTEM */
|
||||
"Invalid value for hints", /* EAI_BADHINTS */
|
||||
"Resolved protocol is unknown", /* EAI_PROTOCOL */
|
||||
"Argument buffer overflow", /* EAI_OVERFLOW */
|
||||
"Unknown error", /* EAI_MAX */
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user