blob: 2f95d1765e634f483e1ec513bb67ea168499f354 [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
25#define HAVE_ARCH_COPY_SIGINFO
26struct siginfo;
Christopher Ferris38062f92014-07-09 15:33:25 -070027#if _MIPS_SZLONG == 32
Elliott Hughesabd62612013-11-08 11:45:48 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Duane Sand23003322014-06-19 15:39:29 -070029#define __ARCH_SI_PREAMBLE_SIZE (3 * sizeof(int))
Tao Baod7db5942015-01-28 10:07:51 -080030#elif _MIPS_SZLONG==64
Elliott Hughes9195a252014-04-08 10:15:06 -070031#define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int))
Christopher Ferris38062f92014-07-09 15:33:25 -070032#else
Duane Sand23003322014-06-19 15:39:29 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070034#error _MIPS_SZLONG neither 32 nor 64
Elliott Hughes9195a252014-04-08 10:15:06 -070035#endif
Christopher Ferris38062f92014-07-09 15:33:25 -070036#define __ARCH_SIGSYS
Elliott Hughesabd62612013-11-08 11:45:48 -080037#include <asm-generic/siginfo.h>
Christopher Ferris38062f92014-07-09 15:33:25 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080039typedef struct siginfo {
Tao Baod7db5942015-01-28 10:07:51 -080040 int si_signo;
41 int si_code;
42 int si_errno;
Christopher Ferris38062f92014-07-09 15:33:25 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 int __pad0[SI_MAX_SIZE / sizeof(int) - SI_PAD_SIZE - 3];
45 union {
46 int _pad[SI_PAD_SIZE];
47 struct {
Christopher Ferris38062f92014-07-09 15:33:25 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 pid_t _pid;
50 __ARCH_SI_UID_T _uid;
51 } _kill;
52 struct {
Christopher Ferris38062f92014-07-09 15:33:25 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 timer_t _tid;
55 int _overrun;
56 char _pad[sizeof(__ARCH_SI_UID_T) - sizeof(int)];
57 sigval_t _sigval;
Christopher Ferris38062f92014-07-09 15:33:25 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 int _sys_private;
60 } _timer;
61 struct {
62 pid_t _pid;
Christopher Ferris38062f92014-07-09 15:33:25 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 __ARCH_SI_UID_T _uid;
65 sigval_t _sigval;
66 } _rt;
67 struct {
Christopher Ferris38062f92014-07-09 15:33:25 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 pid_t _pid;
70 __ARCH_SI_UID_T _uid;
71 int _status;
72 clock_t _utime;
Christopher Ferris38062f92014-07-09 15:33:25 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 clock_t _stime;
75 } _sigchld;
76 struct {
77 pid_t _pid;
Christopher Ferris38062f92014-07-09 15:33:25 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 clock_t _utime;
80 int _status;
81 clock_t _stime;
82 } _irix_sigchld;
Christopher Ferris38062f92014-07-09 15:33:25 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 struct {
85 void __user * _addr;
Elliott Hughesabd62612013-11-08 11:45:48 -080086#ifdef __ARCH_SI_TRAPNO
Tao Baod7db5942015-01-28 10:07:51 -080087 int _trapno;
Christopher Ferris38062f92014-07-09 15:33:25 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080089#endif
Tao Baod7db5942015-01-28 10:07:51 -080090 short _addr_lsb;
91 } _sigfault;
92 struct {
Christopher Ferris38062f92014-07-09 15:33:25 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 __ARCH_SI_BAND_T _band;
95 int _fd;
96 } _sigpoll;
97 struct {
Christopher Ferris38062f92014-07-09 15:33:25 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080099 void __user * _call_addr;
100 int _syscall;
101 unsigned int _arch;
102 } _sigsys;
Christopher Ferris38062f92014-07-09 15:33:25 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800104 } _sifields;
Elliott Hughesabd62612013-11-08 11:45:48 -0800105} siginfo_t;
Elliott Hughesabd62612013-11-08 11:45:48 -0800106#undef SI_ASYNCIO
107#undef SI_TIMER
Christopher Ferris38062f92014-07-09 15:33:25 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800109#undef SI_MESGQ
Tao Baod7db5942015-01-28 10:07:51 -0800110#define SI_ASYNCIO - 2
111#define SI_TIMER __SI_CODE(__SI_TIMER, - 3)
112#define SI_MESGQ __SI_CODE(__SI_MESGQ, - 4)
Christopher Ferris38062f92014-07-09 15:33:25 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800114#endif