X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fnetdb.h;h=3af065e2b6b5e8a796a06df7fcaa28738ab78e25;hb=25e6fee27f4a293728dd15b659170e7b9c7db9bc;hp=967ca211f9dabcf5ae2929d1a999bd9b0a2b15b1;hpb=befa5866ee30d09c0c96e88af2eabff5911342ea;p=musl diff --git a/include/netdb.h b/include/netdb.h index 967ca211..3af065e2 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -24,8 +24,6 @@ struct addrinfo { struct addrinfo *ai_next; }; -#define IPPORT_RESERVED 1024 - #define AI_PASSIVE 0x01 #define AI_CANONNAME 0x02 #define AI_NUMERICHOST 0x04 @@ -46,6 +44,7 @@ struct addrinfo { #define EAI_NONAME -2 #define EAI_AGAIN -3 #define EAI_FAIL -4 +#define EAI_NODATA -5 #define EAI_FAMILY -6 #define EAI_SOCKTYPE -7 #define EAI_SERVICE -8 @@ -117,6 +116,9 @@ struct protoent *getprotobynumber (int); || (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE+0 < 700) struct hostent *gethostbyname (const char *); struct hostent *gethostbyaddr (const void *, socklen_t, int); +#ifdef __GNUC__ +__attribute__((const)) +#endif int *__h_errno_location(void); #define h_errno (*__h_errno_location()) #define HOST_NOT_FOUND 1