__rt_sigwaitinfo.c 595 B

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