1 /* Generated by ./xlat/gen.sh from ./xlat/statfs_flags.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(ST_VALID) || (defined(HAVE_DECL_ST_VALID) && HAVE_DECL_ST_VALID) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((ST_VALID) == (0x0020), "ST_VALID != 0x0020"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define ST_VALID 0x0020 12 #endif 13 #if defined(ST_RDONLY) || (defined(HAVE_DECL_ST_RDONLY) && HAVE_DECL_ST_RDONLY) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((ST_RDONLY) == (0x0001), "ST_RDONLY != 0x0001"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define ST_RDONLY 0x0001 19 #endif 20 #if defined(ST_NOSUID) || (defined(HAVE_DECL_ST_NOSUID) && HAVE_DECL_ST_NOSUID) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((ST_NOSUID) == (0x0002), "ST_NOSUID != 0x0002"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define ST_NOSUID 0x0002 26 #endif 27 #if defined(ST_NODEV) || (defined(HAVE_DECL_ST_NODEV) && HAVE_DECL_ST_NODEV) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((ST_NODEV) == (0x0004), "ST_NODEV != 0x0004"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define ST_NODEV 0x0004 33 #endif 34 #if defined(ST_NOEXEC) || (defined(HAVE_DECL_ST_NOEXEC) && HAVE_DECL_ST_NOEXEC) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((ST_NOEXEC) == (0x0008), "ST_NOEXEC != 0x0008"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define ST_NOEXEC 0x0008 40 #endif 41 #if defined(ST_SYNCHRONOUS) || (defined(HAVE_DECL_ST_SYNCHRONOUS) && HAVE_DECL_ST_SYNCHRONOUS) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((ST_SYNCHRONOUS) == (0x0010), "ST_SYNCHRONOUS != 0x0010"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define ST_SYNCHRONOUS 0x0010 47 #endif 48 #if defined(ST_MANDLOCK) || (defined(HAVE_DECL_ST_MANDLOCK) && HAVE_DECL_ST_MANDLOCK) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((ST_MANDLOCK) == (0x0040), "ST_MANDLOCK != 0x0040"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define ST_MANDLOCK 0x0040 54 #endif 55 #if defined(ST_NOATIME) || (defined(HAVE_DECL_ST_NOATIME) && HAVE_DECL_ST_NOATIME) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((ST_NOATIME) == (0x0400), "ST_NOATIME != 0x0400"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define ST_NOATIME 0x0400 61 #endif 62 #if defined(ST_NODIRATIME) || (defined(HAVE_DECL_ST_NODIRATIME) && HAVE_DECL_ST_NODIRATIME) 63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 64 static_assert((ST_NODIRATIME) == (0x0800), "ST_NODIRATIME != 0x0800"); 65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 66 #else 67 # define ST_NODIRATIME 0x0800 68 #endif 69 #if defined(ST_RELATIME) || (defined(HAVE_DECL_ST_RELATIME) && HAVE_DECL_ST_RELATIME) 70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 71 static_assert((ST_RELATIME) == (0x1000), "ST_RELATIME != 0x1000"); 72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 73 #else 74 # define ST_RELATIME 0x1000 75 #endif 76 77 #ifndef XLAT_MACROS_ONLY 78 79 # ifdef IN_MPERS 80 81 # error static const struct xlat statfs_flags in mpers mode 82 83 # else 84 85 static 86 const struct xlat statfs_flags[] = { 87 XLAT(ST_VALID), 88 XLAT(ST_RDONLY), 89 XLAT(ST_NOSUID), 90 XLAT(ST_NODEV), 91 XLAT(ST_NOEXEC), 92 XLAT(ST_SYNCHRONOUS), 93 XLAT(ST_MANDLOCK), 94 XLAT(ST_NOATIME), 95 XLAT(ST_NODIRATIME), 96 XLAT(ST_RELATIME), 97 XLAT_END 98 }; 99 100 # endif /* !IN_MPERS */ 101 102 #endif /* !XLAT_MACROS_ONLY */ 103