blob: 758327c858ae7661234c2e96623929ce6bbb1ebe [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
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define HAVE_ARCH_SIGINFO_T
Christopher Ferris38062f92014-07-09 15:33:25 -070025#if _MIPS_SZLONG == 32
Duane Sand23003322014-06-19 15:39:29 -070026#define __ARCH_SI_PREAMBLE_SIZE (3 * sizeof(int))
Tao Baod7db5942015-01-28 10:07:51 -080027#elif _MIPS_SZLONG==64
Christopher Ferris05d08e92016-02-04 13:16:38 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes9195a252014-04-08 10:15:06 -070029#define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int))
Christopher Ferris38062f92014-07-09 15:33:25 -070030#else
Christopher Ferris38062f92014-07-09 15:33:25 -070031#error _MIPS_SZLONG neither 32 nor 64
Elliott Hughes9195a252014-04-08 10:15:06 -070032#endif
Christopher Ferris05d08e92016-02-04 13:16:38 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070034#define __ARCH_SIGSYS
Elliott Hughesabd62612013-11-08 11:45:48 -080035#include <asm-generic/siginfo.h>
36typedef struct siginfo {
Tao Baod7db5942015-01-28 10:07:51 -080037 int si_signo;
Christopher Ferris05d08e92016-02-04 13:16:38 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 int si_code;
40 int si_errno;
Tao Baod7db5942015-01-28 10:07:51 -080041 int __pad0[SI_MAX_SIZE / sizeof(int) - SI_PAD_SIZE - 3];
42 union {
Christopher Ferris05d08e92016-02-04 13:16:38 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 int _pad[SI_PAD_SIZE];
45 struct {
Tao Baod7db5942015-01-28 10:07:51 -080046 pid_t _pid;
47 __ARCH_SI_UID_T _uid;
Christopher Ferris05d08e92016-02-04 13:16:38 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 } _kill;
50 struct {
Tao Baod7db5942015-01-28 10:07:51 -080051 timer_t _tid;
52 int _overrun;
Christopher Ferris05d08e92016-02-04 13:16:38 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 char _pad[sizeof(__ARCH_SI_UID_T) - sizeof(int)];
55 sigval_t _sigval;
Tao Baod7db5942015-01-28 10:07:51 -080056 int _sys_private;
57 } _timer;
Christopher Ferris05d08e92016-02-04 13:16:38 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 struct {
60 pid_t _pid;
Tao Baod7db5942015-01-28 10:07:51 -080061 __ARCH_SI_UID_T _uid;
62 sigval_t _sigval;
Christopher Ferris05d08e92016-02-04 13:16:38 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 } _rt;
65 struct {
Tao Baod7db5942015-01-28 10:07:51 -080066 pid_t _pid;
67 __ARCH_SI_UID_T _uid;
Christopher Ferris05d08e92016-02-04 13:16:38 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 int _status;
70 clock_t _utime;
Tao Baod7db5942015-01-28 10:07:51 -080071 clock_t _stime;
72 } _sigchld;
Christopher Ferris05d08e92016-02-04 13:16:38 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 struct {
75 pid_t _pid;
Tao Baod7db5942015-01-28 10:07:51 -080076 clock_t _utime;
77 int _status;
Christopher Ferris05d08e92016-02-04 13:16:38 -080078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 clock_t _stime;
80 } _irix_sigchld;
Tao Baod7db5942015-01-28 10:07:51 -080081 struct {
82 void __user * _addr;
Christopher Ferris05d08e92016-02-04 13:16:38 -080083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080084#ifdef __ARCH_SI_TRAPNO
Tao Baod7db5942015-01-28 10:07:51 -080085 int _trapno;
Elliott Hughesabd62612013-11-08 11:45:48 -080086#endif
Tao Baod7db5942015-01-28 10:07:51 -080087 short _addr_lsb;
Christopher Ferris05d08e92016-02-04 13:16:38 -080088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 struct {
90 void __user * _lower;
91 void __user * _upper;
92 } _addr_bnd;
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 } _sigfault;
95 struct {
Tao Baod7db5942015-01-28 10:07:51 -080096 __ARCH_SI_BAND_T _band;
97 int _fd;
Christopher Ferris05d08e92016-02-04 13:16:38 -080098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080099 } _sigpoll;
100 struct {
Tao Baod7db5942015-01-28 10:07:51 -0800101 void __user * _call_addr;
102 int _syscall;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800104 unsigned int _arch;
105 } _sigsys;
Tao Baod7db5942015-01-28 10:07:51 -0800106 } _sifields;
Elliott Hughesabd62612013-11-08 11:45:48 -0800107} siginfo_t;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800109#undef SI_ASYNCIO
110#undef SI_TIMER
111#undef SI_MESGQ
Tao Baod7db5942015-01-28 10:07:51 -0800112#define SI_ASYNCIO - 2
Christopher Ferris05d08e92016-02-04 13:16:38 -0800113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800114#define SI_TIMER __SI_CODE(__SI_TIMER, - 3)
115#define SI_MESGQ __SI_CODE(__SI_MESGQ, - 4)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800116#include <asm-generic/siginfo.h>
Elliott Hughesabd62612013-11-08 11:45:48 -0800117#endif
Christopher Ferris05d08e92016-02-04 13:16:38 -0800118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */