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.
82 lines
2.2 KiB
82 lines
2.2 KiB
4 months ago
|
/* Generated by ./xlat/gen.sh from ./xlat/msgctl_flags.in; do not edit. */
|
||
|
|
||
|
#include "gcc_compat.h"
|
||
|
#include "static_assert.h"
|
||
|
|
||
|
#if defined(IPC_RMID) || (defined(HAVE_DECL_IPC_RMID) && HAVE_DECL_IPC_RMID)
|
||
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
||
|
static_assert((IPC_RMID) == (0), "IPC_RMID != 0");
|
||
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
||
|
#else
|
||
|
# define IPC_RMID 0
|
||
|
#endif
|
||
|
#if defined(IPC_SET) || (defined(HAVE_DECL_IPC_SET) && HAVE_DECL_IPC_SET)
|
||
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
||
|
static_assert((IPC_SET) == (1), "IPC_SET != 1");
|
||
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
||
|
#else
|
||
|
# define IPC_SET 1
|
||
|
#endif
|
||
|
#if defined(IPC_STAT) || (defined(HAVE_DECL_IPC_STAT) && HAVE_DECL_IPC_STAT)
|
||
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
||
|
static_assert((IPC_STAT) == (2), "IPC_STAT != 2");
|
||
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
||
|
#else
|
||
|
# define IPC_STAT 2
|
||
|
#endif
|
||
|
#if defined(IPC_INFO) || (defined(HAVE_DECL_IPC_INFO) && HAVE_DECL_IPC_INFO)
|
||
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
||
|
static_assert((IPC_INFO) == (3), "IPC_INFO != 3");
|
||
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
||
|
#else
|
||
|
# define IPC_INFO 3
|
||
|
#endif
|
||
|
#if defined(MSG_STAT) || (defined(HAVE_DECL_MSG_STAT) && HAVE_DECL_MSG_STAT)
|
||
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
||
|
static_assert((MSG_STAT) == (11), "MSG_STAT != 11");
|
||
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
||
|
#else
|
||
|
# define MSG_STAT 11
|
||
|
#endif
|
||
|
#if defined(MSG_INFO) || (defined(HAVE_DECL_MSG_INFO) && HAVE_DECL_MSG_INFO)
|
||
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
||
|
static_assert((MSG_INFO) == (12), "MSG_INFO != 12");
|
||
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
||
|
#else
|
||
|
# define MSG_INFO 12
|
||
|
#endif
|
||
|
#if defined(MSG_STAT_ANY) || (defined(HAVE_DECL_MSG_STAT_ANY) && HAVE_DECL_MSG_STAT_ANY)
|
||
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
||
|
static_assert((MSG_STAT_ANY) == (13), "MSG_STAT_ANY != 13");
|
||
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
||
|
#else
|
||
|
# define MSG_STAT_ANY 13
|
||
|
#endif
|
||
|
|
||
|
#ifndef XLAT_MACROS_ONLY
|
||
|
|
||
|
# ifdef IN_MPERS
|
||
|
|
||
|
extern const struct xlat msgctl_flags[];
|
||
|
|
||
|
# else
|
||
|
|
||
|
# if !(defined HAVE_M32_MPERS || defined HAVE_MX32_MPERS)
|
||
|
static
|
||
|
# endif
|
||
|
const struct xlat msgctl_flags[] = {
|
||
|
|
||
|
XLAT(IPC_RMID),
|
||
|
XLAT(IPC_SET),
|
||
|
XLAT(IPC_STAT),
|
||
|
XLAT(IPC_INFO),
|
||
|
XLAT(MSG_STAT),
|
||
|
XLAT(MSG_INFO),
|
||
|
XLAT(MSG_STAT_ANY),
|
||
|
XLAT_END
|
||
|
};
|
||
|
|
||
|
# endif /* !IN_MPERS */
|
||
|
|
||
|
#endif /* !XLAT_MACROS_ONLY */
|