signal32.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Copyright (C) 2001 Matthew Wilcox <willy at parisc-linux.org>
  3. * Copyright (C) 2003 Carlos O'Donell <carlos at parisc-linux.org>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  18. */
  19. #ifndef _PARISC64_KERNEL_SIGNAL32_H
  20. #define _PARISC64_KERNEL_SIGNAL32_H
  21. #include <linux/compat.h>
  22. #include <asm/compat_signal.h>
  23. #include <asm/compat_rt_sigframe.h>
  24. /* ELF32 signal handling */
  25. struct k_sigaction32 {
  26. struct compat_sigaction sa;
  27. };
  28. void sigset_32to64(sigset_t *s64, compat_sigset_t *s32);
  29. void sigset_64to32(compat_sigset_t *s32, sigset_t *s64);
  30. int do_sigaltstack32 (const compat_stack_t __user *uss32,
  31. compat_stack_t __user *uoss32, unsigned long sp);
  32. long restore_sigcontext32(struct compat_sigcontext __user *sc,
  33. struct compat_regfile __user *rf,
  34. struct pt_regs *regs);
  35. long setup_sigcontext32(struct compat_sigcontext __user *sc,
  36. struct compat_regfile __user *rf,
  37. struct pt_regs *regs, int in_syscall);
  38. #endif