/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * 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)) #undef __ARCH_SI_TRAPNO /* exception code needs to fill this ... */ #define HAVE_ARCH_SIGINFO_T /* * Careful to keep union _sifields from shifting ... */ #if _MIPS_SZLONG == 32 #define __ARCH_SI_PREAMBLE_SIZE (3 * sizeof(int)) #elif _MIPS_SZLONG == 64 #define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int)) #else #error _MIPS_SZLONG neither 32 nor 64 #endif #define __ARCH_SIGSYS #include <asm-generic/siginfo.h> /* We can't use generic siginfo_t, because our si_code and si_errno are swapped */ typedef struct siginfo { int si_signo; int si_code; int si_errno; int __pad0[SI_MAX_SIZE / sizeof(int) - SI_PAD_SIZE - 3]; union { int _pad[SI_PAD_SIZE]; /* kill() */ struct { __kernel_pid_t _pid; /* sender's pid */ __ARCH_SI_UID_T _uid; /* sender's uid */ } _kill; /* POSIX.1b timers */ struct { __kernel_timer_t _tid; /* timer id */ int _overrun; /* overrun count */ char _pad[sizeof( __ARCH_SI_UID_T) - sizeof(int)]; sigval_t _sigval; /* same as below */ int _sys_private; /* not to be passed to user */ } _timer; /* POSIX.1b signals */ struct { __kernel_pid_t _pid; /* sender's pid */ __ARCH_SI_UID_T _uid; /* sender's uid */ sigval_t _sigval; } _rt; /* SIGCHLD */ struct { __kernel_pid_t _pid; /* which child */ __ARCH_SI_UID_T _uid; /* sender's uid */ int _status; /* exit code */ __kernel_clock_t _utime; __kernel_clock_t _stime; } _sigchld; /* IRIX SIGCHLD */ struct { __kernel_pid_t _pid; /* which child */ __kernel_clock_t _utime; int _status; /* exit code */ __kernel_clock_t _stime; } _irix_sigchld; /* SIGILL, SIGFPE, SIGSEGV, SIGBUS */ struct { void __user *_addr; /* faulting insn/memory ref. */ #ifdef __ARCH_SI_TRAPNO int _trapno; /* TRAP # which caused the signal */ #endif short _addr_lsb; union { /* used when si_code=SEGV_BNDERR */ struct { void __user *_lower; void __user *_upper; } _addr_bnd; /* used when si_code=SEGV_PKUERR */ __u32 _pkey; }; } _sigfault; /* SIGPOLL, SIGXFSZ (To do ...) */ struct { __ARCH_SI_BAND_T _band; /* POLL_IN, POLL_OUT, POLL_MSG */ int _fd; } _sigpoll; /* SIGSYS */ struct { void __user *_call_addr; /* calling user insn */ int _syscall; /* triggering system call number */ unsigned int _arch; /* AUDIT_ARCH_* of syscall */ } _sigsys; } _sifields; } siginfo_t; /* * 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 */ #define SI_TIMER -3 /* sent by timer expiration */ #define SI_MESGQ -4 /* sent by real time mesq state change */ #endif /* _UAPI_ASM_SIGINFO_H */
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Kbuild | File | 123 B | 0644 |
|
auxvec.h | File | 616 B | 0644 |
|
bitfield.h | File | 766 B | 0644 |
|
bitsperlong.h | File | 244 B | 0644 |
|
break.h | File | 1.29 KB | 0644 |
|
byteorder.h | File | 580 B | 0644 |
|
cachectl.h | File | 800 B | 0644 |
|
errno.h | File | 5.66 KB | 0644 |
|
fcntl.h | File | 2.33 KB | 0644 |
|
hwcap.h | File | 231 B | 0644 |
|
inst.h | File | 27.22 KB | 0644 |
|
ioctl.h | File | 781 B | 0644 |
|
ioctls.h | File | 4.6 KB | 0644 |
|
kvm.h | File | 7.54 KB | 0644 |
|
kvm_para.h | File | 109 B | 0644 |
|
mman.h | File | 4.24 KB | 0644 |
|
msgbuf.h | File | 1.44 KB | 0644 |
|
param.h | File | 476 B | 0644 |
|
poll.h | File | 217 B | 0644 |
|
posix_types.h | File | 880 B | 0644 |
|
ptrace.h | File | 2.74 KB | 0644 |
|
reg.h | File | 5.3 KB | 0644 |
|
resource.h | File | 1.04 KB | 0644 |
|
sembuf.h | File | 666 B | 0644 |
|
setup.h | File | 183 B | 0644 |
|
sgidefs.h | File | 1.03 KB | 0644 |
|
shmbuf.h | File | 1.09 KB | 0644 |
|
sigcontext.h | File | 2.53 KB | 0644 |
|
siginfo.h | File | 3.13 KB | 0644 |
|
signal.h | File | 4.12 KB | 0644 |
|
socket.h | File | 3.33 KB | 0644 |
|
sockios.h | File | 760 B | 0644 |
|
stat.h | File | 2.87 KB | 0644 |
|
statfs.h | File | 1.94 KB | 0644 |
|
swab.h | File | 1.5 KB | 0644 |
|
sysmips.h | File | 841 B | 0644 |
|
termbits.h | File | 7.79 KB | 0644 |
|
termios.h | File | 2.09 KB | 0644 |
|
types.h | File | 922 B | 0644 |
|
ucontext.h | File | 2.15 KB | 0644 |
|
unistd.h | File | 45.04 KB | 0644 |
|