1 /* Generated by ./xlat/gen.sh from ./xlat/sock_rds_options.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(RDS_CANCEL_SENT_TO) || (defined(HAVE_DECL_RDS_CANCEL_SENT_TO) && HAVE_DECL_RDS_CANCEL_SENT_TO)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((RDS_CANCEL_SENT_TO) == (1), "RDS_CANCEL_SENT_TO != 1");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define RDS_CANCEL_SENT_TO 1
12 #endif
13 #if defined(RDS_GET_MR) || (defined(HAVE_DECL_RDS_GET_MR) && HAVE_DECL_RDS_GET_MR)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((RDS_GET_MR) == (2), "RDS_GET_MR != 2");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define RDS_GET_MR 2
19 #endif
20 #if defined(RDS_FREE_MR) || (defined(HAVE_DECL_RDS_FREE_MR) && HAVE_DECL_RDS_FREE_MR)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((RDS_FREE_MR) == (3), "RDS_FREE_MR != 3");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define RDS_FREE_MR 3
26 #endif
27 #if defined(RDS_BARRIER) || (defined(HAVE_DECL_RDS_BARRIER) && HAVE_DECL_RDS_BARRIER)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((RDS_BARRIER) == (4), "RDS_BARRIER != 4");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define RDS_BARRIER 4
33 #endif
34 #if defined(RDS_RECVERR) || (defined(HAVE_DECL_RDS_RECVERR) && HAVE_DECL_RDS_RECVERR)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((RDS_RECVERR) == (5), "RDS_RECVERR != 5");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define RDS_RECVERR 5
40 #endif
41 #if defined(RDS_CONG_MONITOR) || (defined(HAVE_DECL_RDS_CONG_MONITOR) && HAVE_DECL_RDS_CONG_MONITOR)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((RDS_CONG_MONITOR) == (6), "RDS_CONG_MONITOR != 6");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define RDS_CONG_MONITOR 6
47 #endif
48 #if defined(RDS_GET_MR_FOR_DEST) || (defined(HAVE_DECL_RDS_GET_MR_FOR_DEST) && HAVE_DECL_RDS_GET_MR_FOR_DEST)
49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
50 static_assert((RDS_GET_MR_FOR_DEST) == (7), "RDS_GET_MR_FOR_DEST != 7");
51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
52 #else
53 # define RDS_GET_MR_FOR_DEST 7
54 #endif
55 #if defined(SO_RDS_TRANSPORT) || (defined(HAVE_DECL_SO_RDS_TRANSPORT) && HAVE_DECL_SO_RDS_TRANSPORT)
56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
57 static_assert((SO_RDS_TRANSPORT) == (8), "SO_RDS_TRANSPORT != 8");
58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
59 #else
60 # define SO_RDS_TRANSPORT 8
61 #endif
62 #if defined(SO_RDS_MSG_RXPATH_LATENCY) || (defined(HAVE_DECL_SO_RDS_MSG_RXPATH_LATENCY) && HAVE_DECL_SO_RDS_MSG_RXPATH_LATENCY)
63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
64 static_assert((SO_RDS_MSG_RXPATH_LATENCY) == (10), "SO_RDS_MSG_RXPATH_LATENCY != 10");
65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
66 #else
67 # define SO_RDS_MSG_RXPATH_LATENCY 10
68 #endif
69 #ifndef __hppa__
70 #if defined(SO_TIMESTAMP) || (defined(HAVE_DECL_SO_TIMESTAMP) && HAVE_DECL_SO_TIMESTAMP)
71 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
72 static_assert((SO_TIMESTAMP) == (29), "SO_TIMESTAMP != 29");
73 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
74 #else
75 # define SO_TIMESTAMP 29
76 #endif
77 #endif
78 #if defined(RDS_INFO_COUNTERS) || (defined(HAVE_DECL_RDS_INFO_COUNTERS) && HAVE_DECL_RDS_INFO_COUNTERS)
79 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
80 static_assert((RDS_INFO_COUNTERS) == (10000), "RDS_INFO_COUNTERS != 10000");
81 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
82 #else
83 # define RDS_INFO_COUNTERS 10000
84 #endif
85 #if defined(RDS_INFO_CONNECTIONS) || (defined(HAVE_DECL_RDS_INFO_CONNECTIONS) && HAVE_DECL_RDS_INFO_CONNECTIONS)
86 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
87 static_assert((RDS_INFO_CONNECTIONS) == (10001), "RDS_INFO_CONNECTIONS != 10001");
88 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
89 #else
90 # define RDS_INFO_CONNECTIONS 10001
91 #endif
92 #if defined(RDS_INFO_FLOWS) || (defined(HAVE_DECL_RDS_INFO_FLOWS) && HAVE_DECL_RDS_INFO_FLOWS)
93 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
94 static_assert((RDS_INFO_FLOWS) == (10002), "RDS_INFO_FLOWS != 10002");
95 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
96 #else
97 # define RDS_INFO_FLOWS 10002
98 #endif
99 #if defined(RDS_INFO_SEND_MESSAGES) || (defined(HAVE_DECL_RDS_INFO_SEND_MESSAGES) && HAVE_DECL_RDS_INFO_SEND_MESSAGES)
100 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
101 static_assert((RDS_INFO_SEND_MESSAGES) == (10003), "RDS_INFO_SEND_MESSAGES != 10003");
102 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
103 #else
104 # define RDS_INFO_SEND_MESSAGES 10003
105 #endif
106 #if defined(RDS_INFO_RETRANS_MESSAGES) || (defined(HAVE_DECL_RDS_INFO_RETRANS_MESSAGES) && HAVE_DECL_RDS_INFO_RETRANS_MESSAGES)
107 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
108 static_assert((RDS_INFO_RETRANS_MESSAGES) == (10004), "RDS_INFO_RETRANS_MESSAGES != 10004");
109 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
110 #else
111 # define RDS_INFO_RETRANS_MESSAGES 10004
112 #endif
113 #if defined(RDS_INFO_RECV_MESSAGES) || (defined(HAVE_DECL_RDS_INFO_RECV_MESSAGES) && HAVE_DECL_RDS_INFO_RECV_MESSAGES)
114 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
115 static_assert((RDS_INFO_RECV_MESSAGES) == (10005), "RDS_INFO_RECV_MESSAGES != 10005");
116 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
117 #else
118 # define RDS_INFO_RECV_MESSAGES 10005
119 #endif
120 #if defined(RDS_INFO_SOCKETS) || (defined(HAVE_DECL_RDS_INFO_SOCKETS) && HAVE_DECL_RDS_INFO_SOCKETS)
121 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
122 static_assert((RDS_INFO_SOCKETS) == (10006), "RDS_INFO_SOCKETS != 10006");
123 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
124 #else
125 # define RDS_INFO_SOCKETS 10006
126 #endif
127 #if defined(RDS_INFO_TCP_SOCKETS) || (defined(HAVE_DECL_RDS_INFO_TCP_SOCKETS) && HAVE_DECL_RDS_INFO_TCP_SOCKETS)
128 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
129 static_assert((RDS_INFO_TCP_SOCKETS) == (10007), "RDS_INFO_TCP_SOCKETS != 10007");
130 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
131 #else
132 # define RDS_INFO_TCP_SOCKETS 10007
133 #endif
134 #if defined(RDS_INFO_IB_CONNECTIONS) || (defined(HAVE_DECL_RDS_INFO_IB_CONNECTIONS) && HAVE_DECL_RDS_INFO_IB_CONNECTIONS)
135 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
136 static_assert((RDS_INFO_IB_CONNECTIONS) == (10008), "RDS_INFO_IB_CONNECTIONS != 10008");
137 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
138 #else
139 # define RDS_INFO_IB_CONNECTIONS 10008
140 #endif
141 #if defined(RDS_INFO_CONNECTION_STATS) || (defined(HAVE_DECL_RDS_INFO_CONNECTION_STATS) && HAVE_DECL_RDS_INFO_CONNECTION_STATS)
142 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
143 static_assert((RDS_INFO_CONNECTION_STATS) == (10009), "RDS_INFO_CONNECTION_STATS != 10009");
144 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
145 #else
146 # define RDS_INFO_CONNECTION_STATS 10009
147 #endif
148 #if defined(RDS_INFO_IWARP_CONNECTIONS) || (defined(HAVE_DECL_RDS_INFO_IWARP_CONNECTIONS) && HAVE_DECL_RDS_INFO_IWARP_CONNECTIONS)
149 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
150 static_assert((RDS_INFO_IWARP_CONNECTIONS) == (10010), "RDS_INFO_IWARP_CONNECTIONS != 10010");
151 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
152 #else
153 # define RDS_INFO_IWARP_CONNECTIONS 10010
154 #endif
155 #ifdef __hppa__
156 #if defined(SO_TIMESTAMP) || (defined(HAVE_DECL_SO_TIMESTAMP) && HAVE_DECL_SO_TIMESTAMP)
157 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
158 static_assert((SO_TIMESTAMP) == (0x4012), "SO_TIMESTAMP != 0x4012");
159 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
160 #else
161 # define SO_TIMESTAMP 0x4012
162 #endif
163 #endif
164 
165 #ifndef XLAT_MACROS_ONLY
166 
167 # ifdef IN_MPERS
168 
169 #  error static const struct xlat sock_rds_options in mpers mode
170 
171 # else
172 
173 static
174 const struct xlat sock_rds_options[] = {
175  XLAT(RDS_CANCEL_SENT_TO),
176  XLAT(RDS_GET_MR),
177  XLAT(RDS_FREE_MR),
178  XLAT(RDS_BARRIER),
179  XLAT(RDS_RECVERR),
180  XLAT(RDS_CONG_MONITOR),
181  XLAT(RDS_GET_MR_FOR_DEST),
182  XLAT(SO_RDS_TRANSPORT),
183  XLAT(SO_RDS_MSG_RXPATH_LATENCY),
184 
185 #ifndef __hppa__
186  XLAT(SO_TIMESTAMP),
187 #endif
188 
189  XLAT(RDS_INFO_COUNTERS),
190  XLAT(RDS_INFO_CONNECTIONS),
191  XLAT(RDS_INFO_FLOWS),
192  XLAT(RDS_INFO_SEND_MESSAGES),
193  XLAT(RDS_INFO_RETRANS_MESSAGES),
194  XLAT(RDS_INFO_RECV_MESSAGES),
195  XLAT(RDS_INFO_SOCKETS),
196  XLAT(RDS_INFO_TCP_SOCKETS),
197  XLAT(RDS_INFO_IB_CONNECTIONS),
198  XLAT(RDS_INFO_CONNECTION_STATS),
199  XLAT(RDS_INFO_IWARP_CONNECTIONS),
200 
201 #ifdef __hppa__
202  XLAT(SO_TIMESTAMP),
203 #endif
204  XLAT_END
205 };
206 
207 # endif /* !IN_MPERS */
208 
209 #endif /* !XLAT_MACROS_ONLY */
210