diff options
author | Anton Kling <anton@kling.gg> | 2024-12-16 20:26:20 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-12-16 20:29:43 +0100 |
commit | 9501c3f45b9b5d3b2cef5e78c83c362dbe6295a5 (patch) | |
tree | 023d97e2e476e3e197c840d136e8c6cf8449cded /userland/libc/include/netdb.h | |
parent | 3f8324fde2128c3308f957891262d3372fb57ebf (diff) |
libc: Add gai_strerror
Diffstat (limited to 'userland/libc/include/netdb.h')
-rw-r--r-- | userland/libc/include/netdb.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/userland/libc/include/netdb.h b/userland/libc/include/netdb.h index 4b4dc99..5a613df 100644 --- a/userland/libc/include/netdb.h +++ b/userland/libc/include/netdb.h @@ -1,7 +1,19 @@ #include <arpa/inet.h> #include <sys/socket.h> +#define EAI_AGAIN -1 +#define EAI_BADFLAGS -2 +#define EAI_FAIL -3 +#define EAI_FAMILY -4 +#define EAI_MEMORY -5 +#define EAI_NONAME -6 +#define EAI_SERVICE -7 +#define EAI_SOCKTYPE -8 +#define EAI_SYSTEM -9 +#define EAI_OVERFLOW -10 + int getaddrinfo(const char *restrict node, const char *restrict service, const struct addrinfo *restrict hints, struct addrinfo **restrict res); void freeaddrinfo(struct addrinfo *res); +const char *gai_strerror(int errcode); |