73 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			C
		
	
	
	
			
		
		
	
	
			73 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			C
		
	
	
	
/* Generated by ./xlat/gen.sh from ./xlat/sigpoll_codes.in; do not edit. */
 | 
						|
 | 
						|
#include "gcc_compat.h"
 | 
						|
#include "static_assert.h"
 | 
						|
 | 
						|
#if defined(POLL_IN) || (defined(HAVE_DECL_POLL_IN) && HAVE_DECL_POLL_IN)
 | 
						|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
 | 
						|
static_assert((POLL_IN) == (1), "POLL_IN != 1");
 | 
						|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
 | 
						|
#else
 | 
						|
# define POLL_IN 1
 | 
						|
#endif
 | 
						|
#if defined(POLL_OUT) || (defined(HAVE_DECL_POLL_OUT) && HAVE_DECL_POLL_OUT)
 | 
						|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
 | 
						|
static_assert((POLL_OUT) == (2), "POLL_OUT != 2");
 | 
						|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
 | 
						|
#else
 | 
						|
# define POLL_OUT 2
 | 
						|
#endif
 | 
						|
#if defined(POLL_MSG) || (defined(HAVE_DECL_POLL_MSG) && HAVE_DECL_POLL_MSG)
 | 
						|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
 | 
						|
static_assert((POLL_MSG) == (3), "POLL_MSG != 3");
 | 
						|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
 | 
						|
#else
 | 
						|
# define POLL_MSG 3
 | 
						|
#endif
 | 
						|
#if defined(POLL_ERR) || (defined(HAVE_DECL_POLL_ERR) && HAVE_DECL_POLL_ERR)
 | 
						|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
 | 
						|
static_assert((POLL_ERR) == (4), "POLL_ERR != 4");
 | 
						|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
 | 
						|
#else
 | 
						|
# define POLL_ERR 4
 | 
						|
#endif
 | 
						|
#if defined(POLL_PRI) || (defined(HAVE_DECL_POLL_PRI) && HAVE_DECL_POLL_PRI)
 | 
						|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
 | 
						|
static_assert((POLL_PRI) == (5), "POLL_PRI != 5");
 | 
						|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
 | 
						|
#else
 | 
						|
# define POLL_PRI 5
 | 
						|
#endif
 | 
						|
#if defined(POLL_HUP) || (defined(HAVE_DECL_POLL_HUP) && HAVE_DECL_POLL_HUP)
 | 
						|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
 | 
						|
static_assert((POLL_HUP) == (6), "POLL_HUP != 6");
 | 
						|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
 | 
						|
#else
 | 
						|
# define POLL_HUP 6
 | 
						|
#endif
 | 
						|
 | 
						|
#ifndef XLAT_MACROS_ONLY
 | 
						|
 | 
						|
# ifdef IN_MPERS
 | 
						|
 | 
						|
extern const struct xlat sigpoll_codes[];
 | 
						|
 | 
						|
# else
 | 
						|
 | 
						|
#  if !(defined HAVE_M32_MPERS || defined HAVE_MX32_MPERS)
 | 
						|
static
 | 
						|
#  endif
 | 
						|
const struct xlat sigpoll_codes[] = {
 | 
						|
 XLAT(POLL_IN),
 | 
						|
 XLAT(POLL_OUT),
 | 
						|
 XLAT(POLL_MSG),
 | 
						|
 XLAT(POLL_ERR),
 | 
						|
 XLAT(POLL_PRI),
 | 
						|
 XLAT(POLL_HUP),
 | 
						|
 XLAT_END
 | 
						|
};
 | 
						|
 | 
						|
# endif /* !IN_MPERS */
 | 
						|
 | 
						|
#endif /* !XLAT_MACROS_ONLY */
 |