signal.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #ifndef _SIGNAL_H
  2. # include <signal/signal.h>
  3. # ifndef _ISOMAC
  4. # include <sigsetops.h>
  5. libc_hidden_proto (sigemptyset)
  6. libc_hidden_proto (sigfillset)
  7. libc_hidden_proto (sigaddset)
  8. libc_hidden_proto (sigdelset)
  9. libc_hidden_proto (sigismember)
  10. extern int __sigpause (int sig_or_mask, int is_sig);
  11. libc_hidden_proto (__sigpause)
  12. libc_hidden_proto (raise)
  13. libc_hidden_proto (__libc_current_sigrtmin)
  14. libc_hidden_proto (__libc_current_sigrtmax)
  15. extern const char * const __sys_siglist[_NSIG] attribute_hidden;
  16. extern const char * const __sys_sigabbrev[_NSIG] attribute_hidden;
  17. /* Now define the internal interfaces. */
  18. extern __sighandler_t __bsd_signal (int __sig, __sighandler_t __handler);
  19. extern int __kill (__pid_t __pid, int __sig);
  20. libc_hidden_proto (__kill)
  21. extern int __sigaction (int __sig, const struct sigaction *__restrict __act,
  22. struct sigaction *__restrict __oact);
  23. libc_hidden_proto (__sigaction)
  24. extern int __sigblock (int __mask);
  25. libc_hidden_proto (__sigblock)
  26. extern int __sigsetmask (int __mask);
  27. extern int __sigprocmask (int __how,
  28. const sigset_t *__set, sigset_t *__oset);
  29. libc_hidden_proto (__sigprocmask)
  30. extern int __sigsuspend (const sigset_t *__set);
  31. libc_hidden_proto (__sigsuspend)
  32. extern int __sigwait (const sigset_t *__set, int *__sig);
  33. libc_hidden_proto (__sigwait)
  34. extern int __sigwaitinfo (const sigset_t *__set, siginfo_t *__info);
  35. libc_hidden_proto (__sigwaitinfo)
  36. #if __TIMESIZE == 64
  37. # define __sigtimedwait64 __sigtimedwait
  38. #else
  39. # include <struct___timespec64.h>
  40. extern int __sigtimedwait64 (const sigset_t *__set, siginfo_t *__info,
  41. const struct __timespec64 *__timeout);
  42. libc_hidden_proto (__sigtimedwait64)
  43. #endif
  44. extern int __sigtimedwait (const sigset_t *__set, siginfo_t *__info,
  45. const struct timespec *__timeout);
  46. libc_hidden_proto (__sigtimedwait)
  47. extern int __sigqueue (__pid_t __pid, int __sig,
  48. const union sigval __val);
  49. #ifdef __USE_MISC
  50. extern int __sigreturn (struct sigcontext *__scp);
  51. #endif
  52. extern int __sigaltstack (const stack_t *__ss,
  53. stack_t *__oss);
  54. libc_hidden_proto (__sigaltstack)
  55. extern int __libc_sigaction (int sig, const struct sigaction *act,
  56. struct sigaction *oact);
  57. libc_hidden_proto (__libc_sigaction)
  58. extern int __default_sigpause (int mask);
  59. extern int __xpg_sigpause (int sig);
  60. /* Allocate real-time signal with highest/lowest available priority. */
  61. extern int __libc_allocate_rtsig (int __high);
  62. # if IS_IN (rtld)
  63. extern __typeof (__sigaction) __sigaction attribute_hidden;
  64. extern __typeof (__libc_sigaction) __libc_sigaction attribute_hidden;
  65. # endif
  66. # endif /* _ISOMAC */
  67. #endif /* signal.h */