A couple of sig functions are obsolete in SUSv4.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
extern void psignal (int __sig, __const char *__s);
#endif /* Use misc. */
-
+#ifdef __UCLIBC_SUSV4_LEGACY__
/* The `sigpause' function has two different interfaces. The original
BSD definition defines the argument as a mask of the signal, while
the more modern interface in X/Open defines it as the signal
# define sigpause(sig) __sigpause ((sig), 1)
# endif
#endif
-
+#endif /* __UCLIBC_SUSV4_LEGACY__ */
#ifdef __USE_BSD
/* None of the following functions should be used anymore. They are here
CSRC-y := allocrtsig.c killpg.c raise.c sigaction.c sigaddset.c sigandset.c \
sigblock.c sigdelset.c sigempty.c sigfillset.c siggetmask.c \
sigisempty.c sigismem.c sigjmp.c signal.c \
- sigorset.c sigpause.c sigsetmask.c sigsetops.c sigwait.c
+ sigorset.c sigsetmask.c sigsetops.c sigwait.c
CSRC-$(UCLIBC_HAS_OBSOLETE_BSD_SIGNAL) += \
sighold.c sigignore.c sigrelse.c sigset.c
CSRC-$(UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL) += sysv_signal.c
-CSRC-$(UCLIBC_SUSV4_LEGACY) += sigintr.c
+CSRC-$(UCLIBC_SUSV4_LEGACY) += sigintr.c sigpause.c
ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y)
CSRC-y:=$(filter-out raise.c,$(CSRC-y))
endif
ifeq ($(UCLIBC_SUSV4_LEGACY),)
-TESTS_DISABLED += tst-basic5
+TESTS_DISABLED += tst-basic5 tst-cancel4 tst-cancel5 tst-cancelx4
endif
GLIBC_TESTS_DISABLED := tst-eintr1_glibc tst-eintr2_glibc \
MAKE_CANCEL_THREAD_FUNC(send, (-1, NULL, 0, 0))
MAKE_CANCEL_THREAD_FUNC(sendmsg, (-1, NULL, 0))
MAKE_CANCEL_THREAD_FUNC(sendto, (-1, NULL, 0, 0, NULL, 0))
+#ifdef __UCLIBC_SUSV4_LEGACY__
MAKE_CANCEL_THREAD_FUNC(sigpause, (0))
+#endif
MAKE_CANCEL_THREAD_FUNC(sigsuspend, (NULL))
MAKE_CANCEL_THREAD_FUNC(sigtimedwait, (NULL, NULL, NULL))
MAKE_CANCEL_THREAD_FUNC(sigwait, (NULL, NULL))