signal.h 916 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Copyright (C) 2004-2006 Atmel Corporation
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #ifndef __ASM_AVR32_SIGNAL_H
  9. #define __ASM_AVR32_SIGNAL_H
  10. #include <uapi/asm/signal.h>
  11. /* Most things should be clean enough to redefine this at will, if care
  12. is taken to make libc match. */
  13. #define _NSIG 64
  14. #define _NSIG_BPW 32
  15. #define _NSIG_WORDS (_NSIG / _NSIG_BPW)
  16. typedef unsigned long old_sigset_t; /* at least 32 bits */
  17. typedef struct {
  18. unsigned long sig[_NSIG_WORDS];
  19. } sigset_t;
  20. struct sigaction {
  21. __sighandler_t sa_handler;
  22. unsigned long sa_flags;
  23. __sigrestore_t sa_restorer;
  24. sigset_t sa_mask; /* mask last for extensibility */
  25. };
  26. struct k_sigaction {
  27. struct sigaction sa;
  28. };
  29. #include <asm/sigcontext.h>
  30. #undef __HAVE_ARCH_SIG_BITOPS
  31. #endif