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 * We duplicate the generic versions - <asm-generic/siginfo.h> is just borked
22 #define HAVE_ARCH_COPY_SIGINFO
26 * Careful to keep union _sifields from shifting ...
28 #if __SIZEOF_LONG__ == 4
29 #define __ARCH_SI_PREAMBLE_SIZE (3 * sizeof(int))
31 #if __SIZEOF_LONG__ == 8
32 #define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int))
35 #include <asm-generic/siginfo.h>
37 typedef struct siginfo {
41 int __pad0[SI_MAX_SIZE / sizeof(int) - SI_PAD_SIZE - 3];
44 int _pad[SI_PAD_SIZE];
48 pid_t _pid; /* sender's pid */
49 __ARCH_SI_UID_T _uid; /* sender's uid */
54 timer_t _tid; /* timer id */
55 int _overrun; /* overrun count */
56 char _pad[sizeof( __ARCH_SI_UID_T) - sizeof(int)];
57 sigval_t _sigval; /* same as below */
58 int _sys_private; /* not to be passed to user */
61 /* POSIX.1b signals */
63 pid_t _pid; /* sender's pid */
64 __ARCH_SI_UID_T _uid; /* sender's uid */
70 pid_t _pid; /* which child */
71 __ARCH_SI_UID_T _uid; /* sender's uid */
72 int _status; /* exit code */
79 pid_t _pid; /* which child */
81 int _status; /* exit code */
85 /* SIGILL, SIGFPE, SIGSEGV, SIGBUS */
87 void __user *_addr; /* faulting insn/memory ref. */
88 #ifdef __ARCH_SI_TRAPNO
89 int _trapno; /* TRAP # which caused the signal */
94 /* SIGPOLL, SIGXFSZ (To do ...) */
96 __ARCH_SI_BAND_T _band; /* POLL_IN, POLL_OUT, POLL_MSG */
104 * Again these have been chosen to be IRIX compatible.
109 #define SI_ASYNCIO -2 /* sent by AIO completion */
110 #define SI_TIMER __SI_CODE(__SI_TIMER, -3) /* sent by timer expiration */
111 #define SI_MESGQ __SI_CODE(__SI_MESGQ, -4) /* sent by real time mesq state change */
114 #endif /* _UAPI_ASM_SIGINFO_H */