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