By the way, I was wrong earlier: return value -5 is not EAI_FAMILY but
EAI_NODATA.

$ grep -r EAI_ /usr/include
/usr/include/netdb.h:# define EAI_BADFLAGS        -1    /* Invalid value for 
`ai_flags' field.  */
/usr/include/netdb.h:# define EAI_NONAME          -2    /* NAME or SERVICE is 
unknown.  */
/usr/include/netdb.h:# define EAI_AGAIN   -3    /* Temporary failure in name 
resolution.  */
/usr/include/netdb.h:# define EAI_FAIL    -4    /* Non-recoverable failure in 
name res.  */
/usr/include/netdb.h:# define EAI_FAMILY          -6    /* `ai_family' not 
supported.  */
/usr/include/netdb.h:# define EAI_SOCKTYPE        -7    /* `ai_socktype' not 
supported.  */
/usr/include/netdb.h:# define EAI_SERVICE         -8    /* SERVICE not 
supported for `ai_socktype'.  */
/usr/include/netdb.h:# define EAI_MEMORY          -10   /* Memory allocation 
failure.  */
/usr/include/netdb.h:# define EAI_SYSTEM          -11   /* System error 
returned in `errno'.  */
/usr/include/netdb.h:# define EAI_OVERFLOW        -12   /* Argument buffer 
overflow.  */
/usr/include/netdb.h:#  define EAI_NODATA         -5    /* No address 
associated with NAME.  */
/usr/include/netdb.h:#  define EAI_ADDRFAMILY  -9       /* Address family for 
NAME not supported.  */
/usr/include/netdb.h:#  define EAI_INPROGRESS  -100     /* Processing request 
in progress.  */
/usr/include/netdb.h:#  define EAI_CANCELED       -101  /* Request canceled.  */
/usr/include/netdb.h:#  define EAI_NOTCANCELED -102     /* Request not 
canceled.  */
/usr/include/netdb.h:#  define EAI_ALLDONE        -103  /* All requests done.  
*/
/usr/include/netdb.h:#  define EAI_INTR   -104  /* Interrupted by a signal.  */
/usr/include/netdb.h:#  define EAI_IDN_ENCODE  -105     /* IDN encoding failed. 
 */


** Changed in: python2.7 (Ubuntu)
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1154599

Title:
  getaddrinfo() returns -11 (EAI_SYSTEM) instead of -2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1154599/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to