1 /* Generated by ./xlat/gen.sh from ./xlat/scmvals.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(SCM_RIGHTS) || (defined(HAVE_DECL_SCM_RIGHTS) && HAVE_DECL_SCM_RIGHTS)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((SCM_RIGHTS) == (1), "SCM_RIGHTS != 1");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define SCM_RIGHTS 1
12 #endif
13 #if defined(SCM_CREDENTIALS) || (defined(HAVE_DECL_SCM_CREDENTIALS) && HAVE_DECL_SCM_CREDENTIALS)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((SCM_CREDENTIALS) == (2), "SCM_CREDENTIALS != 2");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define SCM_CREDENTIALS 2
19 #endif
20 #if defined(SCM_SECURITY) || (defined(HAVE_DECL_SCM_SECURITY) && HAVE_DECL_SCM_SECURITY)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((SCM_SECURITY) == (3), "SCM_SECURITY != 3");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define SCM_SECURITY 3
26 #endif
27 #ifndef SCM_TIMESTAMP
28 # if defined HPPA
29 #  define SCM_TIMESTAMP 0x4012
30 # elif defined SPARC || defined SPARC64
31 #  define SCM_TIMESTAMP 0x001d
32 # else
33 #  define SCM_TIMESTAMP 29
34 # endif
35 #endif
36 #ifndef SCM_TIMESTAMPNS
37 # if defined HPPA
38 #  define SCM_TIMESTAMPNS 0x4013
39 # elif defined SPARC || defined SPARC64
40 #  define SCM_TIMESTAMPNS 0x0021
41 # else
42 #  define SCM_TIMESTAMPNS 35
43 # endif
44 #endif
45 #ifndef SCM_TIMESTAMPING
46 # if defined HPPA
47 #  define SCM_TIMESTAMPING 0x4020
48 # elif defined SPARC || defined SPARC64
49 #  define SCM_TIMESTAMPING 0x0023
50 # else
51 #  define SCM_TIMESTAMPING 37
52 # endif
53 #endif
54 #ifndef SCM_WIFI_STATUS
55 # if defined HPPA
56 #  define SCM_WIFI_STATUS 0x4022
57 # elif defined SPARC || defined SPARC64
58 #  define SCM_WIFI_STATUS 0x0025
59 # else
60 #  define SCM_WIFI_STATUS 41
61 # endif
62 #endif
63 #ifndef SCM_TIMESTAMPING_OPT_STATS
64 # if defined HPPA
65 #  define SCM_TIMESTAMPING_OPT_STATS 0x402f
66 # elif defined SPARC || defined SPARC64
67 #  define SCM_TIMESTAMPING_OPT_STATS 0x0038
68 # else
69 #  define SCM_TIMESTAMPING_OPT_STATS 54
70 # endif
71 #endif
72 #ifndef SCM_TIMESTAMPING_PKTINFO
73 # if defined HPPA
74 #  define SCM_TIMESTAMPING_PKTINFO 0x4033
75 # elif defined SPARC || defined SPARC64
76 #  define SCM_TIMESTAMPING_PKTINFO 0x003c
77 # else
78 #  define SCM_TIMESTAMPING_PKTINFO 58
79 # endif
80 #endif
81 
82 #ifndef XLAT_MACROS_ONLY
83 
84 # ifdef IN_MPERS
85 
86 #  error static const struct xlat scmvals in mpers mode
87 
88 # else
89 
90 static
91 const struct xlat scmvals[] = {
92  XLAT(SCM_RIGHTS),
93  XLAT(SCM_CREDENTIALS),
94  XLAT(SCM_SECURITY),
95 
96 #ifndef SCM_TIMESTAMP
97 # if defined HPPA
98 #  define SCM_TIMESTAMP 0x4012
99 # elif defined SPARC || defined SPARC64
100 #  define SCM_TIMESTAMP 0x001d
101 # else
102 #  define SCM_TIMESTAMP 29
103 # endif
104 #endif
105 #if defined(SCM_TIMESTAMP) || (defined(HAVE_DECL_SCM_TIMESTAMP) && HAVE_DECL_SCM_TIMESTAMP)
106   XLAT(SCM_TIMESTAMP),
107 #endif
108 
109 #ifndef SCM_TIMESTAMPNS
110 # if defined HPPA
111 #  define SCM_TIMESTAMPNS 0x4013
112 # elif defined SPARC || defined SPARC64
113 #  define SCM_TIMESTAMPNS 0x0021
114 # else
115 #  define SCM_TIMESTAMPNS 35
116 # endif
117 #endif
118 #if defined(SCM_TIMESTAMPNS) || (defined(HAVE_DECL_SCM_TIMESTAMPNS) && HAVE_DECL_SCM_TIMESTAMPNS)
119   XLAT(SCM_TIMESTAMPNS),
120 #endif
121 
122 #ifndef SCM_TIMESTAMPING
123 # if defined HPPA
124 #  define SCM_TIMESTAMPING 0x4020
125 # elif defined SPARC || defined SPARC64
126 #  define SCM_TIMESTAMPING 0x0023
127 # else
128 #  define SCM_TIMESTAMPING 37
129 # endif
130 #endif
131 #if defined(SCM_TIMESTAMPING) || (defined(HAVE_DECL_SCM_TIMESTAMPING) && HAVE_DECL_SCM_TIMESTAMPING)
132   XLAT(SCM_TIMESTAMPING),
133 #endif
134 
135 #ifndef SCM_WIFI_STATUS
136 # if defined HPPA
137 #  define SCM_WIFI_STATUS 0x4022
138 # elif defined SPARC || defined SPARC64
139 #  define SCM_WIFI_STATUS 0x0025
140 # else
141 #  define SCM_WIFI_STATUS 41
142 # endif
143 #endif
144 #if defined(SCM_WIFI_STATUS) || (defined(HAVE_DECL_SCM_WIFI_STATUS) && HAVE_DECL_SCM_WIFI_STATUS)
145   XLAT(SCM_WIFI_STATUS),
146 #endif
147 
148 #ifndef SCM_TIMESTAMPING_OPT_STATS
149 # if defined HPPA
150 #  define SCM_TIMESTAMPING_OPT_STATS 0x402f
151 # elif defined SPARC || defined SPARC64
152 #  define SCM_TIMESTAMPING_OPT_STATS 0x0038
153 # else
154 #  define SCM_TIMESTAMPING_OPT_STATS 54
155 # endif
156 #endif
157 #if defined(SCM_TIMESTAMPING_OPT_STATS) || (defined(HAVE_DECL_SCM_TIMESTAMPING_OPT_STATS) && HAVE_DECL_SCM_TIMESTAMPING_OPT_STATS)
158   XLAT(SCM_TIMESTAMPING_OPT_STATS),
159 #endif
160 
161 #ifndef SCM_TIMESTAMPING_PKTINFO
162 # if defined HPPA
163 #  define SCM_TIMESTAMPING_PKTINFO 0x4033
164 # elif defined SPARC || defined SPARC64
165 #  define SCM_TIMESTAMPING_PKTINFO 0x003c
166 # else
167 #  define SCM_TIMESTAMPING_PKTINFO 58
168 # endif
169 #endif
170 #if defined(SCM_TIMESTAMPING_PKTINFO) || (defined(HAVE_DECL_SCM_TIMESTAMPING_PKTINFO) && HAVE_DECL_SCM_TIMESTAMPING_PKTINFO)
171   XLAT(SCM_TIMESTAMPING_PKTINFO),
172 #endif
173  XLAT_END
174 };
175 
176 # endif /* !IN_MPERS */
177 
178 #endif /* !XLAT_MACROS_ONLY */
179