PostgreSQL Source Code  git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
win32gai_strerror.c File Reference
#include <sys/socket.h>
Include dependency graph for win32gai_strerror.c:

Go to the source code of this file.

Functions

const char * gai_strerror (int errcode)
 

Function Documentation

◆ gai_strerror()

const char* gai_strerror ( int  errcode)

Definition at line 22 of file win32gai_strerror.c.

23 {
24  switch (errcode)
25  {
26  case EAI_AGAIN:
27  return "Temporary failure in name resolution";
28  case EAI_BADFLAGS:
29  return "Bad value for ai_flags";
30  case EAI_FAIL:
31  return "Non-recoverable failure in name resolution";
32  case EAI_FAMILY:
33  return "ai_family not supported";
34  case EAI_MEMORY:
35  return "Memory allocation failure";
36  case EAI_NONAME:
37  return "Name or service not known";
38  case EAI_SERVICE:
39  return "Servname not supported for ai_socktype";
40  case EAI_SOCKTYPE:
41  return "ai_socktype not supported";
42  default:
43  return "Unknown server error";
44  }
45 }
int errcode(int sqlerrcode)
Definition: elog.c:853

References errcode().

Referenced by BackendInitialize(), ListenServerPort(), parse_hba_auth_opt(), parse_hba_line(), PerformRadiusTransaction(), and PQconnectPoll().