(root)/
strace-6.5/
src/
xlat/
scmvals.h
       1  /* Generated by ./src/xlat/gen.sh from ./src/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  #if defined(SCM_PIDFD) || (defined(HAVE_DECL_SCM_PIDFD) && HAVE_DECL_SCM_PIDFD)
      28  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      29  static_assert((SCM_PIDFD) == (4), "SCM_PIDFD != 4");
      30  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      31  #else
      32  # define SCM_PIDFD 4
      33  #endif
      34  #if defined __sparc__
      35  #if defined(SCM_TIMESTAMPING_OPT_STATS) || (defined(HAVE_DECL_SCM_TIMESTAMPING_OPT_STATS) && HAVE_DECL_SCM_TIMESTAMPING_OPT_STATS)
      36  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      37  static_assert((SCM_TIMESTAMPING_OPT_STATS) == (0x38), "SCM_TIMESTAMPING_OPT_STATS != 0x38");
      38  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      39  #else
      40  # define SCM_TIMESTAMPING_OPT_STATS 0x38
      41  #endif
      42  #elif defined __hppa__
      43  #if defined(SCM_TIMESTAMPING_OPT_STATS) || (defined(HAVE_DECL_SCM_TIMESTAMPING_OPT_STATS) && HAVE_DECL_SCM_TIMESTAMPING_OPT_STATS)
      44  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      45  static_assert((SCM_TIMESTAMPING_OPT_STATS) == (0x402f), "SCM_TIMESTAMPING_OPT_STATS != 0x402f");
      46  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      47  #else
      48  # define SCM_TIMESTAMPING_OPT_STATS 0x402f
      49  #endif
      50  #else
      51  #if defined(SCM_TIMESTAMPING_OPT_STATS) || (defined(HAVE_DECL_SCM_TIMESTAMPING_OPT_STATS) && HAVE_DECL_SCM_TIMESTAMPING_OPT_STATS)
      52  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      53  static_assert((SCM_TIMESTAMPING_OPT_STATS) == (0x36), "SCM_TIMESTAMPING_OPT_STATS != 0x36");
      54  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      55  #else
      56  # define SCM_TIMESTAMPING_OPT_STATS 0x36
      57  #endif
      58  #endif
      59  #if defined __sparc__
      60  #if defined(SCM_TIMESTAMPING_PKTINFO) || (defined(HAVE_DECL_SCM_TIMESTAMPING_PKTINFO) && HAVE_DECL_SCM_TIMESTAMPING_PKTINFO)
      61  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      62  static_assert((SCM_TIMESTAMPING_PKTINFO) == (0x3c), "SCM_TIMESTAMPING_PKTINFO != 0x3c");
      63  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      64  #else
      65  # define SCM_TIMESTAMPING_PKTINFO 0x3c
      66  #endif
      67  #elif defined __hppa__
      68  #if defined(SCM_TIMESTAMPING_PKTINFO) || (defined(HAVE_DECL_SCM_TIMESTAMPING_PKTINFO) && HAVE_DECL_SCM_TIMESTAMPING_PKTINFO)
      69  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      70  static_assert((SCM_TIMESTAMPING_PKTINFO) == (0x4033), "SCM_TIMESTAMPING_PKTINFO != 0x4033");
      71  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      72  #else
      73  # define SCM_TIMESTAMPING_PKTINFO 0x4033
      74  #endif
      75  #else
      76  #if defined(SCM_TIMESTAMPING_PKTINFO) || (defined(HAVE_DECL_SCM_TIMESTAMPING_PKTINFO) && HAVE_DECL_SCM_TIMESTAMPING_PKTINFO)
      77  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      78  static_assert((SCM_TIMESTAMPING_PKTINFO) == (0x3a), "SCM_TIMESTAMPING_PKTINFO != 0x3a");
      79  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      80  #else
      81  # define SCM_TIMESTAMPING_PKTINFO 0x3a
      82  #endif
      83  #endif
      84  #undef XLAT_PREV_VAL
      85  
      86  #ifndef XLAT_MACROS_ONLY
      87  
      88  # ifdef IN_MPERS
      89  
      90  #  error static const struct xlat scmvals in mpers mode
      91  
      92  # else
      93  
      94  DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
      95  static const struct xlat_data scmvals_xdata[] = {
      96   XLAT(SCM_RIGHTS),
      97   #define XLAT_VAL_0 ((unsigned) (SCM_RIGHTS))
      98   #define XLAT_STR_0 STRINGIFY(SCM_RIGHTS)
      99   XLAT(SCM_CREDENTIALS),
     100   #define XLAT_VAL_1 ((unsigned) (SCM_CREDENTIALS))
     101   #define XLAT_STR_1 STRINGIFY(SCM_CREDENTIALS)
     102   XLAT(SCM_SECURITY),
     103   #define XLAT_VAL_2 ((unsigned) (SCM_SECURITY))
     104   #define XLAT_STR_2 STRINGIFY(SCM_SECURITY)
     105   XLAT(SCM_PIDFD),
     106   #define XLAT_VAL_3 ((unsigned) (SCM_PIDFD))
     107   #define XLAT_STR_3 STRINGIFY(SCM_PIDFD)
     108  
     109  #if defined(SO_WIFI_STATUS) || (defined(HAVE_DECL_SO_WIFI_STATUS) && HAVE_DECL_SO_WIFI_STATUS)
     110    XLAT(SO_WIFI_STATUS),
     111   #define XLAT_VAL_4 ((unsigned) (SO_WIFI_STATUS))
     112   #define XLAT_STR_4 STRINGIFY(SO_WIFI_STATUS)
     113  #endif
     114  #if defined(SO_TXTIME) || (defined(HAVE_DECL_SO_TXTIME) && HAVE_DECL_SO_TXTIME)
     115    XLAT(SO_TXTIME),
     116   #define XLAT_VAL_5 ((unsigned) (SO_TXTIME))
     117   #define XLAT_STR_5 STRINGIFY(SO_TXTIME)
     118  #endif
     119  #if defined(SO_TIMESTAMP_OLD) || (defined(HAVE_DECL_SO_TIMESTAMP_OLD) && HAVE_DECL_SO_TIMESTAMP_OLD)
     120    XLAT(SO_TIMESTAMP_OLD),
     121   #define XLAT_VAL_6 ((unsigned) (SO_TIMESTAMP_OLD))
     122   #define XLAT_STR_6 STRINGIFY(SO_TIMESTAMP_OLD)
     123  #endif
     124  #if defined(SO_TIMESTAMPNS_OLD) || (defined(HAVE_DECL_SO_TIMESTAMPNS_OLD) && HAVE_DECL_SO_TIMESTAMPNS_OLD)
     125    XLAT(SO_TIMESTAMPNS_OLD),
     126   #define XLAT_VAL_7 ((unsigned) (SO_TIMESTAMPNS_OLD))
     127   #define XLAT_STR_7 STRINGIFY(SO_TIMESTAMPNS_OLD)
     128  #endif
     129  #if defined(SO_TIMESTAMPING_OLD) || (defined(HAVE_DECL_SO_TIMESTAMPING_OLD) && HAVE_DECL_SO_TIMESTAMPING_OLD)
     130    XLAT(SO_TIMESTAMPING_OLD),
     131   #define XLAT_VAL_8 ((unsigned) (SO_TIMESTAMPING_OLD))
     132   #define XLAT_STR_8 STRINGIFY(SO_TIMESTAMPING_OLD)
     133  #endif
     134  #if defined(SO_TIMESTAMP_NEW) || (defined(HAVE_DECL_SO_TIMESTAMP_NEW) && HAVE_DECL_SO_TIMESTAMP_NEW)
     135    XLAT(SO_TIMESTAMP_NEW),
     136   #define XLAT_VAL_9 ((unsigned) (SO_TIMESTAMP_NEW))
     137   #define XLAT_STR_9 STRINGIFY(SO_TIMESTAMP_NEW)
     138  #endif
     139  #if defined(SO_TIMESTAMPNS_NEW) || (defined(HAVE_DECL_SO_TIMESTAMPNS_NEW) && HAVE_DECL_SO_TIMESTAMPNS_NEW)
     140    XLAT(SO_TIMESTAMPNS_NEW),
     141   #define XLAT_VAL_10 ((unsigned) (SO_TIMESTAMPNS_NEW))
     142   #define XLAT_STR_10 STRINGIFY(SO_TIMESTAMPNS_NEW)
     143  #endif
     144  #if defined(SO_TIMESTAMPING_NEW) || (defined(HAVE_DECL_SO_TIMESTAMPING_NEW) && HAVE_DECL_SO_TIMESTAMPING_NEW)
     145    XLAT(SO_TIMESTAMPING_NEW),
     146   #define XLAT_VAL_11 ((unsigned) (SO_TIMESTAMPING_NEW))
     147   #define XLAT_STR_11 STRINGIFY(SO_TIMESTAMPING_NEW)
     148  #endif
     149  
     150  
     151  #if defined __sparc__
     152   XLAT(SCM_TIMESTAMPING_OPT_STATS),
     153   #define XLAT_VAL_12 ((unsigned) (SCM_TIMESTAMPING_OPT_STATS))
     154   #define XLAT_STR_12 STRINGIFY(SCM_TIMESTAMPING_OPT_STATS)
     155  #elif defined __hppa__
     156   XLAT(SCM_TIMESTAMPING_OPT_STATS),
     157   #define XLAT_VAL_13 ((unsigned) (SCM_TIMESTAMPING_OPT_STATS))
     158   #define XLAT_STR_13 STRINGIFY(SCM_TIMESTAMPING_OPT_STATS)
     159  #else
     160   XLAT(SCM_TIMESTAMPING_OPT_STATS),
     161   #define XLAT_VAL_14 ((unsigned) (SCM_TIMESTAMPING_OPT_STATS))
     162   #define XLAT_STR_14 STRINGIFY(SCM_TIMESTAMPING_OPT_STATS)
     163  #endif
     164  #if defined __sparc__
     165   XLAT(SCM_TIMESTAMPING_PKTINFO),
     166   #define XLAT_VAL_15 ((unsigned) (SCM_TIMESTAMPING_PKTINFO))
     167   #define XLAT_STR_15 STRINGIFY(SCM_TIMESTAMPING_PKTINFO)
     168  #elif defined __hppa__
     169   XLAT(SCM_TIMESTAMPING_PKTINFO),
     170   #define XLAT_VAL_16 ((unsigned) (SCM_TIMESTAMPING_PKTINFO))
     171   #define XLAT_STR_16 STRINGIFY(SCM_TIMESTAMPING_PKTINFO)
     172  #else
     173   XLAT(SCM_TIMESTAMPING_PKTINFO),
     174   #define XLAT_VAL_17 ((unsigned) (SCM_TIMESTAMPING_PKTINFO))
     175   #define XLAT_STR_17 STRINGIFY(SCM_TIMESTAMPING_PKTINFO)
     176  #endif
     177  };
     178  static
     179  const struct xlat scmvals[1] = { {
     180   .data = scmvals_xdata,
     181   .size = ARRAY_SIZE(scmvals_xdata),
     182   .type = XT_NORMAL,
     183   .flags_mask = 0
     184  #  ifdef XLAT_VAL_0
     185    | XLAT_VAL_0
     186  #  endif
     187  #  ifdef XLAT_VAL_1
     188    | XLAT_VAL_1
     189  #  endif
     190  #  ifdef XLAT_VAL_2
     191    | XLAT_VAL_2
     192  #  endif
     193  #  ifdef XLAT_VAL_3
     194    | XLAT_VAL_3
     195  #  endif
     196  #  ifdef XLAT_VAL_4
     197    | XLAT_VAL_4
     198  #  endif
     199  #  ifdef XLAT_VAL_5
     200    | XLAT_VAL_5
     201  #  endif
     202  #  ifdef XLAT_VAL_6
     203    | XLAT_VAL_6
     204  #  endif
     205  #  ifdef XLAT_VAL_7
     206    | XLAT_VAL_7
     207  #  endif
     208  #  ifdef XLAT_VAL_8
     209    | XLAT_VAL_8
     210  #  endif
     211  #  ifdef XLAT_VAL_9
     212    | XLAT_VAL_9
     213  #  endif
     214  #  ifdef XLAT_VAL_10
     215    | XLAT_VAL_10
     216  #  endif
     217  #  ifdef XLAT_VAL_11
     218    | XLAT_VAL_11
     219  #  endif
     220  #  ifdef XLAT_VAL_12
     221    | XLAT_VAL_12
     222  #  endif
     223  #  ifdef XLAT_VAL_13
     224    | XLAT_VAL_13
     225  #  endif
     226  #  ifdef XLAT_VAL_14
     227    | XLAT_VAL_14
     228  #  endif
     229  #  ifdef XLAT_VAL_15
     230    | XLAT_VAL_15
     231  #  endif
     232  #  ifdef XLAT_VAL_16
     233    | XLAT_VAL_16
     234  #  endif
     235  #  ifdef XLAT_VAL_17
     236    | XLAT_VAL_17
     237  #  endif
     238    ,
     239   .flags_strsz = 0
     240  #  ifdef XLAT_STR_0
     241    + sizeof(XLAT_STR_0)
     242  #  endif
     243  #  ifdef XLAT_STR_1
     244    + sizeof(XLAT_STR_1)
     245  #  endif
     246  #  ifdef XLAT_STR_2
     247    + sizeof(XLAT_STR_2)
     248  #  endif
     249  #  ifdef XLAT_STR_3
     250    + sizeof(XLAT_STR_3)
     251  #  endif
     252  #  ifdef XLAT_STR_4
     253    + sizeof(XLAT_STR_4)
     254  #  endif
     255  #  ifdef XLAT_STR_5
     256    + sizeof(XLAT_STR_5)
     257  #  endif
     258  #  ifdef XLAT_STR_6
     259    + sizeof(XLAT_STR_6)
     260  #  endif
     261  #  ifdef XLAT_STR_7
     262    + sizeof(XLAT_STR_7)
     263  #  endif
     264  #  ifdef XLAT_STR_8
     265    + sizeof(XLAT_STR_8)
     266  #  endif
     267  #  ifdef XLAT_STR_9
     268    + sizeof(XLAT_STR_9)
     269  #  endif
     270  #  ifdef XLAT_STR_10
     271    + sizeof(XLAT_STR_10)
     272  #  endif
     273  #  ifdef XLAT_STR_11
     274    + sizeof(XLAT_STR_11)
     275  #  endif
     276  #  ifdef XLAT_STR_12
     277    + sizeof(XLAT_STR_12)
     278  #  endif
     279  #  ifdef XLAT_STR_13
     280    + sizeof(XLAT_STR_13)
     281  #  endif
     282  #  ifdef XLAT_STR_14
     283    + sizeof(XLAT_STR_14)
     284  #  endif
     285  #  ifdef XLAT_STR_15
     286    + sizeof(XLAT_STR_15)
     287  #  endif
     288  #  ifdef XLAT_STR_16
     289    + sizeof(XLAT_STR_16)
     290  #  endif
     291  #  ifdef XLAT_STR_17
     292    + sizeof(XLAT_STR_17)
     293  #  endif
     294    ,
     295  } };
     296  DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
     297  
     298  #  undef XLAT_STR_0
     299  #  undef XLAT_VAL_0
     300  #  undef XLAT_STR_1
     301  #  undef XLAT_VAL_1
     302  #  undef XLAT_STR_2
     303  #  undef XLAT_VAL_2
     304  #  undef XLAT_STR_3
     305  #  undef XLAT_VAL_3
     306  #  undef XLAT_STR_4
     307  #  undef XLAT_VAL_4
     308  #  undef XLAT_STR_5
     309  #  undef XLAT_VAL_5
     310  #  undef XLAT_STR_6
     311  #  undef XLAT_VAL_6
     312  #  undef XLAT_STR_7
     313  #  undef XLAT_VAL_7
     314  #  undef XLAT_STR_8
     315  #  undef XLAT_VAL_8
     316  #  undef XLAT_STR_9
     317  #  undef XLAT_VAL_9
     318  #  undef XLAT_STR_10
     319  #  undef XLAT_VAL_10
     320  #  undef XLAT_STR_11
     321  #  undef XLAT_VAL_11
     322  #  undef XLAT_STR_12
     323  #  undef XLAT_VAL_12
     324  #  undef XLAT_STR_13
     325  #  undef XLAT_VAL_13
     326  #  undef XLAT_STR_14
     327  #  undef XLAT_VAL_14
     328  #  undef XLAT_STR_15
     329  #  undef XLAT_VAL_15
     330  #  undef XLAT_STR_16
     331  #  undef XLAT_VAL_16
     332  #  undef XLAT_STR_17
     333  #  undef XLAT_VAL_17
     334  # endif /* !IN_MPERS */
     335  
     336  #endif /* !XLAT_MACROS_ONLY */