diff options
author | Anton Kling <anton@kling.gg> | 2024-06-20 23:13:51 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-06-20 23:13:51 +0200 |
commit | 9725791024d159ba0c5b6e8eef13a0e9077523a9 (patch) | |
tree | 91555c2f74e3d0794964f9f9cbb948b62550e46b /userland/libc/include/netdb.h | |
parent | d7f2c29a6b238d678c6f76237b35b14eda258e7d (diff) |
Add getaddrinfo and change other libc stuff
Diffstat (limited to 'userland/libc/include/netdb.h')
-rw-r--r-- | userland/libc/include/netdb.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/userland/libc/include/netdb.h b/userland/libc/include/netdb.h index e69de29..4b4dc99 100644 --- a/userland/libc/include/netdb.h +++ b/userland/libc/include/netdb.h @@ -0,0 +1,7 @@ +#include <arpa/inet.h> +#include <sys/socket.h> + +int getaddrinfo(const char *restrict node, const char *restrict service, + const struct addrinfo *restrict hints, + struct addrinfo **restrict res); +void freeaddrinfo(struct addrinfo *res); |