3 #define F(t,n) {t *y = &x.n;}
4 #define C(n) switch(n){case n:;}
16 F(char**, h_addr_list
)
44 F(socklen_t
, ai_addrlen
)
45 F(struct sockaddr
*, ai_addr
)
46 F(char*, ai_canonname
)
47 F(struct addrinfo
*, ai_next
)
72 void(*p_endhostent
)(void) = endhostent
;
73 void(*p_endnetent
)(void) = endnetent
;
74 void(*p_endprotoent
)(void) = endprotoent
;
75 void(*p_endservent
)(void) = endservent
;
76 const char*(*p_gai_strerror
)(int) = gai_strerror
;
77 struct hostent
*(*p_gethostent
)(void) = gethostent
;
78 struct netent
*(*p_getnetbyaddr
)(uint32_t,int) = getnetbyaddr
;
79 struct netent
*(*p_getnetbyname
)(const char*) = getnetbyname
;
80 struct netent
*(*p_getnetent
)(void) = getnetent
;
81 struct protoent
*(*p_getprotobyname
)(const char*) = getprotobyname
;
82 struct protoent
*(*p_getprotobynumber
)(int) = getprotobynumber
;
83 struct protoent
*(*p_getprotoent
)(void) = getprotoent
;
84 struct servent
*(*p_getservbyname
)(const char*,const char*) = getservbyname
;
85 struct servent
*(*p_getservbyport
)(int,const char*) = getservbyport
;
86 struct servent
*(*p_getservent
)(void) = getservent
;
87 void(*p_sethostent
)(int) = sethostent
;
88 void(*p_setnetent
)(int) = setnetent
;
89 void(*p_setprotoent
)(int) = setprotoent
;
90 void(*p_setservent
)(int) = setservent
;