__rt_sigwaitinfo.c 652 B

123456789101112131415161718192021222324
  1. /*
  2. * __rt_sigwaitinfo() for uClibc
  3. *
  4. * Copyright (C) 2006 by Steven Hill <sjhill@realitydiluted.com>
  5. * Copyright (C) 2000-2004 by Erik Andersen <andersen@codepoet.org>
  6. *
  7. * GNU Library General Public License (LGPL) version 2 or later.
  8. */
  9. #include <sys/syscall.h>
  10. #if defined(__NR_rt_sigtimedwait) || (defined(__UCLIBC_USE_TIME64__) && defined(__NR_rt_sigtimedwait_time64))
  11. # define __need_NULL
  12. # include <stddef.h>
  13. # include <signal.h>
  14. # include <cancel.h>
  15. int sigwaitinfo(const sigset_t *set, siginfo_t *info)
  16. {
  17. return sigtimedwait(set, info, NULL);
  18. }
  19. /* cancellation handled by sigtimedwait, noop on uClibc */
  20. LIBC_CANCEL_HANDLED();
  21. #endif