Merge "Document that our getnameinfo(3) prototype is unfixably wrong."

This commit is contained in:
Treehugger Robot 2016-08-17 00:17:24 +00:00 committed by Gerrit Code Review
commit f74eb2609f

View file

@ -221,6 +221,7 @@ void herror(const char*);
const char* hstrerror(int); const char* hstrerror(int);
int getaddrinfo(const char*, const char*, const struct addrinfo*, struct addrinfo**); int getaddrinfo(const char*, const char*, const struct addrinfo*, struct addrinfo**);
/* POSIX getnameinfo uses socklen_t, not size_t, but LP64 sizeof(socklen_t) != sizeof(size_t). */
int getnameinfo(const struct sockaddr*, socklen_t, char*, size_t, char*, size_t, int); int getnameinfo(const struct sockaddr*, socklen_t, char*, size_t, char*, size_t, int);
void freeaddrinfo(struct addrinfo*); void freeaddrinfo(struct addrinfo*);
const char* gai_strerror(int); const char* gai_strerror(int);