diff options
author | Andreas Kling <kling@serenityos.org> | 2021-03-27 18:57:30 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-27 18:57:30 +0100 |
commit | 67f89fdc87d014316453ca6137f6ff3145ae89aa (patch) | |
tree | ecb986b786982c59662a32bffe6489e8e8ed1132 | |
parent | 6d993458114b1138f2813b2d007fae0197aadca6 (diff) | |
download | serenity-67f89fdc87d014316453ca6137f6ff3145ae89aa.zip |
LibC: Add POSIX macros for the ai_flags field in struct addrinfo
-rw-r--r-- | Userland/Libraries/LibC/netdb.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Userland/Libraries/LibC/netdb.h b/Userland/Libraries/LibC/netdb.h index 5ae98248be..292ba81c24 100644 --- a/Userland/Libraries/LibC/netdb.h +++ b/Userland/Libraries/LibC/netdb.h @@ -98,6 +98,14 @@ struct addrinfo { #define EAI_SOCKTYPE 10 #define EAI_SYSTEM 11 +#define AI_PASSIVE 0x0001 +#define AI_CANONNAME 0x0002 +#define AI_NUMERICHOST 0x0004 +#define AI_NUMERICSERV 0x0008 +#define AI_V4MAPPED 0x0010 +#define AI_ALL 0x0020 +#define AI_ADDRCONFIG 0x0040 + 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); |