sigpending.c 579 B

1234567891011121314151617181920212223242526
  1. /*
  2. * sigpending() for uClibc
  3. *
  4. * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  5. *
  6. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  7. */
  8. #include <sys/syscall.h>
  9. #if defined __USE_POSIX
  10. #include <signal.h>
  11. #undef sigpending
  12. #ifdef __NR_rt_sigpending
  13. # define __NR___rt_sigpending __NR_rt_sigpending
  14. static __inline__ _syscall2(int, __rt_sigpending, sigset_t *, set, size_t, size)
  15. int sigpending(sigset_t * set)
  16. {
  17. return __rt_sigpending(set, __SYSCALL_SIGSET_T_SIZE);
  18. }
  19. #else
  20. _syscall1(int, sigpending, sigset_t *, set)
  21. #endif
  22. #endif