LibC: Implement gethostbyaddr

This commit is contained in:
2025-06-26 02:43:03 +03:00
parent 9de27110e2
commit bc06926702
2 changed files with 72 additions and 0 deletions

View File

@@ -99,6 +99,7 @@ void endservent(void);
void freeaddrinfo(struct addrinfo* ai);
const char* gai_strerror(int ecode);
int getaddrinfo(const char* __restrict nodename, const char* __restrict servname, const struct addrinfo* __restrict hints, struct addrinfo** __restrict res);
struct hostent* gethostbyaddr(const void* addr, socklen_t size, int type);
struct hostent* gethostbyname(const char* name);
struct hostent* gethostent(void);
int getnameinfo(const struct sockaddr* __restrict sa, socklen_t salen, char* __restrict node, socklen_t nodelen, char* __restrict service, socklen_t servicelen, int flags);