• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Generated by ./xlat/gen.sh from ./xlat/aio_cmds.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(IOCB_CMD_PREAD) || (defined(HAVE_DECL_IOCB_CMD_PREAD) && HAVE_DECL_IOCB_CMD_PREAD)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((IOCB_CMD_PREAD) == (0), "IOCB_CMD_PREAD != 0");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define IOCB_CMD_PREAD 0
12 #endif
13 #if defined(IOCB_CMD_PWRITE) || (defined(HAVE_DECL_IOCB_CMD_PWRITE) && HAVE_DECL_IOCB_CMD_PWRITE)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((IOCB_CMD_PWRITE) == (1), "IOCB_CMD_PWRITE != 1");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define IOCB_CMD_PWRITE 1
19 #endif
20 #if defined(IOCB_CMD_FSYNC) || (defined(HAVE_DECL_IOCB_CMD_FSYNC) && HAVE_DECL_IOCB_CMD_FSYNC)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((IOCB_CMD_FSYNC) == (2), "IOCB_CMD_FSYNC != 2");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define IOCB_CMD_FSYNC 2
26 #endif
27 #if defined(IOCB_CMD_FDSYNC) || (defined(HAVE_DECL_IOCB_CMD_FDSYNC) && HAVE_DECL_IOCB_CMD_FDSYNC)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((IOCB_CMD_FDSYNC) == (3), "IOCB_CMD_FDSYNC != 3");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define IOCB_CMD_FDSYNC 3
33 #endif
34 #if defined(IOCB_CMD_PREADX) || (defined(HAVE_DECL_IOCB_CMD_PREADX) && HAVE_DECL_IOCB_CMD_PREADX)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((IOCB_CMD_PREADX) == (4), "IOCB_CMD_PREADX != 4");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define IOCB_CMD_PREADX 4
40 #endif
41 #if defined(IOCB_CMD_POLL) || (defined(HAVE_DECL_IOCB_CMD_POLL) && HAVE_DECL_IOCB_CMD_POLL)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((IOCB_CMD_POLL) == (5), "IOCB_CMD_POLL != 5");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define IOCB_CMD_POLL 5
47 #endif
48 #if defined(IOCB_CMD_NOOP) || (defined(HAVE_DECL_IOCB_CMD_NOOP) && HAVE_DECL_IOCB_CMD_NOOP)
49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
50 static_assert((IOCB_CMD_NOOP) == (6), "IOCB_CMD_NOOP != 6");
51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
52 #else
53 # define IOCB_CMD_NOOP 6
54 #endif
55 #if defined(IOCB_CMD_PREADV) || (defined(HAVE_DECL_IOCB_CMD_PREADV) && HAVE_DECL_IOCB_CMD_PREADV)
56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
57 static_assert((IOCB_CMD_PREADV) == (7), "IOCB_CMD_PREADV != 7");
58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
59 #else
60 # define IOCB_CMD_PREADV 7
61 #endif
62 #if defined(IOCB_CMD_PWRITEV) || (defined(HAVE_DECL_IOCB_CMD_PWRITEV) && HAVE_DECL_IOCB_CMD_PWRITEV)
63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
64 static_assert((IOCB_CMD_PWRITEV) == (8), "IOCB_CMD_PWRITEV != 8");
65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
66 #else
67 # define IOCB_CMD_PWRITEV 8
68 #endif
69 
70 #ifndef XLAT_MACROS_ONLY
71 
72 # ifdef IN_MPERS
73 
74 #  error static const struct xlat aio_cmds in mpers mode
75 
76 # else
77 
78 static
79 const struct xlat aio_cmds[] = {
80  [IOCB_CMD_PREAD] = XLAT(IOCB_CMD_PREAD),
81  [IOCB_CMD_PWRITE] = XLAT(IOCB_CMD_PWRITE),
82  [IOCB_CMD_FSYNC] = XLAT(IOCB_CMD_FSYNC),
83  [IOCB_CMD_FDSYNC] = XLAT(IOCB_CMD_FDSYNC),
84  [IOCB_CMD_PREADX] = XLAT(IOCB_CMD_PREADX),
85  [IOCB_CMD_POLL] = XLAT(IOCB_CMD_POLL),
86  [IOCB_CMD_NOOP] = XLAT(IOCB_CMD_NOOP),
87  [IOCB_CMD_PREADV] = XLAT(IOCB_CMD_PREADV),
88  [IOCB_CMD_PWRITEV] = XLAT(IOCB_CMD_PWRITEV),
89  XLAT_END
90 };
91 
92 # endif /* !IN_MPERS */
93 
94 #endif /* !XLAT_MACROS_ONLY */
95