]>
git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - arch/mips/include/uapi/asm/siginfo.h
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 1998, 1999, 2001, 2003 Ralf Baechle
7 * Copyright (C) 2000, 2001 Silicon Graphics, Inc.
9 #ifndef _UAPI_ASM_SIGINFO_H
10 #define _UAPI_ASM_SIGINFO_H
13 #define __ARCH_SIGEV_PREAMBLE_SIZE (sizeof(long) + 2*sizeof(int))
14 #undef __ARCH_SI_TRAPNO /* exception code needs to fill this ... */
16 #define HAVE_ARCH_SIGINFO_T
19 * Careful to keep union _sifields from shifting ...
21 #if _MIPS_SZLONG == 32
22 #define __ARCH_SI_PREAMBLE_SIZE (3 * sizeof(int))
23 #elif _MIPS_SZLONG == 64
24 #define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int))
26 #error _MIPS_SZLONG neither 32 nor 64
31 #include <asm-generic/siginfo.h>
33 /* We can't use generic siginfo_t, because our si_code and si_errno are swapped */
34 typedef struct siginfo
{
38 int __pad0
[SI_MAX_SIZE
/ sizeof(int) - SI_PAD_SIZE
- 3];
41 int _pad
[SI_PAD_SIZE
];
45 __kernel_pid_t _pid
; /* sender's pid */
46 __ARCH_SI_UID_T _uid
; /* sender's uid */
51 __kernel_timer_t _tid
; /* timer id */
52 int _overrun
; /* overrun count */
53 char _pad
[sizeof( __ARCH_SI_UID_T
) - sizeof(int)];
54 sigval_t _sigval
; /* same as below */
55 int _sys_private
; /* not to be passed to user */
58 /* POSIX.1b signals */
60 __kernel_pid_t _pid
; /* sender's pid */
61 __ARCH_SI_UID_T _uid
; /* sender's uid */
67 __kernel_pid_t _pid
; /* which child */
68 __ARCH_SI_UID_T _uid
; /* sender's uid */
69 int _status
; /* exit code */
70 __kernel_clock_t _utime
;
71 __kernel_clock_t _stime
;
76 __kernel_pid_t _pid
; /* which child */
77 __kernel_clock_t _utime
;
78 int _status
; /* exit code */
79 __kernel_clock_t _stime
;
82 /* SIGILL, SIGFPE, SIGSEGV, SIGBUS */
84 void __user
*_addr
; /* faulting insn/memory ref. */
85 #ifdef __ARCH_SI_TRAPNO
86 int _trapno
; /* TRAP # which caused the signal */
90 /* used when si_code=SEGV_BNDERR */
95 /* used when si_code=SEGV_PKUERR */
100 /* SIGPOLL, SIGXFSZ (To do ...) */
102 __ARCH_SI_BAND_T _band
; /* POLL_IN, POLL_OUT, POLL_MSG */
108 void __user
*_call_addr
; /* calling user insn */
109 int _syscall
; /* triggering system call number */
110 unsigned int _arch
; /* AUDIT_ARCH_* of syscall */
117 * Again these have been chosen to be IRIX compatible.
122 #define SI_ASYNCIO -2 /* sent by AIO completion */
123 #define SI_TIMER -3 /* sent by timer expiration */
124 #define SI_MESGQ -4 /* sent by real time mesq state change */
126 #endif /* _UAPI_ASM_SIGINFO_H */