blob: 413abd966cad737a94f9e932895ace70da232e69 [file] [log] [blame]
Elliott Hughesabd62612013-11-08 11:45:48 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPI_ASM_SIGINFO_H
20#define _UAPI_ASM_SIGINFO_H
Tao Baod7db5942015-01-28 10:07:51 -080021#define __ARCH_SIGEV_PREAMBLE_SIZE (sizeof(long) + 2 * sizeof(int))
Elliott Hughesabd62612013-11-08 11:45:48 -080022#undef __ARCH_SI_TRAPNO
Elliott Hughesabd62612013-11-08 11:45:48 -080023#define HAVE_ARCH_SIGINFO_T
Christopher Ferris38062f92014-07-09 15:33:25 -070024#if _MIPS_SZLONG == 32
Duane Sand23003322014-06-19 15:39:29 -070025#define __ARCH_SI_PREAMBLE_SIZE (3 * sizeof(int))
Tao Baod7db5942015-01-28 10:07:51 -080026#elif _MIPS_SZLONG==64
Elliott Hughes9195a252014-04-08 10:15:06 -070027#define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int))
Christopher Ferris38062f92014-07-09 15:33:25 -070028#else
Christopher Ferris38062f92014-07-09 15:33:25 -070029#error _MIPS_SZLONG neither 32 nor 64
Elliott Hughes9195a252014-04-08 10:15:06 -070030#endif
Christopher Ferris38062f92014-07-09 15:33:25 -070031#define __ARCH_SIGSYS
Elliott Hughesabd62612013-11-08 11:45:48 -080032#include <asm-generic/siginfo.h>
33typedef struct siginfo {
Tao Baod7db5942015-01-28 10:07:51 -080034 int si_signo;
35 int si_code;
36 int si_errno;
Tao Baod7db5942015-01-28 10:07:51 -080037 int __pad0[SI_MAX_SIZE / sizeof(int) - SI_PAD_SIZE - 3];
38 union {
39 int _pad[SI_PAD_SIZE];
40 struct {
Christopher Ferris106b3a82016-08-24 12:15:38 -070041 __kernel_pid_t _pid;
Tao Baod7db5942015-01-28 10:07:51 -080042 __ARCH_SI_UID_T _uid;
43 } _kill;
44 struct {
Christopher Ferris106b3a82016-08-24 12:15:38 -070045 __kernel_timer_t _tid;
Tao Baod7db5942015-01-28 10:07:51 -080046 int _overrun;
47 char _pad[sizeof(__ARCH_SI_UID_T) - sizeof(int)];
48 sigval_t _sigval;
Tao Baod7db5942015-01-28 10:07:51 -080049 int _sys_private;
50 } _timer;
51 struct {
Christopher Ferris106b3a82016-08-24 12:15:38 -070052 __kernel_pid_t _pid;
Tao Baod7db5942015-01-28 10:07:51 -080053 __ARCH_SI_UID_T _uid;
54 sigval_t _sigval;
55 } _rt;
56 struct {
Christopher Ferris106b3a82016-08-24 12:15:38 -070057 __kernel_pid_t _pid;
Tao Baod7db5942015-01-28 10:07:51 -080058 __ARCH_SI_UID_T _uid;
59 int _status;
Christopher Ferris106b3a82016-08-24 12:15:38 -070060 __kernel_clock_t _utime;
61 __kernel_clock_t _stime;
Tao Baod7db5942015-01-28 10:07:51 -080062 } _sigchld;
63 struct {
Christopher Ferris106b3a82016-08-24 12:15:38 -070064 __kernel_pid_t _pid;
65 __kernel_clock_t _utime;
Tao Baod7db5942015-01-28 10:07:51 -080066 int _status;
Christopher Ferris106b3a82016-08-24 12:15:38 -070067 __kernel_clock_t _stime;
Tao Baod7db5942015-01-28 10:07:51 -080068 } _irix_sigchld;
Tao Baod7db5942015-01-28 10:07:51 -080069 struct {
70 void __user * _addr;
Elliott Hughesabd62612013-11-08 11:45:48 -080071#ifdef __ARCH_SI_TRAPNO
Tao Baod7db5942015-01-28 10:07:51 -080072 int _trapno;
Elliott Hughesabd62612013-11-08 11:45:48 -080073#endif
Tao Baod7db5942015-01-28 10:07:51 -080074 short _addr_lsb;
Christopher Ferris106b3a82016-08-24 12:15:38 -070075 union {
76 struct {
77 void __user * _lower;
78 void __user * _upper;
Christopher Ferris106b3a82016-08-24 12:15:38 -070079 } _addr_bnd;
80 __u32 _pkey;
81 };
Tao Baod7db5942015-01-28 10:07:51 -080082 } _sigfault;
83 struct {
Tao Baod7db5942015-01-28 10:07:51 -080084 __ARCH_SI_BAND_T _band;
85 int _fd;
86 } _sigpoll;
87 struct {
Tao Baod7db5942015-01-28 10:07:51 -080088 void __user * _call_addr;
89 int _syscall;
90 unsigned int _arch;
91 } _sigsys;
Tao Baod7db5942015-01-28 10:07:51 -080092 } _sifields;
Elliott Hughesabd62612013-11-08 11:45:48 -080093} siginfo_t;
Elliott Hughesabd62612013-11-08 11:45:48 -080094#undef SI_ASYNCIO
95#undef SI_TIMER
96#undef SI_MESGQ
Tao Baod7db5942015-01-28 10:07:51 -080097#define SI_ASYNCIO - 2
Christopher Ferris1308ad32017-11-14 17:32:13 -080098#define SI_TIMER - 3
99#define SI_MESGQ - 4
Christopher Ferris106b3a82016-08-24 12:15:38 -0700100#endif