siginfo.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * This file is subject to the terms and conditions of the GNU General Public
  4. * License. See the file "COPYING" in the main directory of this archive
  5. * for more details.
  6. *
  7. * Copyright (C) 1998, 1999, 2001, 2003 Ralf Baechle
  8. * Copyright (C) 2000, 2001 Silicon Graphics, Inc.
  9. */
  10. #ifndef _UAPI_ASM_SIGINFO_H
  11. #define _UAPI_ASM_SIGINFO_H
  12. #define __ARCH_SIGEV_PREAMBLE_SIZE (sizeof(long) + 2*sizeof(int))
  13. #undef __ARCH_SI_TRAPNO /* exception code needs to fill this ... */
  14. /*
  15. * Careful to keep union _sifields from shifting ...
  16. */
  17. #if _MIPS_SZLONG == 32
  18. #define __ARCH_SI_PREAMBLE_SIZE (3 * sizeof(int))
  19. #elif _MIPS_SZLONG == 64
  20. #define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int))
  21. #else
  22. #error _MIPS_SZLONG neither 32 nor 64
  23. #endif
  24. #define __ARCH_HAS_SWAPPED_SIGINFO
  25. #include <asm-generic/siginfo.h>
  26. /*
  27. * si_code values
  28. * Again these have been chosen to be IRIX compatible.
  29. */
  30. #undef SI_ASYNCIO
  31. #undef SI_TIMER
  32. #undef SI_MESGQ
  33. #define SI_ASYNCIO -2 /* sent by AIO completion */
  34. #define SI_TIMER -3 /* sent by timer expiration */
  35. #define SI_MESGQ -4 /* sent by real time mesq state change */
  36. #endif /* _UAPI_ASM_SIGINFO_H */