libc: convert ai_errlist array to designated initializers syntax
Reviewed by: emaste, glebius Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D52010
This commit is contained in:
+15
-15
@@ -46,21 +46,21 @@
|
||||
* but are or may be used as extensions or in old code.
|
||||
*/
|
||||
static const char *ai_errlist[] = {
|
||||
"Success", /* 0 */
|
||||
"Address family for hostname not supported", /* EAI_ADDRFAMILY */
|
||||
"Name could not be resolved at this time", /* EAI_AGAIN */
|
||||
"Flags parameter had an invalid value", /* EAI_BADFLAGS */
|
||||
"Non-recoverable failure in name resolution", /* EAI_FAIL */
|
||||
"Address family not recognized", /* EAI_FAMILY */
|
||||
"Memory allocation failure", /* EAI_MEMORY */
|
||||
"No address associated with hostname", /* EAI_NODATA*/
|
||||
"Name does not resolve", /* EAI_NONAME */
|
||||
"Service was not recognized for socket type", /* EAI_SERVICE */
|
||||
"Intended socket type was not recognized", /* EAI_SOCKTYPE */
|
||||
"System error returned in errno", /* EAI_SYSTEM */
|
||||
"Invalid value for hints", /* EAI_BADHINTS */
|
||||
"Resolved protocol is unknown", /* EAI_PROTOCOL */
|
||||
"Argument buffer overflow" /* EAI_OVERFLOW */
|
||||
[0] = "Success",
|
||||
[EAI_ADDRFAMILY] = "Address family for hostname not supported",
|
||||
[EAI_AGAIN] = "Name could not be resolved at this time",
|
||||
[EAI_BADFLAGS] = "Flags parameter had an invalid value",
|
||||
[EAI_FAIL] = "Non-recoverable failure in name resolution",
|
||||
[EAI_FAMILY] = "Address family not recognized",
|
||||
[EAI_MEMORY] = "Memory allocation failure",
|
||||
[EAI_NODATA] = "No address associated with hostname",
|
||||
[EAI_NONAME] = "Name does not resolve",
|
||||
[EAI_SERVICE] = "Service was not recognized for socket type",
|
||||
[EAI_SOCKTYPE] = "Intended socket type was not recognized",
|
||||
[EAI_SYSTEM] = "System error returned in errno",
|
||||
[EAI_BADHINTS] = "Invalid value for hints",
|
||||
[EAI_PROTOCOL] = "Resolved protocol is unknown",
|
||||
[EAI_OVERFLOW] = "Argument buffer overflow",
|
||||
};
|
||||
|
||||
#if defined(NLS)
|
||||
|
||||
Reference in New Issue
Block a user