• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Generated by ./xlat/gen.sh from ./xlat/adjtimex_modes.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(ADJ_OFFSET_SS_READ) || (defined(HAVE_DECL_ADJ_OFFSET_SS_READ) && HAVE_DECL_ADJ_OFFSET_SS_READ)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((ADJ_OFFSET_SS_READ) == (0xa001), "ADJ_OFFSET_SS_READ != 0xa001");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define ADJ_OFFSET_SS_READ 0xa001
12 #endif
13 #if defined(ADJ_OFFSET_SINGLESHOT) || (defined(HAVE_DECL_ADJ_OFFSET_SINGLESHOT) && HAVE_DECL_ADJ_OFFSET_SINGLESHOT)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((ADJ_OFFSET_SINGLESHOT) == (0x8001), "ADJ_OFFSET_SINGLESHOT != 0x8001");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define ADJ_OFFSET_SINGLESHOT 0x8001
19 #endif
20 #if defined(ADJ_OFFSET) || (defined(HAVE_DECL_ADJ_OFFSET) && HAVE_DECL_ADJ_OFFSET)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((ADJ_OFFSET) == (0x0001), "ADJ_OFFSET != 0x0001");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define ADJ_OFFSET 0x0001
26 #endif
27 #if defined(ADJ_FREQUENCY) || (defined(HAVE_DECL_ADJ_FREQUENCY) && HAVE_DECL_ADJ_FREQUENCY)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((ADJ_FREQUENCY) == (0x0002), "ADJ_FREQUENCY != 0x0002");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define ADJ_FREQUENCY 0x0002
33 #endif
34 #if defined(ADJ_MAXERROR) || (defined(HAVE_DECL_ADJ_MAXERROR) && HAVE_DECL_ADJ_MAXERROR)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((ADJ_MAXERROR) == (0x0004), "ADJ_MAXERROR != 0x0004");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define ADJ_MAXERROR 0x0004
40 #endif
41 #if defined(ADJ_ESTERROR) || (defined(HAVE_DECL_ADJ_ESTERROR) && HAVE_DECL_ADJ_ESTERROR)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((ADJ_ESTERROR) == (0x0008), "ADJ_ESTERROR != 0x0008");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define ADJ_ESTERROR 0x0008
47 #endif
48 #if defined(ADJ_STATUS) || (defined(HAVE_DECL_ADJ_STATUS) && HAVE_DECL_ADJ_STATUS)
49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
50 static_assert((ADJ_STATUS) == (0x0010), "ADJ_STATUS != 0x0010");
51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
52 #else
53 # define ADJ_STATUS 0x0010
54 #endif
55 #if defined(ADJ_TIMECONST) || (defined(HAVE_DECL_ADJ_TIMECONST) && HAVE_DECL_ADJ_TIMECONST)
56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
57 static_assert((ADJ_TIMECONST) == (0x0020), "ADJ_TIMECONST != 0x0020");
58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
59 #else
60 # define ADJ_TIMECONST 0x0020
61 #endif
62 #if defined(ADJ_TAI) || (defined(HAVE_DECL_ADJ_TAI) && HAVE_DECL_ADJ_TAI)
63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
64 static_assert((ADJ_TAI) == (0x0080), "ADJ_TAI != 0x0080");
65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
66 #else
67 # define ADJ_TAI 0x0080
68 #endif
69 #if defined(ADJ_SETOFFSET) || (defined(HAVE_DECL_ADJ_SETOFFSET) && HAVE_DECL_ADJ_SETOFFSET)
70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
71 static_assert((ADJ_SETOFFSET) == (0x0100), "ADJ_SETOFFSET != 0x0100");
72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
73 #else
74 # define ADJ_SETOFFSET 0x0100
75 #endif
76 #if defined(ADJ_MICRO) || (defined(HAVE_DECL_ADJ_MICRO) && HAVE_DECL_ADJ_MICRO)
77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
78 static_assert((ADJ_MICRO) == (0x1000), "ADJ_MICRO != 0x1000");
79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
80 #else
81 # define ADJ_MICRO 0x1000
82 #endif
83 #if defined(ADJ_NANO) || (defined(HAVE_DECL_ADJ_NANO) && HAVE_DECL_ADJ_NANO)
84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
85 static_assert((ADJ_NANO) == (0x2000), "ADJ_NANO != 0x2000");
86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
87 #else
88 # define ADJ_NANO 0x2000
89 #endif
90 #if defined(ADJ_TICK) || (defined(HAVE_DECL_ADJ_TICK) && HAVE_DECL_ADJ_TICK)
91 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
92 static_assert((ADJ_TICK) == (0x4000), "ADJ_TICK != 0x4000");
93 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
94 #else
95 # define ADJ_TICK 0x4000
96 #endif
97 
98 #ifndef XLAT_MACROS_ONLY
99 
100 # ifdef IN_MPERS
101 
102 extern const struct xlat adjtimex_modes[];
103 
104 # else
105 
106 #  if !(defined HAVE_M32_MPERS || defined HAVE_MX32_MPERS)
107 static
108 #  endif
109 const struct xlat adjtimex_modes[] = {
110  XLAT(ADJ_OFFSET_SS_READ),
111  XLAT(ADJ_OFFSET_SINGLESHOT),
112  XLAT(ADJ_OFFSET),
113  XLAT(ADJ_FREQUENCY),
114  XLAT(ADJ_MAXERROR),
115  XLAT(ADJ_ESTERROR),
116  XLAT(ADJ_STATUS),
117  XLAT(ADJ_TIMECONST),
118  XLAT(ADJ_TAI),
119  XLAT(ADJ_SETOFFSET),
120  XLAT(ADJ_MICRO),
121  XLAT(ADJ_NANO),
122  XLAT(ADJ_TICK),
123  XLAT_END
124 };
125 
126 # endif /* !IN_MPERS */
127 
128 #endif /* !XLAT_MACROS_ONLY */
129