blob: 8412ac1acb156e93db15505b84472873ffc2deb1 [file] [log] [blame]
Raghu Gandham82fa43f2012-03-27 11:37:17 -07001/****************************************************************************
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 _ASM_SIGINFO_H
20#define _ASM_SIGINFO_H
21#define __ARCH_SIGEV_PREAMBLE_SIZE (sizeof(long) + 2*sizeof(int))
Elliott Hughesc95eb572013-01-29 18:15:55 -080022#undef __ARCH_SI_TRAPNO
Raghu Gandham82fa43f2012-03-27 11:37:17 -070023/* 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;
Raghu Gandham988ff8f2012-09-21 17:13:25 -070027#define __ARCH_SI_PREAMBLE_SIZE (3 * sizeof(int))
Raghu Gandham82fa43f2012-03-27 11:37:17 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Raghu Gandham988ff8f2012-09-21 17:13:25 -070029#include <asm-generic/siginfo.h>
Raghu Gandham82fa43f2012-03-27 11:37:17 -070030typedef struct siginfo {
31 int si_signo;
32 int si_code;
Raghu Gandham82fa43f2012-03-27 11:37:17 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Raghu Gandham988ff8f2012-09-21 17:13:25 -070034 int si_errno;
Raghu Gandham82fa43f2012-03-27 11:37:17 -070035 int __pad0[SI_MAX_SIZE / sizeof(int) - SI_PAD_SIZE - 3];
36 union {
37 int _pad[SI_PAD_SIZE];
Raghu Gandham82fa43f2012-03-27 11:37:17 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Raghu Gandham988ff8f2012-09-21 17:13:25 -070039 struct {
Raghu Gandham82fa43f2012-03-27 11:37:17 -070040 pid_t _pid;
41 __ARCH_SI_UID_T _uid;
42 } _kill;
Raghu Gandham82fa43f2012-03-27 11:37:17 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Raghu Gandham988ff8f2012-09-21 17:13:25 -070044 struct {
Raghu Gandham82fa43f2012-03-27 11:37:17 -070045 timer_t _tid;
46 int _overrun;
47 char _pad[sizeof( __ARCH_SI_UID_T) - sizeof(int)];
Raghu Gandham82fa43f2012-03-27 11:37:17 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Raghu Gandham988ff8f2012-09-21 17:13:25 -070049 sigval_t _sigval;
Raghu Gandham82fa43f2012-03-27 11:37:17 -070050 int _sys_private;
51 } _timer;
52 struct {
Raghu Gandham82fa43f2012-03-27 11:37:17 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Raghu Gandham988ff8f2012-09-21 17:13:25 -070054 pid_t _pid;
Raghu Gandham82fa43f2012-03-27 11:37:17 -070055 __ARCH_SI_UID_T _uid;
56 sigval_t _sigval;
57 } _rt;
Raghu Gandham82fa43f2012-03-27 11:37:17 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Raghu Gandham988ff8f2012-09-21 17:13:25 -070059 struct {
Raghu Gandham82fa43f2012-03-27 11:37:17 -070060 pid_t _pid;
61 __ARCH_SI_UID_T _uid;
62 int _status;
Raghu Gandham82fa43f2012-03-27 11:37:17 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Raghu Gandham988ff8f2012-09-21 17:13:25 -070064 clock_t _utime;
Raghu Gandham82fa43f2012-03-27 11:37:17 -070065 clock_t _stime;
66 } _sigchld;
67 struct {
Raghu Gandham82fa43f2012-03-27 11:37:17 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Raghu Gandham988ff8f2012-09-21 17:13:25 -070069 pid_t _pid;
Raghu Gandham82fa43f2012-03-27 11:37:17 -070070 clock_t _utime;
71 int _status;
72 clock_t _stime;
Raghu Gandham82fa43f2012-03-27 11:37:17 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Raghu Gandham988ff8f2012-09-21 17:13:25 -070074 } _irix_sigchld;
Raghu Gandham82fa43f2012-03-27 11:37:17 -070075 struct {
76 void __user *_addr;
77#ifdef __ARCH_SI_TRAPNO
Raghu Gandham82fa43f2012-03-27 11:37:17 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Raghu Gandham988ff8f2012-09-21 17:13:25 -070079 int _trapno;
Raghu Gandham82fa43f2012-03-27 11:37:17 -070080#endif
81 } _sigfault;
82 struct {
Raghu Gandham82fa43f2012-03-27 11:37:17 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Raghu Gandham988ff8f2012-09-21 17:13:25 -070084 __ARCH_SI_BAND_T _band;
Raghu Gandham82fa43f2012-03-27 11:37:17 -070085 int _fd;
86 } _sigpoll;
87 } _sifields;
Raghu Gandham82fa43f2012-03-27 11:37:17 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Raghu Gandham988ff8f2012-09-21 17:13:25 -070089} siginfo_t;
Raghu Gandham82fa43f2012-03-27 11:37:17 -070090#undef SI_ASYNCIO
91#undef SI_TIMER
92#undef SI_MESGQ
Raghu Gandham82fa43f2012-03-27 11:37:17 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080094#define SI_ASYNCIO -2
95#define SI_TIMER __SI_CODE(__SI_TIMER, -3)
96#define SI_MESGQ __SI_CODE(__SI_MESGQ, -4)
Raghu Gandham82fa43f2012-03-27 11:37:17 -070097#endif
Raghu Gandham988ff8f2012-09-21 17:13:25 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */