• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Generated by ./xlat/gen.sh from ./xlat/addrfams.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(AF_UNSPEC) || (defined(HAVE_DECL_AF_UNSPEC) && HAVE_DECL_AF_UNSPEC)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((AF_UNSPEC) == (0), "AF_UNSPEC != 0");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define AF_UNSPEC 0
12 #endif
13 #if defined(AF_UNIX) || (defined(HAVE_DECL_AF_UNIX) && HAVE_DECL_AF_UNIX)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((AF_UNIX) == (1), "AF_UNIX != 1");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define AF_UNIX 1
19 #endif
20 #if defined(AF_INET) || (defined(HAVE_DECL_AF_INET) && HAVE_DECL_AF_INET)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((AF_INET) == (2), "AF_INET != 2");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define AF_INET 2
26 #endif
27 #if defined(AF_AX25) || (defined(HAVE_DECL_AF_AX25) && HAVE_DECL_AF_AX25)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((AF_AX25) == (3), "AF_AX25 != 3");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define AF_AX25 3
33 #endif
34 #if defined(AF_IPX) || (defined(HAVE_DECL_AF_IPX) && HAVE_DECL_AF_IPX)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((AF_IPX) == (4), "AF_IPX != 4");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define AF_IPX 4
40 #endif
41 #if defined(AF_APPLETALK) || (defined(HAVE_DECL_AF_APPLETALK) && HAVE_DECL_AF_APPLETALK)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((AF_APPLETALK) == (5), "AF_APPLETALK != 5");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define AF_APPLETALK 5
47 #endif
48 #if defined(AF_NETROM) || (defined(HAVE_DECL_AF_NETROM) && HAVE_DECL_AF_NETROM)
49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
50 static_assert((AF_NETROM) == (6), "AF_NETROM != 6");
51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
52 #else
53 # define AF_NETROM 6
54 #endif
55 #if defined(AF_BRIDGE) || (defined(HAVE_DECL_AF_BRIDGE) && HAVE_DECL_AF_BRIDGE)
56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
57 static_assert((AF_BRIDGE) == (7), "AF_BRIDGE != 7");
58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
59 #else
60 # define AF_BRIDGE 7
61 #endif
62 #if defined(AF_ATMPVC) || (defined(HAVE_DECL_AF_ATMPVC) && HAVE_DECL_AF_ATMPVC)
63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
64 static_assert((AF_ATMPVC) == (8), "AF_ATMPVC != 8");
65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
66 #else
67 # define AF_ATMPVC 8
68 #endif
69 #if defined(AF_X25) || (defined(HAVE_DECL_AF_X25) && HAVE_DECL_AF_X25)
70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
71 static_assert((AF_X25) == (9), "AF_X25 != 9");
72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
73 #else
74 # define AF_X25 9
75 #endif
76 #if defined(AF_INET6) || (defined(HAVE_DECL_AF_INET6) && HAVE_DECL_AF_INET6)
77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
78 static_assert((AF_INET6) == (10), "AF_INET6 != 10");
79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
80 #else
81 # define AF_INET6 10
82 #endif
83 #if defined(AF_ROSE) || (defined(HAVE_DECL_AF_ROSE) && HAVE_DECL_AF_ROSE)
84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
85 static_assert((AF_ROSE) == (11), "AF_ROSE != 11");
86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
87 #else
88 # define AF_ROSE 11
89 #endif
90 #if defined(AF_DECnet) || (defined(HAVE_DECL_AF_DECnet) && HAVE_DECL_AF_DECnet)
91 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
92 static_assert((AF_DECnet) == (12), "AF_DECnet != 12");
93 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
94 #else
95 # define AF_DECnet 12
96 #endif
97 #if defined(AF_NETBEUI) || (defined(HAVE_DECL_AF_NETBEUI) && HAVE_DECL_AF_NETBEUI)
98 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
99 static_assert((AF_NETBEUI) == (13), "AF_NETBEUI != 13");
100 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
101 #else
102 # define AF_NETBEUI 13
103 #endif
104 #if defined(AF_SECURITY) || (defined(HAVE_DECL_AF_SECURITY) && HAVE_DECL_AF_SECURITY)
105 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
106 static_assert((AF_SECURITY) == (14), "AF_SECURITY != 14");
107 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
108 #else
109 # define AF_SECURITY 14
110 #endif
111 #if defined(AF_KEY) || (defined(HAVE_DECL_AF_KEY) && HAVE_DECL_AF_KEY)
112 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
113 static_assert((AF_KEY) == (15), "AF_KEY != 15");
114 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
115 #else
116 # define AF_KEY 15
117 #endif
118 #if defined(AF_NETLINK) || (defined(HAVE_DECL_AF_NETLINK) && HAVE_DECL_AF_NETLINK)
119 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
120 static_assert((AF_NETLINK) == (16), "AF_NETLINK != 16");
121 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
122 #else
123 # define AF_NETLINK 16
124 #endif
125 #if defined(AF_PACKET) || (defined(HAVE_DECL_AF_PACKET) && HAVE_DECL_AF_PACKET)
126 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
127 static_assert((AF_PACKET) == (17), "AF_PACKET != 17");
128 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
129 #else
130 # define AF_PACKET 17
131 #endif
132 #if defined(AF_ASH) || (defined(HAVE_DECL_AF_ASH) && HAVE_DECL_AF_ASH)
133 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
134 static_assert((AF_ASH) == (18), "AF_ASH != 18");
135 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
136 #else
137 # define AF_ASH 18
138 #endif
139 #if defined(AF_ECONET) || (defined(HAVE_DECL_AF_ECONET) && HAVE_DECL_AF_ECONET)
140 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
141 static_assert((AF_ECONET) == (19), "AF_ECONET != 19");
142 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
143 #else
144 # define AF_ECONET 19
145 #endif
146 #if defined(AF_ATMSVC) || (defined(HAVE_DECL_AF_ATMSVC) && HAVE_DECL_AF_ATMSVC)
147 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
148 static_assert((AF_ATMSVC) == (20), "AF_ATMSVC != 20");
149 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
150 #else
151 # define AF_ATMSVC 20
152 #endif
153 #if defined(AF_RDS) || (defined(HAVE_DECL_AF_RDS) && HAVE_DECL_AF_RDS)
154 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
155 static_assert((AF_RDS) == (21), "AF_RDS != 21");
156 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
157 #else
158 # define AF_RDS 21
159 #endif
160 #if defined(AF_SNA) || (defined(HAVE_DECL_AF_SNA) && HAVE_DECL_AF_SNA)
161 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
162 static_assert((AF_SNA) == (22), "AF_SNA != 22");
163 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
164 #else
165 # define AF_SNA 22
166 #endif
167 #if defined(AF_IRDA) || (defined(HAVE_DECL_AF_IRDA) && HAVE_DECL_AF_IRDA)
168 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
169 static_assert((AF_IRDA) == (23), "AF_IRDA != 23");
170 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
171 #else
172 # define AF_IRDA 23
173 #endif
174 #if defined(AF_PPPOX) || (defined(HAVE_DECL_AF_PPPOX) && HAVE_DECL_AF_PPPOX)
175 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
176 static_assert((AF_PPPOX) == (24), "AF_PPPOX != 24");
177 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
178 #else
179 # define AF_PPPOX 24
180 #endif
181 #if defined(AF_WANPIPE) || (defined(HAVE_DECL_AF_WANPIPE) && HAVE_DECL_AF_WANPIPE)
182 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
183 static_assert((AF_WANPIPE) == (25), "AF_WANPIPE != 25");
184 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
185 #else
186 # define AF_WANPIPE 25
187 #endif
188 #if defined(AF_LLC) || (defined(HAVE_DECL_AF_LLC) && HAVE_DECL_AF_LLC)
189 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
190 static_assert((AF_LLC) == (26), "AF_LLC != 26");
191 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
192 #else
193 # define AF_LLC 26
194 #endif
195 #if defined(AF_IB) || (defined(HAVE_DECL_AF_IB) && HAVE_DECL_AF_IB)
196 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
197 static_assert((AF_IB) == (27), "AF_IB != 27");
198 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
199 #else
200 # define AF_IB 27
201 #endif
202 #if defined(AF_MPLS) || (defined(HAVE_DECL_AF_MPLS) && HAVE_DECL_AF_MPLS)
203 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
204 static_assert((AF_MPLS) == (28), "AF_MPLS != 28");
205 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
206 #else
207 # define AF_MPLS 28
208 #endif
209 #if defined(AF_CAN) || (defined(HAVE_DECL_AF_CAN) && HAVE_DECL_AF_CAN)
210 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
211 static_assert((AF_CAN) == (29), "AF_CAN != 29");
212 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
213 #else
214 # define AF_CAN 29
215 #endif
216 #if defined(AF_TIPC) || (defined(HAVE_DECL_AF_TIPC) && HAVE_DECL_AF_TIPC)
217 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
218 static_assert((AF_TIPC) == (30), "AF_TIPC != 30");
219 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
220 #else
221 # define AF_TIPC 30
222 #endif
223 #if defined(AF_BLUETOOTH) || (defined(HAVE_DECL_AF_BLUETOOTH) && HAVE_DECL_AF_BLUETOOTH)
224 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
225 static_assert((AF_BLUETOOTH) == (31), "AF_BLUETOOTH != 31");
226 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
227 #else
228 # define AF_BLUETOOTH 31
229 #endif
230 #if defined(AF_IUCV) || (defined(HAVE_DECL_AF_IUCV) && HAVE_DECL_AF_IUCV)
231 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
232 static_assert((AF_IUCV) == (32), "AF_IUCV != 32");
233 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
234 #else
235 # define AF_IUCV 32
236 #endif
237 #if defined(AF_RXRPC) || (defined(HAVE_DECL_AF_RXRPC) && HAVE_DECL_AF_RXRPC)
238 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
239 static_assert((AF_RXRPC) == (33), "AF_RXRPC != 33");
240 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
241 #else
242 # define AF_RXRPC 33
243 #endif
244 #if defined(AF_ISDN) || (defined(HAVE_DECL_AF_ISDN) && HAVE_DECL_AF_ISDN)
245 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
246 static_assert((AF_ISDN) == (34), "AF_ISDN != 34");
247 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
248 #else
249 # define AF_ISDN 34
250 #endif
251 #if defined(AF_PHONET) || (defined(HAVE_DECL_AF_PHONET) && HAVE_DECL_AF_PHONET)
252 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
253 static_assert((AF_PHONET) == (35), "AF_PHONET != 35");
254 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
255 #else
256 # define AF_PHONET 35
257 #endif
258 #if defined(AF_IEEE802154) || (defined(HAVE_DECL_AF_IEEE802154) && HAVE_DECL_AF_IEEE802154)
259 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
260 static_assert((AF_IEEE802154) == (36), "AF_IEEE802154 != 36");
261 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
262 #else
263 # define AF_IEEE802154 36
264 #endif
265 #if defined(AF_CAIF) || (defined(HAVE_DECL_AF_CAIF) && HAVE_DECL_AF_CAIF)
266 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
267 static_assert((AF_CAIF) == (37), "AF_CAIF != 37");
268 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
269 #else
270 # define AF_CAIF 37
271 #endif
272 #if defined(AF_ALG) || (defined(HAVE_DECL_AF_ALG) && HAVE_DECL_AF_ALG)
273 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
274 static_assert((AF_ALG) == (38), "AF_ALG != 38");
275 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
276 #else
277 # define AF_ALG 38
278 #endif
279 #if defined(AF_NFC) || (defined(HAVE_DECL_AF_NFC) && HAVE_DECL_AF_NFC)
280 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
281 static_assert((AF_NFC) == (39), "AF_NFC != 39");
282 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
283 #else
284 # define AF_NFC 39
285 #endif
286 #if defined(AF_VSOCK) || (defined(HAVE_DECL_AF_VSOCK) && HAVE_DECL_AF_VSOCK)
287 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
288 static_assert((AF_VSOCK) == (40), "AF_VSOCK != 40");
289 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
290 #else
291 # define AF_VSOCK 40
292 #endif
293 #if defined(AF_KCM) || (defined(HAVE_DECL_AF_KCM) && HAVE_DECL_AF_KCM)
294 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
295 static_assert((AF_KCM) == (41), "AF_KCM != 41");
296 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
297 #else
298 # define AF_KCM 41
299 #endif
300 #if defined(AF_QIPCRTR) || (defined(HAVE_DECL_AF_QIPCRTR) && HAVE_DECL_AF_QIPCRTR)
301 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
302 static_assert((AF_QIPCRTR) == (42), "AF_QIPCRTR != 42");
303 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
304 #else
305 # define AF_QIPCRTR 42
306 #endif
307 #if defined(AF_SMC) || (defined(HAVE_DECL_AF_SMC) && HAVE_DECL_AF_SMC)
308 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
309 static_assert((AF_SMC) == (43), "AF_SMC != 43");
310 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
311 #else
312 # define AF_SMC 43
313 #endif
314 #if defined(AF_XDP) || (defined(HAVE_DECL_AF_XDP) && HAVE_DECL_AF_XDP)
315 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
316 static_assert((AF_XDP) == (44), "AF_XDP != 44");
317 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
318 #else
319 # define AF_XDP 44
320 #endif
321 
322 #ifndef XLAT_MACROS_ONLY
323 
324 # ifndef IN_MPERS
325 
326 const struct xlat addrfams[] = {
327  [AF_UNSPEC] = XLAT(AF_UNSPEC),
328  [AF_UNIX] = XLAT(AF_UNIX),
329  [AF_INET] = XLAT(AF_INET),
330  [AF_AX25] = XLAT(AF_AX25),
331  [AF_IPX] = XLAT(AF_IPX),
332  [AF_APPLETALK] = XLAT(AF_APPLETALK),
333  [AF_NETROM] = XLAT(AF_NETROM),
334  [AF_BRIDGE] = XLAT(AF_BRIDGE),
335  [AF_ATMPVC] = XLAT(AF_ATMPVC),
336  [AF_X25] = XLAT(AF_X25),
337  [AF_INET6] = XLAT(AF_INET6),
338  [AF_ROSE] = XLAT(AF_ROSE),
339  [AF_DECnet] = XLAT(AF_DECnet),
340  [AF_NETBEUI] = XLAT(AF_NETBEUI),
341  [AF_SECURITY] = XLAT(AF_SECURITY),
342  [AF_KEY] = XLAT(AF_KEY),
343  [AF_NETLINK] = XLAT(AF_NETLINK),
344  [AF_PACKET] = XLAT(AF_PACKET),
345  [AF_ASH] = XLAT(AF_ASH),
346  [AF_ECONET] = XLAT(AF_ECONET),
347  [AF_ATMSVC] = XLAT(AF_ATMSVC),
348  [AF_RDS] = XLAT(AF_RDS),
349  [AF_SNA] = XLAT(AF_SNA),
350  [AF_IRDA] = XLAT(AF_IRDA),
351  [AF_PPPOX] = XLAT(AF_PPPOX),
352  [AF_WANPIPE] = XLAT(AF_WANPIPE),
353  [AF_LLC] = XLAT(AF_LLC),
354  [AF_IB] = XLAT(AF_IB),
355  [AF_MPLS] = XLAT(AF_MPLS),
356  [AF_CAN] = XLAT(AF_CAN),
357  [AF_TIPC] = XLAT(AF_TIPC),
358  [AF_BLUETOOTH] = XLAT(AF_BLUETOOTH),
359  [AF_IUCV] = XLAT(AF_IUCV),
360  [AF_RXRPC] = XLAT(AF_RXRPC),
361  [AF_ISDN] = XLAT(AF_ISDN),
362  [AF_PHONET] = XLAT(AF_PHONET),
363  [AF_IEEE802154] = XLAT(AF_IEEE802154),
364  [AF_CAIF] = XLAT(AF_CAIF),
365  [AF_ALG] = XLAT(AF_ALG),
366  [AF_NFC] = XLAT(AF_NFC),
367  [AF_VSOCK] = XLAT(AF_VSOCK),
368  [AF_KCM] = XLAT(AF_KCM),
369  [AF_QIPCRTR] = XLAT(AF_QIPCRTR),
370  [AF_SMC] = XLAT(AF_SMC),
371  [AF_XDP] = XLAT(AF_XDP),
372  XLAT_END
373 };
374 
375 # endif /* !IN_MPERS */
376 
377 #endif /* !XLAT_MACROS_ONLY */
378