(root)/
strace-6.5/
src/
xlat/
smc_states.h
       1  /* Generated by ./src/xlat/gen.sh from ./src/xlat/smc_states.in; do not edit. */
       2  
       3  #include "gcc_compat.h"
       4  #include "static_assert.h"
       5  
       6  #if defined(SMC_ACTIVE) || (defined(HAVE_DECL_SMC_ACTIVE) && HAVE_DECL_SMC_ACTIVE)
       7  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
       8  static_assert((SMC_ACTIVE) == (1), "SMC_ACTIVE != 1");
       9  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      10  #else
      11  # define SMC_ACTIVE 1
      12  #endif
      13  #if defined(SMC_INIT) || (defined(HAVE_DECL_SMC_INIT) && HAVE_DECL_SMC_INIT)
      14  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      15  static_assert((SMC_INIT) == (2), "SMC_INIT != 2");
      16  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      17  #else
      18  # define SMC_INIT 2
      19  #endif
      20  #if defined(SMC_CLOSED) || (defined(HAVE_DECL_SMC_CLOSED) && HAVE_DECL_SMC_CLOSED)
      21  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      22  static_assert((SMC_CLOSED) == (7), "SMC_CLOSED != 7");
      23  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      24  #else
      25  # define SMC_CLOSED 7
      26  #endif
      27  #if defined(SMC_LISTEN) || (defined(HAVE_DECL_SMC_LISTEN) && HAVE_DECL_SMC_LISTEN)
      28  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      29  static_assert((SMC_LISTEN) == (10), "SMC_LISTEN != 10");
      30  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      31  #else
      32  # define SMC_LISTEN 10
      33  #endif
      34  #if defined(SMC_PEERCLOSEWAIT1) || (defined(HAVE_DECL_SMC_PEERCLOSEWAIT1) && HAVE_DECL_SMC_PEERCLOSEWAIT1)
      35  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      36  static_assert((SMC_PEERCLOSEWAIT1) == (20), "SMC_PEERCLOSEWAIT1 != 20");
      37  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      38  #else
      39  # define SMC_PEERCLOSEWAIT1 20
      40  #endif
      41  #if defined(SMC_PEERCLOSEWAIT2) || (defined(HAVE_DECL_SMC_PEERCLOSEWAIT2) && HAVE_DECL_SMC_PEERCLOSEWAIT2)
      42  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      43  static_assert((SMC_PEERCLOSEWAIT2) == (21), "SMC_PEERCLOSEWAIT2 != 21");
      44  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      45  #else
      46  # define SMC_PEERCLOSEWAIT2 21
      47  #endif
      48  #if defined(SMC_APPFINCLOSEWAIT) || (defined(HAVE_DECL_SMC_APPFINCLOSEWAIT) && HAVE_DECL_SMC_APPFINCLOSEWAIT)
      49  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      50  static_assert((SMC_APPFINCLOSEWAIT) == (24), "SMC_APPFINCLOSEWAIT != 24");
      51  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      52  #else
      53  # define SMC_APPFINCLOSEWAIT 24
      54  #endif
      55  #if defined(SMC_APPCLOSEWAIT1) || (defined(HAVE_DECL_SMC_APPCLOSEWAIT1) && HAVE_DECL_SMC_APPCLOSEWAIT1)
      56  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      57  static_assert((SMC_APPCLOSEWAIT1) == (22), "SMC_APPCLOSEWAIT1 != 22");
      58  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      59  #else
      60  # define SMC_APPCLOSEWAIT1 22
      61  #endif
      62  #if defined(SMC_APPCLOSEWAIT2) || (defined(HAVE_DECL_SMC_APPCLOSEWAIT2) && HAVE_DECL_SMC_APPCLOSEWAIT2)
      63  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      64  static_assert((SMC_APPCLOSEWAIT2) == (23), "SMC_APPCLOSEWAIT2 != 23");
      65  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      66  #else
      67  # define SMC_APPCLOSEWAIT2 23
      68  #endif
      69  #if defined(SMC_PEERFINCLOSEWAIT) || (defined(HAVE_DECL_SMC_PEERFINCLOSEWAIT) && HAVE_DECL_SMC_PEERFINCLOSEWAIT)
      70  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      71  static_assert((SMC_PEERFINCLOSEWAIT) == (25), "SMC_PEERFINCLOSEWAIT != 25");
      72  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      73  #else
      74  # define SMC_PEERFINCLOSEWAIT 25
      75  #endif
      76  #if defined(SMC_PEERABORTWAIT) || (defined(HAVE_DECL_SMC_PEERABORTWAIT) && HAVE_DECL_SMC_PEERABORTWAIT)
      77  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      78  static_assert((SMC_PEERABORTWAIT) == (26), "SMC_PEERABORTWAIT != 26");
      79  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      80  #else
      81  # define SMC_PEERABORTWAIT 26
      82  #endif
      83  #if defined(SMC_PROCESSABORT) || (defined(HAVE_DECL_SMC_PROCESSABORT) && HAVE_DECL_SMC_PROCESSABORT)
      84  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      85  static_assert((SMC_PROCESSABORT) == (27), "SMC_PROCESSABORT != 27");
      86  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      87  #else
      88  # define SMC_PROCESSABORT 27
      89  #endif
      90  #undef XLAT_PREV_VAL
      91  
      92  #ifndef XLAT_MACROS_ONLY
      93  
      94  # ifdef IN_MPERS
      95  
      96  #  error static const struct xlat smc_states in mpers mode
      97  
      98  # else
      99  
     100  DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
     101  static const struct xlat_data smc_states_xdata[] = {
     102   XLAT(SMC_ACTIVE),
     103   #define XLAT_VAL_0 ((unsigned) (SMC_ACTIVE))
     104   #define XLAT_STR_0 STRINGIFY(SMC_ACTIVE)
     105   XLAT(SMC_INIT),
     106   #define XLAT_VAL_1 ((unsigned) (SMC_INIT))
     107   #define XLAT_STR_1 STRINGIFY(SMC_INIT)
     108   XLAT(SMC_CLOSED),
     109   #define XLAT_VAL_2 ((unsigned) (SMC_CLOSED))
     110   #define XLAT_STR_2 STRINGIFY(SMC_CLOSED)
     111   XLAT(SMC_LISTEN),
     112   #define XLAT_VAL_3 ((unsigned) (SMC_LISTEN))
     113   #define XLAT_STR_3 STRINGIFY(SMC_LISTEN)
     114   XLAT(SMC_PEERCLOSEWAIT1),
     115   #define XLAT_VAL_4 ((unsigned) (SMC_PEERCLOSEWAIT1))
     116   #define XLAT_STR_4 STRINGIFY(SMC_PEERCLOSEWAIT1)
     117   XLAT(SMC_PEERCLOSEWAIT2),
     118   #define XLAT_VAL_5 ((unsigned) (SMC_PEERCLOSEWAIT2))
     119   #define XLAT_STR_5 STRINGIFY(SMC_PEERCLOSEWAIT2)
     120   XLAT(SMC_APPFINCLOSEWAIT),
     121   #define XLAT_VAL_6 ((unsigned) (SMC_APPFINCLOSEWAIT))
     122   #define XLAT_STR_6 STRINGIFY(SMC_APPFINCLOSEWAIT)
     123   XLAT(SMC_APPCLOSEWAIT1),
     124   #define XLAT_VAL_7 ((unsigned) (SMC_APPCLOSEWAIT1))
     125   #define XLAT_STR_7 STRINGIFY(SMC_APPCLOSEWAIT1)
     126   XLAT(SMC_APPCLOSEWAIT2),
     127   #define XLAT_VAL_8 ((unsigned) (SMC_APPCLOSEWAIT2))
     128   #define XLAT_STR_8 STRINGIFY(SMC_APPCLOSEWAIT2)
     129   XLAT(SMC_PEERFINCLOSEWAIT),
     130   #define XLAT_VAL_9 ((unsigned) (SMC_PEERFINCLOSEWAIT))
     131   #define XLAT_STR_9 STRINGIFY(SMC_PEERFINCLOSEWAIT)
     132   XLAT(SMC_PEERABORTWAIT),
     133   #define XLAT_VAL_10 ((unsigned) (SMC_PEERABORTWAIT))
     134   #define XLAT_STR_10 STRINGIFY(SMC_PEERABORTWAIT)
     135   XLAT(SMC_PROCESSABORT),
     136   #define XLAT_VAL_11 ((unsigned) (SMC_PROCESSABORT))
     137   #define XLAT_STR_11 STRINGIFY(SMC_PROCESSABORT)
     138  };
     139  static
     140  const struct xlat smc_states[1] = { {
     141   .data = smc_states_xdata,
     142   .size = ARRAY_SIZE(smc_states_xdata),
     143   .type = XT_NORMAL,
     144   .flags_mask = 0
     145  #  ifdef XLAT_VAL_0
     146    | XLAT_VAL_0
     147  #  endif
     148  #  ifdef XLAT_VAL_1
     149    | XLAT_VAL_1
     150  #  endif
     151  #  ifdef XLAT_VAL_2
     152    | XLAT_VAL_2
     153  #  endif
     154  #  ifdef XLAT_VAL_3
     155    | XLAT_VAL_3
     156  #  endif
     157  #  ifdef XLAT_VAL_4
     158    | XLAT_VAL_4
     159  #  endif
     160  #  ifdef XLAT_VAL_5
     161    | XLAT_VAL_5
     162  #  endif
     163  #  ifdef XLAT_VAL_6
     164    | XLAT_VAL_6
     165  #  endif
     166  #  ifdef XLAT_VAL_7
     167    | XLAT_VAL_7
     168  #  endif
     169  #  ifdef XLAT_VAL_8
     170    | XLAT_VAL_8
     171  #  endif
     172  #  ifdef XLAT_VAL_9
     173    | XLAT_VAL_9
     174  #  endif
     175  #  ifdef XLAT_VAL_10
     176    | XLAT_VAL_10
     177  #  endif
     178  #  ifdef XLAT_VAL_11
     179    | XLAT_VAL_11
     180  #  endif
     181    ,
     182   .flags_strsz = 0
     183  #  ifdef XLAT_STR_0
     184    + sizeof(XLAT_STR_0)
     185  #  endif
     186  #  ifdef XLAT_STR_1
     187    + sizeof(XLAT_STR_1)
     188  #  endif
     189  #  ifdef XLAT_STR_2
     190    + sizeof(XLAT_STR_2)
     191  #  endif
     192  #  ifdef XLAT_STR_3
     193    + sizeof(XLAT_STR_3)
     194  #  endif
     195  #  ifdef XLAT_STR_4
     196    + sizeof(XLAT_STR_4)
     197  #  endif
     198  #  ifdef XLAT_STR_5
     199    + sizeof(XLAT_STR_5)
     200  #  endif
     201  #  ifdef XLAT_STR_6
     202    + sizeof(XLAT_STR_6)
     203  #  endif
     204  #  ifdef XLAT_STR_7
     205    + sizeof(XLAT_STR_7)
     206  #  endif
     207  #  ifdef XLAT_STR_8
     208    + sizeof(XLAT_STR_8)
     209  #  endif
     210  #  ifdef XLAT_STR_9
     211    + sizeof(XLAT_STR_9)
     212  #  endif
     213  #  ifdef XLAT_STR_10
     214    + sizeof(XLAT_STR_10)
     215  #  endif
     216  #  ifdef XLAT_STR_11
     217    + sizeof(XLAT_STR_11)
     218  #  endif
     219    ,
     220  } };
     221  DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
     222  
     223  #  undef XLAT_STR_0
     224  #  undef XLAT_VAL_0
     225  #  undef XLAT_STR_1
     226  #  undef XLAT_VAL_1
     227  #  undef XLAT_STR_2
     228  #  undef XLAT_VAL_2
     229  #  undef XLAT_STR_3
     230  #  undef XLAT_VAL_3
     231  #  undef XLAT_STR_4
     232  #  undef XLAT_VAL_4
     233  #  undef XLAT_STR_5
     234  #  undef XLAT_VAL_5
     235  #  undef XLAT_STR_6
     236  #  undef XLAT_VAL_6
     237  #  undef XLAT_STR_7
     238  #  undef XLAT_VAL_7
     239  #  undef XLAT_STR_8
     240  #  undef XLAT_VAL_8
     241  #  undef XLAT_STR_9
     242  #  undef XLAT_VAL_9
     243  #  undef XLAT_STR_10
     244  #  undef XLAT_VAL_10
     245  #  undef XLAT_STR_11
     246  #  undef XLAT_VAL_11
     247  # endif /* !IN_MPERS */
     248  
     249  #endif /* !XLAT_MACROS_ONLY */