Home | History | Annotate | Download | only in xlat
      1 /* Generated by ./xlat/gen.sh from ./xlat/statx_attrs.in; do not edit. */
      2 
      3 #include "gcc_compat.h"
      4 #include "static_assert.h"
      5 
      6 #if defined(STATX_ATTR_COMPRESSED) || (defined(HAVE_DECL_STATX_ATTR_COMPRESSED) && HAVE_DECL_STATX_ATTR_COMPRESSED)
      7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      8 static_assert((STATX_ATTR_COMPRESSED) == (0x00000004), "STATX_ATTR_COMPRESSED != 0x00000004");
      9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     10 #else
     11 # define STATX_ATTR_COMPRESSED 0x00000004
     12 #endif
     13 #if defined(STATX_ATTR_IMMUTABLE) || (defined(HAVE_DECL_STATX_ATTR_IMMUTABLE) && HAVE_DECL_STATX_ATTR_IMMUTABLE)
     14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     15 static_assert((STATX_ATTR_IMMUTABLE) == (0x00000010), "STATX_ATTR_IMMUTABLE != 0x00000010");
     16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     17 #else
     18 # define STATX_ATTR_IMMUTABLE 0x00000010
     19 #endif
     20 #if defined(STATX_ATTR_APPEND) || (defined(HAVE_DECL_STATX_ATTR_APPEND) && HAVE_DECL_STATX_ATTR_APPEND)
     21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     22 static_assert((STATX_ATTR_APPEND) == (0x00000020), "STATX_ATTR_APPEND != 0x00000020");
     23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     24 #else
     25 # define STATX_ATTR_APPEND 0x00000020
     26 #endif
     27 #if defined(STATX_ATTR_NODUMP) || (defined(HAVE_DECL_STATX_ATTR_NODUMP) && HAVE_DECL_STATX_ATTR_NODUMP)
     28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     29 static_assert((STATX_ATTR_NODUMP) == (0x00000040), "STATX_ATTR_NODUMP != 0x00000040");
     30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     31 #else
     32 # define STATX_ATTR_NODUMP 0x00000040
     33 #endif
     34 #if defined(STATX_ATTR_ENCRYPTED) || (defined(HAVE_DECL_STATX_ATTR_ENCRYPTED) && HAVE_DECL_STATX_ATTR_ENCRYPTED)
     35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     36 static_assert((STATX_ATTR_ENCRYPTED) == (0x00000800), "STATX_ATTR_ENCRYPTED != 0x00000800");
     37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     38 #else
     39 # define STATX_ATTR_ENCRYPTED 0x00000800
     40 #endif
     41 #if defined(STATX_ATTR_AUTOMOUNT) || (defined(HAVE_DECL_STATX_ATTR_AUTOMOUNT) && HAVE_DECL_STATX_ATTR_AUTOMOUNT)
     42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     43 static_assert((STATX_ATTR_AUTOMOUNT) == (0x00001000), "STATX_ATTR_AUTOMOUNT != 0x00001000");
     44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     45 #else
     46 # define STATX_ATTR_AUTOMOUNT 0x00001000
     47 #endif
     48 
     49 #ifndef XLAT_MACROS_ONLY
     50 
     51 # ifdef IN_MPERS
     52 
     53 #  error static const struct xlat statx_attrs in mpers mode
     54 
     55 # else
     56 
     57 static
     58 const struct xlat statx_attrs[] = {
     59  XLAT(STATX_ATTR_COMPRESSED),
     60  XLAT(STATX_ATTR_IMMUTABLE),
     61  XLAT(STATX_ATTR_APPEND),
     62  XLAT(STATX_ATTR_NODUMP),
     63  XLAT(STATX_ATTR_ENCRYPTED),
     64  XLAT(STATX_ATTR_AUTOMOUNT),
     65  XLAT_END
     66 };
     67 
     68 # endif /* !IN_MPERS */
     69 
     70 #endif /* !XLAT_MACROS_ONLY */
     71