mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 13:57:36 +00:00
LibC: Implement gethostbyname_r()
gethostbyname_r() will be used to make getaddrinfo() MT-Safe.
This commit is contained in:
parent
bf3fa19314
commit
1a7e262752
2 changed files with 173 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue