• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Generated by ./xlat/gen.sh from ./xlat/usagewho.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(RUSAGE_SELF) || (defined(HAVE_DECL_RUSAGE_SELF) && HAVE_DECL_RUSAGE_SELF)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((RUSAGE_SELF) == (0), "RUSAGE_SELF != 0");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define RUSAGE_SELF 0
12 #endif
13 #if defined(RUSAGE_CHILDREN) || (defined(HAVE_DECL_RUSAGE_CHILDREN) && HAVE_DECL_RUSAGE_CHILDREN)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((RUSAGE_CHILDREN) == ((-1)), "RUSAGE_CHILDREN != (-1)");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define RUSAGE_CHILDREN (-1)
19 #endif
20 #if defined(RUSAGE_BOTH) || (defined(HAVE_DECL_RUSAGE_BOTH) && HAVE_DECL_RUSAGE_BOTH)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((RUSAGE_BOTH) == ((-2)), "RUSAGE_BOTH != (-2)");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define RUSAGE_BOTH (-2)
26 #endif
27 #if defined(RUSAGE_THREAD) || (defined(HAVE_DECL_RUSAGE_THREAD) && HAVE_DECL_RUSAGE_THREAD)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((RUSAGE_THREAD) == (1), "RUSAGE_THREAD != 1");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define RUSAGE_THREAD 1
33 #endif
34 
35 #ifndef XLAT_MACROS_ONLY
36 
37 # ifdef IN_MPERS
38 
39 #  error static const struct xlat usagewho in mpers mode
40 
41 # else
42 
43 static
44 const struct xlat usagewho[] = {
45  XLAT(RUSAGE_SELF),
46  XLAT(RUSAGE_CHILDREN),
47  XLAT(RUSAGE_BOTH),
48  XLAT(RUSAGE_THREAD),
49  XLAT_END
50 };
51 
52 # endif /* !IN_MPERS */
53 
54 #endif /* !XLAT_MACROS_ONLY */
55