elf/Makefile: Split and sort PIE tests
[glibc.git] / conform / data / netdb.h-data
blobc6d8b70a0deea5f6e9f2a385bcd19ba3d172d882
1 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG4
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 // Bug 21260: n_net has wrong type.
19 xfail[alpha-linux]-element {struct netent} uint32_t n_net
21 type uint32_t
23 type {struct protoent}
25 element {struct protoent} {char*} p_name
26 element {struct protoent} {char**} p_aliases
27 element {struct protoent} int p_proto
29 type {struct servent}
31 element {struct servent} {char*} s_name
32 element {struct servent} {char**} s_aliases
33 element {struct servent} int s_port
34 element {struct servent} {char*} s_proto
36 macro IPPORT_RESERVED
38 #if !defined XOPEN2K8 && !defined POSIX2008
39 // variable int h_errno
40 allow h_errno
42 macro HOST_NOT_FOUND
43 macro NO_DATA
44 macro NO_RECOVERY
45 macro TRY_AGAIN
46 #endif
48 #if !defined XPG42 && !defined UNIX98
49 type {struct addrinfo}
50 element {struct addrinfo} int ai_flags
51 element {struct addrinfo} int ai_family
52 element {struct addrinfo} int ai_socktype
53 element {struct addrinfo} int ai_protocol
54 element {struct addrinfo} socklen_t ai_addrlen
55 element {struct addrinfo} {struct sockaddr*} ai_addr
56 element {struct addrinfo} {char*} ai_canonname
57 element {struct addrinfo} {struct addrinfo*} ai_next
59 macro AI_PASSIVE
60 macro AI_CANONNAME
61 macro AI_NUMERICHOST
62 macro AI_V4MAPPED
63 macro AI_ALL
64 macro AI_ADDRCONFIG
65 macro AI_NUMERICSERV
67 macro NI_NOFQDN
68 macro NI_NUMERICHOST
69 macro NI_NAMEREQD
70 macro NI_NUMERICSERV
71 macro NI_DGRAM
73 macro EAI_AGAIN
74 macro EAI_BADFLAGS
75 macro EAI_FAIL
76 macro EAI_FAMILY
77 macro EAI_MEMORY
78 macro EAI_NONAME
79 macro EAI_SERVICE
80 macro EAI_SOCKTYPE
81 macro EAI_SYSTEM
82 macro EAI_OVERFLOW
83 #endif
85 function void endhostent (void)
86 function void endnetent (void)
87 function void endprotoent (void)
88 function void endservent (void)
89 #if !defined XPG42 && !defined UNIX98
90 function void freeaddrinfo (struct addrinfo*)
91 function {const char*} gai_strerror (int)
92 function int getaddrinfo (const char*, const char*, const struct addrinfo*, struct addrinfo**)
93 #endif
94 function {struct hostent*} gethostbyaddr (const void*, socklen_t, int)
95 function {struct hostent*} gethostbyname (const char*)
96 function {struct hostent*} gethostent (void)
97 #if !defined XPG42 && !defined UNIX98
98 function int getnameinfo (const struct sockaddr*, socklen_t, char*, socklen_t, char*, socklen_t, int)
99 #endif
100 function {struct netent*} getnetbyaddr (uint32_t, int)
101 function {struct netent*} getnetbyname (const char*)
102 function {struct netent*} getnetent (void)
103 function {struct protoent*} getprotobyname (const char *)
104 function {struct protoent*} getprotobynumber (int)
105 function {struct protoent*} getprotoent (void)
106 function {struct servent*} getservbyname (const char*, const char*)
107 function {struct servent*} getservbyport (int, const char*)
108 function {struct servent*} getservent (void)
109 function void sethostent (int)
110 function void setnetent (int)
111 function void setprotoent (int)
112 function void setservent (int)
114 type socklen_t
116 allow-header netinet/in.h
117 allow-header inttypes.h
118 #endif