blob: 4abc7af27954947f619ac69c55e1f8d5b2084a88 [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
21#define __ARCH_SIGEV_PREAMBLE_SIZE (sizeof(long) + 2*sizeof(int))
22#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;
Duane Sand23003322014-06-19 15:39:29 -070027#ifdef _ABIO32
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))
30#endif
Elliott Hughes9195a252014-04-08 10:15:06 -070031#ifdef __LP64__
32#define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int))
Duane Sand23003322014-06-19 15:39:29 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes9195a252014-04-08 10:15:06 -070034#endif
Elliott Hughesabd62612013-11-08 11:45:48 -080035#include <asm-generic/siginfo.h>
36typedef struct siginfo {
Elliott Hughesabd62612013-11-08 11:45:48 -080037 int si_signo;
Duane Sand23003322014-06-19 15:39:29 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080039 int si_code;
40 int si_errno;
41 int __pad0[SI_MAX_SIZE / sizeof(int) - SI_PAD_SIZE - 3];
Elliott Hughesabd62612013-11-08 11:45:48 -080042 union {
Duane Sand23003322014-06-19 15:39:29 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080044 int _pad[SI_PAD_SIZE];
45 struct {
46 pid_t _pid;
Elliott Hughesabd62612013-11-08 11:45:48 -080047 __ARCH_SI_UID_T _uid;
Duane Sand23003322014-06-19 15:39:29 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080049 } _kill;
50 struct {
51 timer_t _tid;
Elliott Hughesabd62612013-11-08 11:45:48 -080052 int _overrun;
Duane Sand23003322014-06-19 15:39:29 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080054 char _pad[sizeof( __ARCH_SI_UID_T) - sizeof(int)];
55 sigval_t _sigval;
56 int _sys_private;
Elliott Hughesabd62612013-11-08 11:45:48 -080057 } _timer;
Duane Sand23003322014-06-19 15:39:29 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080059 struct {
60 pid_t _pid;
61 __ARCH_SI_UID_T _uid;
Elliott Hughesabd62612013-11-08 11:45:48 -080062 sigval_t _sigval;
Duane Sand23003322014-06-19 15:39:29 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080064 } _rt;
65 struct {
66 pid_t _pid;
Elliott Hughesabd62612013-11-08 11:45:48 -080067 __ARCH_SI_UID_T _uid;
Duane Sand23003322014-06-19 15:39:29 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080069 int _status;
70 clock_t _utime;
71 clock_t _stime;
Elliott Hughesabd62612013-11-08 11:45:48 -080072 } _sigchld;
Duane Sand23003322014-06-19 15:39:29 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080074 struct {
75 pid_t _pid;
76 clock_t _utime;
Elliott Hughesabd62612013-11-08 11:45:48 -080077 int _status;
Duane Sand23003322014-06-19 15:39:29 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080079 clock_t _stime;
80 } _irix_sigchld;
81 struct {
Elliott Hughesabd62612013-11-08 11:45:48 -080082 void __user *_addr;
Duane Sand23003322014-06-19 15:39:29 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080084#ifdef __ARCH_SI_TRAPNO
85 int _trapno;
86#endif
Elliott Hughesabd62612013-11-08 11:45:48 -080087 short _addr_lsb;
Duane Sand23003322014-06-19 15:39:29 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080089 } _sigfault;
90 struct {
91 __ARCH_SI_BAND_T _band;
Elliott Hughesabd62612013-11-08 11:45:48 -080092 int _fd;
Duane Sand23003322014-06-19 15:39:29 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080094 } _sigpoll;
95 } _sifields;
96} siginfo_t;
Elliott Hughesabd62612013-11-08 11:45:48 -080097#undef SI_ASYNCIO
Duane Sand23003322014-06-19 15:39:29 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080099#undef SI_TIMER
100#undef SI_MESGQ
101#define SI_ASYNCIO -2
Elliott Hughesabd62612013-11-08 11:45:48 -0800102#define SI_TIMER __SI_CODE(__SI_TIMER, -3)
Duane Sand23003322014-06-19 15:39:29 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800104#define SI_MESGQ __SI_CODE(__SI_MESGQ, -4)
Elliott Hughesabd62612013-11-08 11:45:48 -0800105#endif