sigact.h 394 B

12345678910111213141516171819202122
  1. /*
  2. * Part of Scheme 48 1.9. See file COPYING for notices and license.
  3. *
  4. * Authors: Richard Kelsey, Jonathan Rees
  5. */
  6. /*
  7. * If we don't have sigaction, we fake it using signal.
  8. */
  9. #if ! defined(HAVE_SIGACTION)
  10. struct sigaction {
  11. void (*sa_handler)();
  12. int sa_mask;
  13. int sa_flags;
  14. };
  15. #define sigaction(sig, act, oact) signal((sig), (act)->sa_handler)
  16. #define sigemptyset(ign) 0
  17. #endif