Nuke non-standard EAI_RESNULL.
This commit is contained in:
parent
e2e953a675
commit
69b58b037c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74393
@ -157,8 +157,7 @@ struct addrinfo {
|
|||||||
#define EAI_SYSTEM 11 /* system error returned in errno */
|
#define EAI_SYSTEM 11 /* system error returned in errno */
|
||||||
#define EAI_BADHINTS 12
|
#define EAI_BADHINTS 12
|
||||||
#define EAI_PROTOCOL 13
|
#define EAI_PROTOCOL 13
|
||||||
#define EAI_RESNULL 14
|
#define EAI_MAX 14
|
||||||
#define EAI_MAX 15
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Flag values for getaddrinfo()
|
* Flag values for getaddrinfo()
|
||||||
|
@ -560,11 +560,6 @@ Invalid value for
|
|||||||
.Fa hints .
|
.Fa hints .
|
||||||
.It Dv EAI_PROTOCOL
|
.It Dv EAI_PROTOCOL
|
||||||
Resolved protocol is unknown.
|
Resolved protocol is unknown.
|
||||||
.It Dv EAI_RESNULL
|
|
||||||
Argument
|
|
||||||
.Fa res
|
|
||||||
is
|
|
||||||
.Dv NULL .
|
|
||||||
.It Dv EAI_MAX
|
.It Dv EAI_MAX
|
||||||
Unknown error.
|
Unknown error.
|
||||||
.El
|
.El
|
||||||
|
@ -78,7 +78,6 @@
|
|||||||
* diffs with other KAME platforms:
|
* diffs with other KAME platforms:
|
||||||
* - other KAME platforms already nuked FAITH ($GAI), but as FreeBSD
|
* - other KAME platforms already nuked FAITH ($GAI), but as FreeBSD
|
||||||
* 4.0-RELEASE supplies it, we still have the code here.
|
* 4.0-RELEASE supplies it, we still have the code here.
|
||||||
* - EAI_RESNULL support
|
|
||||||
* - AI_ADDRCONFIG support is supplied
|
* - AI_ADDRCONFIG support is supplied
|
||||||
* - EDNS0 support is not available due to resolver differences
|
* - EDNS0 support is not available due to resolver differences
|
||||||
* - some of FreeBSD style (#define tabify and others)
|
* - some of FreeBSD style (#define tabify and others)
|
||||||
@ -266,9 +265,6 @@ static char *ai_errlist[] = {
|
|||||||
"System error returned in errno", /* EAI_SYSTEM */
|
"System error returned in errno", /* EAI_SYSTEM */
|
||||||
"Invalid value for hints", /* EAI_BADHINTS */
|
"Invalid value for hints", /* EAI_BADHINTS */
|
||||||
"Resolved protocol is unknown", /* EAI_PROTOCOL */
|
"Resolved protocol is unknown", /* EAI_PROTOCOL */
|
||||||
#ifdef EAI_RESNULL
|
|
||||||
"Argument res is NULL", /* EAI_RESNULL */
|
|
||||||
#endif
|
|
||||||
"Unknown error", /* EAI_MAX */
|
"Unknown error", /* EAI_MAX */
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -382,10 +378,6 @@ getaddrinfo(hostname, servname, hints, res)
|
|||||||
|
|
||||||
if (hostname == NULL && servname == NULL)
|
if (hostname == NULL && servname == NULL)
|
||||||
return EAI_NONAME;
|
return EAI_NONAME;
|
||||||
#ifdef EAI_RESNULL
|
|
||||||
if (res == NULL)
|
|
||||||
return EAI_RESNULL; /* xxx */
|
|
||||||
#endif
|
|
||||||
if (hints) {
|
if (hints) {
|
||||||
/* error check for hints */
|
/* error check for hints */
|
||||||
if (hints->ai_addrlen || hints->ai_canonname ||
|
if (hints->ai_addrlen || hints->ai_canonname ||
|
||||||
|
Loading…
Reference in New Issue
Block a user