blob: 45b418a3c49fdea54d0dd553b4a7024286c7da29 [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;
Elliott Hughesabd62612013-11-08 11:45:48 -080027#define __ARCH_SI_PREAMBLE_SIZE (3 * sizeof(int))
Elliott Hughesabd62612013-11-08 11:45:48 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes9195a252014-04-08 10:15:06 -070029#ifdef __LP64__
30#define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int))
31#endif
Elliott Hughesabd62612013-11-08 11:45:48 -080032#include <asm-generic/siginfo.h>
Elliott Hughes9195a252014-04-08 10:15:06 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080034typedef struct siginfo {
Elliott Hughesabd62612013-11-08 11:45:48 -080035 int si_signo;
36 int si_code;
37 int si_errno;
Elliott Hughes9195a252014-04-08 10:15:06 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080039 int __pad0[SI_MAX_SIZE / sizeof(int) - SI_PAD_SIZE - 3];
Elliott Hughesabd62612013-11-08 11:45:48 -080040 union {
41 int _pad[SI_PAD_SIZE];
42 struct {
Elliott Hughes9195a252014-04-08 10:15:06 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080044 pid_t _pid;
Elliott Hughesabd62612013-11-08 11:45:48 -080045 __ARCH_SI_UID_T _uid;
46 } _kill;
47 struct {
Elliott Hughes9195a252014-04-08 10:15:06 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080049 timer_t _tid;
Elliott Hughesabd62612013-11-08 11:45:48 -080050 int _overrun;
51 char _pad[sizeof( __ARCH_SI_UID_T) - sizeof(int)];
52 sigval_t _sigval;
Elliott Hughes9195a252014-04-08 10:15:06 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080054 int _sys_private;
Elliott Hughesabd62612013-11-08 11:45:48 -080055 } _timer;
56 struct {
57 pid_t _pid;
Elliott Hughes9195a252014-04-08 10:15:06 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080059 __ARCH_SI_UID_T _uid;
Elliott Hughesabd62612013-11-08 11:45:48 -080060 sigval_t _sigval;
61 } _rt;
62 struct {
Elliott Hughes9195a252014-04-08 10:15:06 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080064 pid_t _pid;
Elliott Hughesabd62612013-11-08 11:45:48 -080065 __ARCH_SI_UID_T _uid;
66 int _status;
67 clock_t _utime;
Elliott Hughes9195a252014-04-08 10:15:06 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080069 clock_t _stime;
Elliott Hughesabd62612013-11-08 11:45:48 -080070 } _sigchld;
71 struct {
72 pid_t _pid;
Elliott Hughes9195a252014-04-08 10:15:06 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080074 clock_t _utime;
Elliott Hughesabd62612013-11-08 11:45:48 -080075 int _status;
76 clock_t _stime;
77 } _irix_sigchld;
Elliott Hughes9195a252014-04-08 10:15:06 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080079 struct {
Elliott Hughesabd62612013-11-08 11:45:48 -080080 void __user *_addr;
81#ifdef __ARCH_SI_TRAPNO
82 int _trapno;
Elliott Hughes9195a252014-04-08 10:15:06 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080084#endif
Elliott Hughesabd62612013-11-08 11:45:48 -080085 short _addr_lsb;
86 } _sigfault;
87 struct {
Elliott Hughes9195a252014-04-08 10:15:06 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080089 __ARCH_SI_BAND_T _band;
Elliott Hughesabd62612013-11-08 11:45:48 -080090 int _fd;
91 } _sigpoll;
92 } _sifields;
Elliott Hughes9195a252014-04-08 10:15:06 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080094} siginfo_t;
Elliott Hughesabd62612013-11-08 11:45:48 -080095#undef SI_ASYNCIO
96#undef SI_TIMER
97#undef SI_MESGQ
Elliott Hughes9195a252014-04-08 10:15:06 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080099#define SI_ASYNCIO -2
Elliott Hughesabd62612013-11-08 11:45:48 -0800100#define SI_TIMER __SI_CODE(__SI_TIMER, -3)
101#define SI_MESGQ __SI_CODE(__SI_MESGQ, -4)
Elliott Hughesabd62612013-11-08 11:45:48 -0800102#endif
Elliott Hughes9195a252014-04-08 10:15:06 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */