mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:57:35 +00:00
LibC: Add NI_MAXHOST and NI_MAXSERV constants
These are not POSIX-defined but are almost always present in <netdb.h>.
This commit is contained in:
parent
143c68755b
commit
7f1f6d96b4
1 changed files with 3 additions and 0 deletions
|
@ -106,6 +106,9 @@ struct addrinfo {
|
||||||
#define AI_ALL 0x0020
|
#define AI_ALL 0x0020
|
||||||
#define AI_ADDRCONFIG 0x0040
|
#define AI_ADDRCONFIG 0x0040
|
||||||
|
|
||||||
|
#define NI_MAXHOST 1025
|
||||||
|
#define NI_MAXSERV 32
|
||||||
|
|
||||||
int getaddrinfo(const char* __restrict node, const char* __restrict service, const struct addrinfo* __restrict hints, struct addrinfo** __restrict res);
|
int getaddrinfo(const char* __restrict node, const char* __restrict service, const struct addrinfo* __restrict hints, struct addrinfo** __restrict res);
|
||||||
void freeaddrinfo(struct addrinfo* res);
|
void freeaddrinfo(struct addrinfo* res);
|
||||||
const char* gai_strerror(int errcode);
|
const char* gai_strerror(int errcode);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue