/* Define a mask of flags required by POSIX. Some implementations
provide other flags as extensions, such as SA_RESTORER, that we
must ignore in this test. */
-#define SA_MASK (SA_NOCLDSTOP | SA_ONSTACK | SA_RESETHAND | SA_RESTART \
- SA_SIGINFO | SA_NOCLDWAIT | SA_NODEFER)
+#define MASK_SA_FLAGS (SA_NOCLDSTOP | SA_ONSTACK | SA_RESETHAND | SA_RESTART \
+ SA_SIGINFO | SA_NOCLDWAIT | SA_NODEFER)
/* This test is unsafe in the presence of an asynchronous SIGABRT,
because we install a signal-handler that is intentionally not
ASSERT (raise (SIGABRT) == 0);
sa.sa_flags = SA_RESETHAND | SA_NODEFER;
ASSERT (sigaction (SIGABRT, &sa, &old_sa) == 0);
- ASSERT ((old_sa.sa_flags & SA_MASK) == 0);
+ ASSERT ((old_sa.sa_flags & MASK_SA_FLAGS) == 0);
ASSERT (old_sa.sa_handler == handler);
ASSERT (raise (SIGABRT) == 0);
sa.sa_handler = SIG_DFL;