2004-11-18 Alexandre Oliva <aoliva@redhat.com>
[glibc.git] / conform / data / netdb.h-data
blobd07846c636f3021580daea34bab0dcefa878c635
1 #ifndef ISO
2 optional-type in_port_t
3 optional-type in_addr_t
5 type {struct hostent}
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
13 type {struct netent}
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
20 type uint32_t
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
28 type {struct servent}
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
35 macro IPPORT_RESERVED
37 // variable int h_errno
38 allow h_errno
40 macro HOST_NOT_FOUND
41 macro NO_DATA
42 macro NO_RECOVERY
43 macro TRY_AGAIN
45 type {struct addrinfo}
46 element {struct addrinfo} int ai_flags
47 element {struct addrinfo} int ai_family
48 element {struct addrinfo} int ai_socktype
49 element {struct addrinfo} int ai_protocol
50 element {struct addrinfo} socklen_t ai_addrlen
51 element {struct addrinfo} {struct sockaddr*} ai_addr
52 element {struct addrinfo} {char*} ai_canonname
53 element {struct addrinfo} {struct addrinfo*} ai_next
55 macro AI_PASSIVE
56 macro AI_CANONNAME
57 macro AI_NUMERICHOST
59 macro NI_NOFQDN
60 macro NI_NUMERICHOST
61 macro NI_NAMEREQD
62 macro NI_NUMERICSERV
63 macro NI_DGRAM
65 macro EAI_AGAIN
66 macro EAI_BADFLAGS
67 macro EAI_FAIL
68 macro EAI_FAMILY
69 macro EAI_MEMORY
70 macro EAI_NONAME
71 macro EAI_SERVICE
72 macro EAI_SOCKTYPE
73 macro EAI_SYSTEM
75 function void endhostent (void)
76 function void endnetent (void)
77 function void endprotoent (void)
78 function void endservent (void)
79 function void freeaddrinfo (struct addrinfo*)
80 function {const char*} gai_strerror (int)
81 function int getaddrinfo (const char*, const char*, const struct addrinfo*, struct addrinfo**)
82 function {struct hostent*} gethostbyaddr (const void*, socklen_t, int)
83 function {struct hostent*} gethostbyname (const char*)
84 function {struct hostent*} gethostent (void)
85 function int getnameinfo (const struct sockaddr*, socklen_t, char*, socklen_t, char*, socklen_t, unsigned)
86 function {struct netent*} getnetbyaddr (uint32_t, int)
87 function {struct netent*} getnetbyname (const char*)
88 function {struct netent*} getnetent (void)
89 function {struct protoent*} getprotobyname (const char *)
90 function {struct protoent*} getprotobynumber (int)
91 function {struct protoent*} getprotoent (void)
92 function {struct servent*} getservbyname (const char*, const char*)
93 function {struct servent*} getservbyport (int, const char*)
94 function {struct servent*} getservent (void)
95 function void sethostent (int)
96 function void setnetent (int)
97 function void setprotoent (int)
98 function void setservent (int)
100 type socklen_t
102 allow-header netinet/in.h
103 allow-header inttypes.h
104 #endif