1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 16:17:47 +00:00

LibC: Implement gethostbyname_r()

gethostbyname_r() will be used to make getaddrinfo() MT-Safe.
This commit is contained in:
Marcus Nilsson 2023-08-12 21:26:59 +02:00 committed by Andrew Kaster
parent bf3fa19314
commit 1a7e262752
2 changed files with 173 additions and 0 deletions

View file

@ -27,6 +27,7 @@ struct hostent {
};
struct hostent* gethostbyname(char const*);
int gethostbyname_r(char const* __restrict name, struct hostent* __restrict ret, char* buffer, size_t buffer_size, struct hostent** __restrict result, int* __restrict h_errnop);
struct hostent* gethostbyaddr(void const* addr, socklen_t len, int type);
struct servent {