Home | History | Annotate | Download | only in xlat
      1 /* Generated by ./xlat/gen.sh from ./xlat/mount_flags.in; do not edit. */
      2 
      3 #include "gcc_compat.h"
      4 #include "static_assert.h"
      5 
      6 #if defined(MS_RDONLY) || (defined(HAVE_DECL_MS_RDONLY) && HAVE_DECL_MS_RDONLY)
      7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      8 static_assert((MS_RDONLY) == (1), "MS_RDONLY != 1");
      9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     10 #else
     11 # define MS_RDONLY 1
     12 #endif
     13 #if defined(MS_NOSUID) || (defined(HAVE_DECL_MS_NOSUID) && HAVE_DECL_MS_NOSUID)
     14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     15 static_assert((MS_NOSUID) == (2), "MS_NOSUID != 2");
     16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     17 #else
     18 # define MS_NOSUID 2
     19 #endif
     20 #if defined(MS_NODEV) || (defined(HAVE_DECL_MS_NODEV) && HAVE_DECL_MS_NODEV)
     21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     22 static_assert((MS_NODEV) == (4), "MS_NODEV != 4");
     23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     24 #else
     25 # define MS_NODEV 4
     26 #endif
     27 #if defined(MS_NOEXEC) || (defined(HAVE_DECL_MS_NOEXEC) && HAVE_DECL_MS_NOEXEC)
     28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     29 static_assert((MS_NOEXEC) == (8), "MS_NOEXEC != 8");
     30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     31 #else
     32 # define MS_NOEXEC 8
     33 #endif
     34 #if defined(MS_SYNCHRONOUS) || (defined(HAVE_DECL_MS_SYNCHRONOUS) && HAVE_DECL_MS_SYNCHRONOUS)
     35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     36 static_assert((MS_SYNCHRONOUS) == (16), "MS_SYNCHRONOUS != 16");
     37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     38 #else
     39 # define MS_SYNCHRONOUS 16
     40 #endif
     41 #if defined(MS_REMOUNT) || (defined(HAVE_DECL_MS_REMOUNT) && HAVE_DECL_MS_REMOUNT)
     42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     43 static_assert((MS_REMOUNT) == (32), "MS_REMOUNT != 32");
     44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     45 #else
     46 # define MS_REMOUNT 32
     47 #endif
     48 #if defined(MS_MANDLOCK) || (defined(HAVE_DECL_MS_MANDLOCK) && HAVE_DECL_MS_MANDLOCK)
     49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     50 static_assert((MS_MANDLOCK) == (64), "MS_MANDLOCK != 64");
     51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     52 #else
     53 # define MS_MANDLOCK 64
     54 #endif
     55 #if defined(MS_DIRSYNC) || (defined(HAVE_DECL_MS_DIRSYNC) && HAVE_DECL_MS_DIRSYNC)
     56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     57 static_assert((MS_DIRSYNC) == (128), "MS_DIRSYNC != 128");
     58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     59 #else
     60 # define MS_DIRSYNC 128
     61 #endif
     62 #if defined(MS_NOATIME) || (defined(HAVE_DECL_MS_NOATIME) && HAVE_DECL_MS_NOATIME)
     63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     64 static_assert((MS_NOATIME) == (1024), "MS_NOATIME != 1024");
     65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     66 #else
     67 # define MS_NOATIME 1024
     68 #endif
     69 #if defined(MS_NODIRATIME) || (defined(HAVE_DECL_MS_NODIRATIME) && HAVE_DECL_MS_NODIRATIME)
     70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     71 static_assert((MS_NODIRATIME) == (2048), "MS_NODIRATIME != 2048");
     72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     73 #else
     74 # define MS_NODIRATIME 2048
     75 #endif
     76 #if defined(MS_BIND) || (defined(HAVE_DECL_MS_BIND) && HAVE_DECL_MS_BIND)
     77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     78 static_assert((MS_BIND) == (4096), "MS_BIND != 4096");
     79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     80 #else
     81 # define MS_BIND 4096
     82 #endif
     83 #if defined(MS_MOVE) || (defined(HAVE_DECL_MS_MOVE) && HAVE_DECL_MS_MOVE)
     84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     85 static_assert((MS_MOVE) == (8192), "MS_MOVE != 8192");
     86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     87 #else
     88 # define MS_MOVE 8192
     89 #endif
     90 #if defined(MS_REC) || (defined(HAVE_DECL_MS_REC) && HAVE_DECL_MS_REC)
     91 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     92 static_assert((MS_REC) == (16384), "MS_REC != 16384");
     93 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     94 #else
     95 # define MS_REC 16384
     96 #endif
     97 #if defined(MS_SILENT) || (defined(HAVE_DECL_MS_SILENT) && HAVE_DECL_MS_SILENT)
     98 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     99 static_assert((MS_SILENT) == (32768), "MS_SILENT != 32768");
    100 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    101 #else
    102 # define MS_SILENT 32768
    103 #endif
    104 #if defined(MS_POSIXACL) || (defined(HAVE_DECL_MS_POSIXACL) && HAVE_DECL_MS_POSIXACL)
    105 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
    106 static_assert((MS_POSIXACL) == ((1<<16)), "MS_POSIXACL != (1<<16)");
    107 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    108 #else
    109 # define MS_POSIXACL (1<<16)
    110 #endif
    111 #if defined(MS_UNBINDABLE) || (defined(HAVE_DECL_MS_UNBINDABLE) && HAVE_DECL_MS_UNBINDABLE)
    112 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
    113 static_assert((MS_UNBINDABLE) == ((1<<17)), "MS_UNBINDABLE != (1<<17)");
    114 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    115 #else
    116 # define MS_UNBINDABLE (1<<17)
    117 #endif
    118 #if defined(MS_PRIVATE) || (defined(HAVE_DECL_MS_PRIVATE) && HAVE_DECL_MS_PRIVATE)
    119 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
    120 static_assert((MS_PRIVATE) == ((1<<18)), "MS_PRIVATE != (1<<18)");
    121 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    122 #else
    123 # define MS_PRIVATE (1<<18)
    124 #endif
    125 #if defined(MS_SLAVE) || (defined(HAVE_DECL_MS_SLAVE) && HAVE_DECL_MS_SLAVE)
    126 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
    127 static_assert((MS_SLAVE) == ((1<<19)), "MS_SLAVE != (1<<19)");
    128 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    129 #else
    130 # define MS_SLAVE (1<<19)
    131 #endif
    132 #if defined(MS_SHARED) || (defined(HAVE_DECL_MS_SHARED) && HAVE_DECL_MS_SHARED)
    133 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
    134 static_assert((MS_SHARED) == ((1<<20)), "MS_SHARED != (1<<20)");
    135 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    136 #else
    137 # define MS_SHARED (1<<20)
    138 #endif
    139 #if defined(MS_RELATIME) || (defined(HAVE_DECL_MS_RELATIME) && HAVE_DECL_MS_RELATIME)
    140 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
    141 static_assert((MS_RELATIME) == ((1<<21)), "MS_RELATIME != (1<<21)");
    142 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    143 #else
    144 # define MS_RELATIME (1<<21)
    145 #endif
    146 #if defined(MS_KERNMOUNT) || (defined(HAVE_DECL_MS_KERNMOUNT) && HAVE_DECL_MS_KERNMOUNT)
    147 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
    148 static_assert((MS_KERNMOUNT) == ((1<<22)), "MS_KERNMOUNT != (1<<22)");
    149 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    150 #else
    151 # define MS_KERNMOUNT (1<<22)
    152 #endif
    153 #if defined(MS_I_VERSION) || (defined(HAVE_DECL_MS_I_VERSION) && HAVE_DECL_MS_I_VERSION)
    154 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
    155 static_assert((MS_I_VERSION) == ((1<<23)), "MS_I_VERSION != (1<<23)");
    156 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    157 #else
    158 # define MS_I_VERSION (1<<23)
    159 #endif
    160 #if defined(MS_STRICTATIME) || (defined(HAVE_DECL_MS_STRICTATIME) && HAVE_DECL_MS_STRICTATIME)
    161 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
    162 static_assert((MS_STRICTATIME) == ((1<<24)), "MS_STRICTATIME != (1<<24)");
    163 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    164 #else
    165 # define MS_STRICTATIME (1<<24)
    166 #endif
    167 #if defined(MS_LAZYTIME) || (defined(HAVE_DECL_MS_LAZYTIME) && HAVE_DECL_MS_LAZYTIME)
    168 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
    169 static_assert((MS_LAZYTIME) == ((1<<25)), "MS_LAZYTIME != (1<<25)");
    170 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    171 #else
    172 # define MS_LAZYTIME (1<<25)
    173 #endif
    174 #if defined(MS_SUBMOUNT) || (defined(HAVE_DECL_MS_SUBMOUNT) && HAVE_DECL_MS_SUBMOUNT)
    175 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
    176 static_assert((MS_SUBMOUNT) == ((1<<26)), "MS_SUBMOUNT != (1<<26)");
    177 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    178 #else
    179 # define MS_SUBMOUNT (1<<26)
    180 #endif
    181 #if defined(MS_NOREMOTELOCK) || (defined(HAVE_DECL_MS_NOREMOTELOCK) && HAVE_DECL_MS_NOREMOTELOCK)
    182 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
    183 static_assert((MS_NOREMOTELOCK) == ((1<<27)), "MS_NOREMOTELOCK != (1<<27)");
    184 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    185 #else
    186 # define MS_NOREMOTELOCK (1<<27)
    187 #endif
    188 #if defined(MS_NOSEC) || (defined(HAVE_DECL_MS_NOSEC) && HAVE_DECL_MS_NOSEC)
    189 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
    190 static_assert((MS_NOSEC) == ((1<<28)), "MS_NOSEC != (1<<28)");
    191 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    192 #else
    193 # define MS_NOSEC (1<<28)
    194 #endif
    195 #if defined(MS_BORN) || (defined(HAVE_DECL_MS_BORN) && HAVE_DECL_MS_BORN)
    196 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
    197 static_assert((MS_BORN) == ((1<<29)), "MS_BORN != (1<<29)");
    198 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    199 #else
    200 # define MS_BORN (1<<29)
    201 #endif
    202 #if defined(MS_ACTIVE) || (defined(HAVE_DECL_MS_ACTIVE) && HAVE_DECL_MS_ACTIVE)
    203 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
    204 static_assert((MS_ACTIVE) == ((1<<30)), "MS_ACTIVE != (1<<30)");
    205 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    206 #else
    207 # define MS_ACTIVE (1<<30)
    208 #endif
    209 #if defined(MS_NOUSER) || (defined(HAVE_DECL_MS_NOUSER) && HAVE_DECL_MS_NOUSER)
    210 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
    211 static_assert((MS_NOUSER) == ((1<<31)), "MS_NOUSER != (1<<31)");
    212 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    213 #else
    214 # define MS_NOUSER (1<<31)
    215 #endif
    216 
    217 #ifndef XLAT_MACROS_ONLY
    218 
    219 # ifdef IN_MPERS
    220 
    221 #  error static const struct xlat mount_flags in mpers mode
    222 
    223 # else
    224 
    225 static
    226 const struct xlat mount_flags[] = {
    227  XLAT(MS_RDONLY),
    228  XLAT(MS_NOSUID),
    229  XLAT(MS_NODEV),
    230  XLAT(MS_NOEXEC),
    231  XLAT(MS_SYNCHRONOUS),
    232  XLAT(MS_REMOUNT),
    233  XLAT(MS_MANDLOCK),
    234  XLAT(MS_DIRSYNC),
    235  XLAT(MS_NOATIME),
    236  XLAT(MS_NODIRATIME),
    237  XLAT(MS_BIND),
    238  XLAT(MS_MOVE),
    239  XLAT(MS_REC),
    240  XLAT(MS_SILENT),
    241  XLAT(MS_POSIXACL),
    242  XLAT(MS_UNBINDABLE),
    243  XLAT(MS_PRIVATE),
    244  XLAT(MS_SLAVE),
    245  XLAT(MS_SHARED),
    246  XLAT(MS_RELATIME),
    247  XLAT(MS_KERNMOUNT),
    248  XLAT(MS_I_VERSION),
    249  XLAT(MS_STRICTATIME),
    250  XLAT(MS_LAZYTIME),
    251  XLAT(MS_SUBMOUNT),
    252  XLAT(MS_NOREMOTELOCK),
    253  XLAT(MS_NOSEC),
    254  XLAT(MS_BORN),
    255  XLAT(MS_ACTIVE),
    256  XLAT(MS_NOUSER),
    257  XLAT_END
    258 };
    259 
    260 # endif /* !IN_MPERS */
    261 
    262 #endif /* !XLAT_MACROS_ONLY */
    263