diff options
author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2018-12-23 18:15:48 +0000 |
---|---|---|
committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2018-12-23 18:15:48 +0000 |
commit | 09ed804717dfab5d1ddfd246efee49a631331063 (patch) | |
tree | 7030e983c71768bc4796e6afd6aca8005403518c /include/netdb.h | |
parent | 2686f69ed4eec6c02cae8568406598b91786fbaf (diff) | |
download | src-test2-09ed804717dfab5d1ddfd246efee49a631331063.tar.gz src-test2-09ed804717dfab5d1ddfd246efee49a631331063.zip |
Notes
Diffstat (limited to 'include/netdb.h')
-rw-r--r-- | include/netdb.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/netdb.h b/include/netdb.h index a106338a1802..90497d93fae4 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -159,24 +159,24 @@ struct addrinfo { #define NO_ADDRESS NO_DATA /* no address, look for MX record */ /* - * Error return codes from getaddrinfo() + * Error return codes from gai_strerror(3), see RFC 3493. */ #if 0 -/* obsoleted */ +/* Obsoleted on RFC 2553bis-02 */ #define EAI_ADDRFAMILY 1 /* address family for hostname not supported */ #endif -#define EAI_AGAIN 2 /* temporary failure in name resolution */ -#define EAI_BADFLAGS 3 /* invalid value for ai_flags */ +#define EAI_AGAIN 2 /* name could not be resolved at this time */ +#define EAI_BADFLAGS 3 /* flags parameter had an invalid value */ #define EAI_FAIL 4 /* non-recoverable failure in name resolution */ -#define EAI_FAMILY 5 /* ai_family not supported */ +#define EAI_FAMILY 5 /* address family was recognized */ #define EAI_MEMORY 6 /* memory allocation failure */ #if 0 -/* obsoleted */ +/* Obsoleted on RFC 2553bis-02 */ #define EAI_NODATA 7 /* no address associated with hostname */ #endif -#define EAI_NONAME 8 /* hostname nor servname provided, or not known */ -#define EAI_SERVICE 9 /* servname not supported for ai_socktype */ -#define EAI_SOCKTYPE 10 /* ai_socktype not supported */ +#define EAI_NONAME 8 /* name does not resolve */ +#define EAI_SERVICE 9 /* service not recognized for socket type */ +#define EAI_SOCKTYPE 10 /* intended socket type was not recognized */ #define EAI_SYSTEM 11 /* system error returned in errno */ #define EAI_BADHINTS 12 /* invalid value for hints */ #define EAI_PROTOCOL 13 /* resolved protocol is unknown */ |