(root)/
strace-6.5/
src/
xlat/
adjtimex_status.h
       1  /* Generated by ./src/xlat/gen.sh from ./src/xlat/adjtimex_status.in; do not edit. */
       2  
       3  #include "gcc_compat.h"
       4  #include "static_assert.h"
       5  
       6  #if defined(STA_PLL) || (defined(HAVE_DECL_STA_PLL) && HAVE_DECL_STA_PLL)
       7  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
       8  static_assert((STA_PLL) == (0x0001), "STA_PLL != 0x0001");
       9  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      10  #else
      11  # define STA_PLL 0x0001
      12  #endif
      13  #if defined(STA_PPSFREQ) || (defined(HAVE_DECL_STA_PPSFREQ) && HAVE_DECL_STA_PPSFREQ)
      14  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      15  static_assert((STA_PPSFREQ) == (0x0002), "STA_PPSFREQ != 0x0002");
      16  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      17  #else
      18  # define STA_PPSFREQ 0x0002
      19  #endif
      20  #if defined(STA_PPSTIME) || (defined(HAVE_DECL_STA_PPSTIME) && HAVE_DECL_STA_PPSTIME)
      21  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      22  static_assert((STA_PPSTIME) == (0x0004), "STA_PPSTIME != 0x0004");
      23  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      24  #else
      25  # define STA_PPSTIME 0x0004
      26  #endif
      27  #if defined(STA_FLL) || (defined(HAVE_DECL_STA_FLL) && HAVE_DECL_STA_FLL)
      28  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      29  static_assert((STA_FLL) == (0x0008), "STA_FLL != 0x0008");
      30  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      31  #else
      32  # define STA_FLL 0x0008
      33  #endif
      34  #if defined(STA_INS) || (defined(HAVE_DECL_STA_INS) && HAVE_DECL_STA_INS)
      35  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      36  static_assert((STA_INS) == (0x0010), "STA_INS != 0x0010");
      37  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      38  #else
      39  # define STA_INS 0x0010
      40  #endif
      41  #if defined(STA_DEL) || (defined(HAVE_DECL_STA_DEL) && HAVE_DECL_STA_DEL)
      42  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      43  static_assert((STA_DEL) == (0x0020), "STA_DEL != 0x0020");
      44  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      45  #else
      46  # define STA_DEL 0x0020
      47  #endif
      48  #if defined(STA_UNSYNC) || (defined(HAVE_DECL_STA_UNSYNC) && HAVE_DECL_STA_UNSYNC)
      49  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      50  static_assert((STA_UNSYNC) == (0x0040), "STA_UNSYNC != 0x0040");
      51  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      52  #else
      53  # define STA_UNSYNC 0x0040
      54  #endif
      55  #if defined(STA_FREQHOLD) || (defined(HAVE_DECL_STA_FREQHOLD) && HAVE_DECL_STA_FREQHOLD)
      56  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      57  static_assert((STA_FREQHOLD) == (0x0080), "STA_FREQHOLD != 0x0080");
      58  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      59  #else
      60  # define STA_FREQHOLD 0x0080
      61  #endif
      62  #if defined(STA_PPSSIGNAL) || (defined(HAVE_DECL_STA_PPSSIGNAL) && HAVE_DECL_STA_PPSSIGNAL)
      63  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      64  static_assert((STA_PPSSIGNAL) == (0x0100), "STA_PPSSIGNAL != 0x0100");
      65  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      66  #else
      67  # define STA_PPSSIGNAL 0x0100
      68  #endif
      69  #if defined(STA_PPSJITTER) || (defined(HAVE_DECL_STA_PPSJITTER) && HAVE_DECL_STA_PPSJITTER)
      70  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      71  static_assert((STA_PPSJITTER) == (0x0200), "STA_PPSJITTER != 0x0200");
      72  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      73  #else
      74  # define STA_PPSJITTER 0x0200
      75  #endif
      76  #if defined(STA_PPSWANDER) || (defined(HAVE_DECL_STA_PPSWANDER) && HAVE_DECL_STA_PPSWANDER)
      77  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      78  static_assert((STA_PPSWANDER) == (0x0400), "STA_PPSWANDER != 0x0400");
      79  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      80  #else
      81  # define STA_PPSWANDER 0x0400
      82  #endif
      83  #if defined(STA_PPSERROR) || (defined(HAVE_DECL_STA_PPSERROR) && HAVE_DECL_STA_PPSERROR)
      84  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      85  static_assert((STA_PPSERROR) == (0x0800), "STA_PPSERROR != 0x0800");
      86  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      87  #else
      88  # define STA_PPSERROR 0x0800
      89  #endif
      90  #if defined(STA_CLOCKERR) || (defined(HAVE_DECL_STA_CLOCKERR) && HAVE_DECL_STA_CLOCKERR)
      91  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      92  static_assert((STA_CLOCKERR) == (0x1000), "STA_CLOCKERR != 0x1000");
      93  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      94  #else
      95  # define STA_CLOCKERR 0x1000
      96  #endif
      97  #if defined(STA_NANO) || (defined(HAVE_DECL_STA_NANO) && HAVE_DECL_STA_NANO)
      98  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      99  static_assert((STA_NANO) == (0x2000), "STA_NANO != 0x2000");
     100  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     101  #else
     102  # define STA_NANO 0x2000
     103  #endif
     104  #if defined(STA_MODE) || (defined(HAVE_DECL_STA_MODE) && HAVE_DECL_STA_MODE)
     105  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     106  static_assert((STA_MODE) == (0x4000), "STA_MODE != 0x4000");
     107  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     108  #else
     109  # define STA_MODE 0x4000
     110  #endif
     111  #if defined(STA_CLK) || (defined(HAVE_DECL_STA_CLK) && HAVE_DECL_STA_CLK)
     112  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     113  static_assert((STA_CLK) == (0x8000), "STA_CLK != 0x8000");
     114  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     115  #else
     116  # define STA_CLK 0x8000
     117  #endif
     118  #undef XLAT_PREV_VAL
     119  
     120  #ifndef XLAT_MACROS_ONLY
     121  
     122  # ifdef IN_MPERS
     123  
     124  #  error static const struct xlat adjtimex_status in mpers mode
     125  
     126  # else
     127  
     128  DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
     129  static const struct xlat_data adjtimex_status_xdata[] = {
     130   XLAT(STA_PLL),
     131   #define XLAT_VAL_0 ((unsigned) (STA_PLL))
     132   #define XLAT_STR_0 STRINGIFY(STA_PLL)
     133   XLAT(STA_PPSFREQ),
     134   #define XLAT_VAL_1 ((unsigned) (STA_PPSFREQ))
     135   #define XLAT_STR_1 STRINGIFY(STA_PPSFREQ)
     136   XLAT(STA_PPSTIME),
     137   #define XLAT_VAL_2 ((unsigned) (STA_PPSTIME))
     138   #define XLAT_STR_2 STRINGIFY(STA_PPSTIME)
     139   XLAT(STA_FLL),
     140   #define XLAT_VAL_3 ((unsigned) (STA_FLL))
     141   #define XLAT_STR_3 STRINGIFY(STA_FLL)
     142   XLAT(STA_INS),
     143   #define XLAT_VAL_4 ((unsigned) (STA_INS))
     144   #define XLAT_STR_4 STRINGIFY(STA_INS)
     145   XLAT(STA_DEL),
     146   #define XLAT_VAL_5 ((unsigned) (STA_DEL))
     147   #define XLAT_STR_5 STRINGIFY(STA_DEL)
     148   XLAT(STA_UNSYNC),
     149   #define XLAT_VAL_6 ((unsigned) (STA_UNSYNC))
     150   #define XLAT_STR_6 STRINGIFY(STA_UNSYNC)
     151   XLAT(STA_FREQHOLD),
     152   #define XLAT_VAL_7 ((unsigned) (STA_FREQHOLD))
     153   #define XLAT_STR_7 STRINGIFY(STA_FREQHOLD)
     154   XLAT(STA_PPSSIGNAL),
     155   #define XLAT_VAL_8 ((unsigned) (STA_PPSSIGNAL))
     156   #define XLAT_STR_8 STRINGIFY(STA_PPSSIGNAL)
     157   XLAT(STA_PPSJITTER),
     158   #define XLAT_VAL_9 ((unsigned) (STA_PPSJITTER))
     159   #define XLAT_STR_9 STRINGIFY(STA_PPSJITTER)
     160   XLAT(STA_PPSWANDER),
     161   #define XLAT_VAL_10 ((unsigned) (STA_PPSWANDER))
     162   #define XLAT_STR_10 STRINGIFY(STA_PPSWANDER)
     163   XLAT(STA_PPSERROR),
     164   #define XLAT_VAL_11 ((unsigned) (STA_PPSERROR))
     165   #define XLAT_STR_11 STRINGIFY(STA_PPSERROR)
     166   XLAT(STA_CLOCKERR),
     167   #define XLAT_VAL_12 ((unsigned) (STA_CLOCKERR))
     168   #define XLAT_STR_12 STRINGIFY(STA_CLOCKERR)
     169   XLAT(STA_NANO),
     170   #define XLAT_VAL_13 ((unsigned) (STA_NANO))
     171   #define XLAT_STR_13 STRINGIFY(STA_NANO)
     172   XLAT(STA_MODE),
     173   #define XLAT_VAL_14 ((unsigned) (STA_MODE))
     174   #define XLAT_STR_14 STRINGIFY(STA_MODE)
     175   XLAT(STA_CLK),
     176   #define XLAT_VAL_15 ((unsigned) (STA_CLK))
     177   #define XLAT_STR_15 STRINGIFY(STA_CLK)
     178  };
     179  static
     180  const struct xlat adjtimex_status[1] = { {
     181   .data = adjtimex_status_xdata,
     182   .size = ARRAY_SIZE(adjtimex_status_xdata),
     183   .type = XT_NORMAL,
     184   .flags_mask = 0
     185  #  ifdef XLAT_VAL_0
     186    | XLAT_VAL_0
     187  #  endif
     188  #  ifdef XLAT_VAL_1
     189    | XLAT_VAL_1
     190  #  endif
     191  #  ifdef XLAT_VAL_2
     192    | XLAT_VAL_2
     193  #  endif
     194  #  ifdef XLAT_VAL_3
     195    | XLAT_VAL_3
     196  #  endif
     197  #  ifdef XLAT_VAL_4
     198    | XLAT_VAL_4
     199  #  endif
     200  #  ifdef XLAT_VAL_5
     201    | XLAT_VAL_5
     202  #  endif
     203  #  ifdef XLAT_VAL_6
     204    | XLAT_VAL_6
     205  #  endif
     206  #  ifdef XLAT_VAL_7
     207    | XLAT_VAL_7
     208  #  endif
     209  #  ifdef XLAT_VAL_8
     210    | XLAT_VAL_8
     211  #  endif
     212  #  ifdef XLAT_VAL_9
     213    | XLAT_VAL_9
     214  #  endif
     215  #  ifdef XLAT_VAL_10
     216    | XLAT_VAL_10
     217  #  endif
     218  #  ifdef XLAT_VAL_11
     219    | XLAT_VAL_11
     220  #  endif
     221  #  ifdef XLAT_VAL_12
     222    | XLAT_VAL_12
     223  #  endif
     224  #  ifdef XLAT_VAL_13
     225    | XLAT_VAL_13
     226  #  endif
     227  #  ifdef XLAT_VAL_14
     228    | XLAT_VAL_14
     229  #  endif
     230  #  ifdef XLAT_VAL_15
     231    | XLAT_VAL_15
     232  #  endif
     233    ,
     234   .flags_strsz = 0
     235  #  ifdef XLAT_STR_0
     236    + sizeof(XLAT_STR_0)
     237  #  endif
     238  #  ifdef XLAT_STR_1
     239    + sizeof(XLAT_STR_1)
     240  #  endif
     241  #  ifdef XLAT_STR_2
     242    + sizeof(XLAT_STR_2)
     243  #  endif
     244  #  ifdef XLAT_STR_3
     245    + sizeof(XLAT_STR_3)
     246  #  endif
     247  #  ifdef XLAT_STR_4
     248    + sizeof(XLAT_STR_4)
     249  #  endif
     250  #  ifdef XLAT_STR_5
     251    + sizeof(XLAT_STR_5)
     252  #  endif
     253  #  ifdef XLAT_STR_6
     254    + sizeof(XLAT_STR_6)
     255  #  endif
     256  #  ifdef XLAT_STR_7
     257    + sizeof(XLAT_STR_7)
     258  #  endif
     259  #  ifdef XLAT_STR_8
     260    + sizeof(XLAT_STR_8)
     261  #  endif
     262  #  ifdef XLAT_STR_9
     263    + sizeof(XLAT_STR_9)
     264  #  endif
     265  #  ifdef XLAT_STR_10
     266    + sizeof(XLAT_STR_10)
     267  #  endif
     268  #  ifdef XLAT_STR_11
     269    + sizeof(XLAT_STR_11)
     270  #  endif
     271  #  ifdef XLAT_STR_12
     272    + sizeof(XLAT_STR_12)
     273  #  endif
     274  #  ifdef XLAT_STR_13
     275    + sizeof(XLAT_STR_13)
     276  #  endif
     277  #  ifdef XLAT_STR_14
     278    + sizeof(XLAT_STR_14)
     279  #  endif
     280  #  ifdef XLAT_STR_15
     281    + sizeof(XLAT_STR_15)
     282  #  endif
     283    ,
     284  } };
     285  DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
     286  
     287  #  undef XLAT_STR_0
     288  #  undef XLAT_VAL_0
     289  #  undef XLAT_STR_1
     290  #  undef XLAT_VAL_1
     291  #  undef XLAT_STR_2
     292  #  undef XLAT_VAL_2
     293  #  undef XLAT_STR_3
     294  #  undef XLAT_VAL_3
     295  #  undef XLAT_STR_4
     296  #  undef XLAT_VAL_4
     297  #  undef XLAT_STR_5
     298  #  undef XLAT_VAL_5
     299  #  undef XLAT_STR_6
     300  #  undef XLAT_VAL_6
     301  #  undef XLAT_STR_7
     302  #  undef XLAT_VAL_7
     303  #  undef XLAT_STR_8
     304  #  undef XLAT_VAL_8
     305  #  undef XLAT_STR_9
     306  #  undef XLAT_VAL_9
     307  #  undef XLAT_STR_10
     308  #  undef XLAT_VAL_10
     309  #  undef XLAT_STR_11
     310  #  undef XLAT_VAL_11
     311  #  undef XLAT_STR_12
     312  #  undef XLAT_VAL_12
     313  #  undef XLAT_STR_13
     314  #  undef XLAT_VAL_13
     315  #  undef XLAT_STR_14
     316  #  undef XLAT_VAL_14
     317  #  undef XLAT_STR_15
     318  #  undef XLAT_VAL_15
     319  # endif /* !IN_MPERS */
     320  
     321  #endif /* !XLAT_MACROS_ONLY */