X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fnetdb.h;h=703a4b2611ea3376b50875fdde3d45cb0acc466c;hb=acb7e049b8c70b9e6ad57e8601373f9c991a0da4;hp=8a7013ad0126454733b394a644639aa374ab0c10;hpb=9448b0513e2eec020fbca9c10412b83df5027a16;p=musl diff --git a/include/netdb.h b/include/netdb.h index 8a7013ad..703a4b26 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -41,7 +41,7 @@ struct addrinfo #define NI_NOFQDN 0x04 #define NI_NAMEREQD 0x08 #define NI_DGRAM 0x10 -/*#define NI_NUMERICSCOPE */ +#define NI_NUMERICSCOPE 0x100 #define EAI_BADFLAGS -1 #define EAI_NONAME -2 @@ -131,9 +131,11 @@ int *__h_errno_location(void); #define TRY_AGAIN 2 #define NO_RECOVERY 3 #define NO_DATA 4 +#define NO_ADDRESS NO_DATA #endif #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +void herror(const char *); const char *hstrerror(int); int gethostbyname_r(const char *, struct hostent *, char *, size_t, struct hostent **, int *); int gethostbyname2_r(const char *, int, struct hostent *, char *, size_t, struct hostent **, int *);