1 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3
2 optional-type in_port_t
3 optional-type in_addr_t
7 element {struct hostent} {char*} h_name
8 element {struct hostent} {char**} h_aliases
9 element {struct hostent} int h_addrtype
10 element {struct hostent} int h_length
11 element {struct hostent} {char**} h_addr_list
15 element {struct netent} {char*} n_name
16 element {struct netent} {char**} n_aliases
17 element {struct netent} int n_addrtype
18 element {struct netent} uint32_t n_net
22 type {struct protoent}
24 element {struct protoent} {char*} p_name
25 element {struct protoent} {char**} p_aliases
26 element {struct protoent} int p_proto
30 element {struct servent} {char*} s_name
31 element {struct servent} {char**} s_aliases
32 element {struct servent} int s_port
33 element {struct servent} {char*} s_proto
37 #if !defined XOPEN2K8 && !defined POSIX2008
38 // variable int h_errno
47 #if !defined XPG4 && !defined UNIX98
48 type {struct addrinfo}
49 element {struct addrinfo} int ai_flags
50 element {struct addrinfo} int ai_family
51 element {struct addrinfo} int ai_socktype
52 element {struct addrinfo} int ai_protocol
53 element {struct addrinfo} socklen_t ai_addrlen
54 element {struct addrinfo} {struct sockaddr*} ai_addr
55 element {struct addrinfo} {char*} ai_canonname
56 element {struct addrinfo} {struct addrinfo*} ai_next
84 function void endhostent (void)
85 function void endnetent (void)
86 function void endprotoent (void)
87 function void endservent (void)
88 #if !defined XPG4 && !defined UNIX98
89 function void freeaddrinfo (struct addrinfo*)
90 function {const char*} gai_strerror (int)
91 function int getaddrinfo (const char*, const char*, const struct addrinfo*, struct addrinfo**)
93 function {struct hostent*} gethostbyaddr (const void*, socklen_t, int)
94 function {struct hostent*} gethostbyname (const char*)
95 function {struct hostent*} gethostent (void)
96 #if !defined XPG4 && !defined UNIX98
97 function int getnameinfo (const struct sockaddr*, socklen_t, char*, socklen_t, char*, socklen_t, int)
99 function {struct netent*} getnetbyaddr (uint32_t, int)
100 function {struct netent*} getnetbyname (const char*)
101 function {struct netent*} getnetent (void)
102 function {struct protoent*} getprotobyname (const char *)
103 function {struct protoent*} getprotobynumber (int)
104 function {struct protoent*} getprotoent (void)
105 function {struct servent*} getservbyname (const char*, const char*)
106 function {struct servent*} getservbyport (int, const char*)
107 function {struct servent*} getservent (void)
108 function void sethostent (int)
109 function void setnetent (int)
110 function void setprotoent (int)
111 function void setservent (int)
115 allow-header netinet/in.h
116 allow-header inttypes.h