You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
103 lines
3.1 KiB
103 lines
3.1 KiB
/* Generated by ./xlat/gen.sh from ./xlat/statfs_flags.in; do not edit. */
|
|
|
|
#include "gcc_compat.h"
|
|
#include "static_assert.h"
|
|
|
|
#if defined(ST_VALID) || (defined(HAVE_DECL_ST_VALID) && HAVE_DECL_ST_VALID)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((ST_VALID) == (0x0020), "ST_VALID != 0x0020");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define ST_VALID 0x0020
|
|
#endif
|
|
#if defined(ST_RDONLY) || (defined(HAVE_DECL_ST_RDONLY) && HAVE_DECL_ST_RDONLY)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((ST_RDONLY) == (0x0001), "ST_RDONLY != 0x0001");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define ST_RDONLY 0x0001
|
|
#endif
|
|
#if defined(ST_NOSUID) || (defined(HAVE_DECL_ST_NOSUID) && HAVE_DECL_ST_NOSUID)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((ST_NOSUID) == (0x0002), "ST_NOSUID != 0x0002");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define ST_NOSUID 0x0002
|
|
#endif
|
|
#if defined(ST_NODEV) || (defined(HAVE_DECL_ST_NODEV) && HAVE_DECL_ST_NODEV)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((ST_NODEV) == (0x0004), "ST_NODEV != 0x0004");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define ST_NODEV 0x0004
|
|
#endif
|
|
#if defined(ST_NOEXEC) || (defined(HAVE_DECL_ST_NOEXEC) && HAVE_DECL_ST_NOEXEC)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((ST_NOEXEC) == (0x0008), "ST_NOEXEC != 0x0008");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define ST_NOEXEC 0x0008
|
|
#endif
|
|
#if defined(ST_SYNCHRONOUS) || (defined(HAVE_DECL_ST_SYNCHRONOUS) && HAVE_DECL_ST_SYNCHRONOUS)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((ST_SYNCHRONOUS) == (0x0010), "ST_SYNCHRONOUS != 0x0010");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define ST_SYNCHRONOUS 0x0010
|
|
#endif
|
|
#if defined(ST_MANDLOCK) || (defined(HAVE_DECL_ST_MANDLOCK) && HAVE_DECL_ST_MANDLOCK)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((ST_MANDLOCK) == (0x0040), "ST_MANDLOCK != 0x0040");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define ST_MANDLOCK 0x0040
|
|
#endif
|
|
#if defined(ST_NOATIME) || (defined(HAVE_DECL_ST_NOATIME) && HAVE_DECL_ST_NOATIME)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((ST_NOATIME) == (0x0400), "ST_NOATIME != 0x0400");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define ST_NOATIME 0x0400
|
|
#endif
|
|
#if defined(ST_NODIRATIME) || (defined(HAVE_DECL_ST_NODIRATIME) && HAVE_DECL_ST_NODIRATIME)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((ST_NODIRATIME) == (0x0800), "ST_NODIRATIME != 0x0800");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define ST_NODIRATIME 0x0800
|
|
#endif
|
|
#if defined(ST_RELATIME) || (defined(HAVE_DECL_ST_RELATIME) && HAVE_DECL_ST_RELATIME)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((ST_RELATIME) == (0x1000), "ST_RELATIME != 0x1000");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define ST_RELATIME 0x1000
|
|
#endif
|
|
|
|
#ifndef XLAT_MACROS_ONLY
|
|
|
|
# ifdef IN_MPERS
|
|
|
|
# error static const struct xlat statfs_flags in mpers mode
|
|
|
|
# else
|
|
|
|
static
|
|
const struct xlat statfs_flags[] = {
|
|
XLAT(ST_VALID),
|
|
XLAT(ST_RDONLY),
|
|
XLAT(ST_NOSUID),
|
|
XLAT(ST_NODEV),
|
|
XLAT(ST_NOEXEC),
|
|
XLAT(ST_SYNCHRONOUS),
|
|
XLAT(ST_MANDLOCK),
|
|
XLAT(ST_NOATIME),
|
|
XLAT(ST_NODIRATIME),
|
|
XLAT(ST_RELATIME),
|
|
XLAT_END
|
|
};
|
|
|
|
# endif /* !IN_MPERS */
|
|
|
|
#endif /* !XLAT_MACROS_ONLY */
|