diff options
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); |