• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Generated by ./xlat/gen.sh from ./xlat/kcmp_types.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(KCMP_FILE) || (defined(HAVE_DECL_KCMP_FILE) && HAVE_DECL_KCMP_FILE)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((KCMP_FILE) == (0), "KCMP_FILE != 0");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define KCMP_FILE 0
12 #endif
13 #if defined(KCMP_VM) || (defined(HAVE_DECL_KCMP_VM) && HAVE_DECL_KCMP_VM)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((KCMP_VM) == (1), "KCMP_VM != 1");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define KCMP_VM 1
19 #endif
20 #if defined(KCMP_FILES) || (defined(HAVE_DECL_KCMP_FILES) && HAVE_DECL_KCMP_FILES)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((KCMP_FILES) == (2), "KCMP_FILES != 2");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define KCMP_FILES 2
26 #endif
27 #if defined(KCMP_FS) || (defined(HAVE_DECL_KCMP_FS) && HAVE_DECL_KCMP_FS)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((KCMP_FS) == (3), "KCMP_FS != 3");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define KCMP_FS 3
33 #endif
34 #if defined(KCMP_SIGHAND) || (defined(HAVE_DECL_KCMP_SIGHAND) && HAVE_DECL_KCMP_SIGHAND)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((KCMP_SIGHAND) == (4), "KCMP_SIGHAND != 4");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define KCMP_SIGHAND 4
40 #endif
41 #if defined(KCMP_IO) || (defined(HAVE_DECL_KCMP_IO) && HAVE_DECL_KCMP_IO)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((KCMP_IO) == (5), "KCMP_IO != 5");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define KCMP_IO 5
47 #endif
48 #if defined(KCMP_SYSVSEM) || (defined(HAVE_DECL_KCMP_SYSVSEM) && HAVE_DECL_KCMP_SYSVSEM)
49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
50 static_assert((KCMP_SYSVSEM) == (6), "KCMP_SYSVSEM != 6");
51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
52 #else
53 # define KCMP_SYSVSEM 6
54 #endif
55 #if defined(KCMP_EPOLL_TFD) || (defined(HAVE_DECL_KCMP_EPOLL_TFD) && HAVE_DECL_KCMP_EPOLL_TFD)
56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
57 static_assert((KCMP_EPOLL_TFD) == (7), "KCMP_EPOLL_TFD != 7");
58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
59 #else
60 # define KCMP_EPOLL_TFD 7
61 #endif
62 
63 #ifndef XLAT_MACROS_ONLY
64 
65 # ifdef IN_MPERS
66 
67 #  error static const struct xlat kcmp_types in mpers mode
68 
69 # else
70 
71 static
72 const struct xlat kcmp_types[] = {
73  XLAT(KCMP_FILE),
74  XLAT(KCMP_VM),
75  XLAT(KCMP_FILES),
76  XLAT(KCMP_FS),
77  XLAT(KCMP_SIGHAND),
78  XLAT(KCMP_IO),
79  XLAT(KCMP_SYSVSEM),
80  XLAT(KCMP_EPOLL_TFD),
81  XLAT_END
82 };
83 
84 # endif /* !IN_MPERS */
85 
86 #endif /* !XLAT_MACROS_ONLY */
87