1abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes/****************************************************************************
2abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ****************************************************************************
3abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***
4abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***   This header was automatically generated from a Linux kernel header
5abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***   of the same name, to make information necessary for userspace to
6abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***   call into the kernel available to libc.  It contains only constants,
7abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***   structures, and macros generated from the original header, and thus,
8abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***   contains no copyrightable information.
9abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***
10abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***   To edit the content of this header, modify the corresponding
11abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***   source file (e.g. under external/kernel-headers/original/) then
12abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***   run bionic/libc/kernel/tools/update_all.py
13abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***
14abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***   Any manual change here will be lost the next time this script will
15abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***   be run. You've been warned!
16abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***
17abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ****************************************************************************
18abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ****************************************************************************/
19abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#ifndef _UAPI_ASM_SIGINFO_H
20abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define _UAPI_ASM_SIGINFO_H
21d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define __ARCH_SIGEV_PREAMBLE_SIZE (sizeof(long) + 2 * sizeof(int))
22abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#undef __ARCH_SI_TRAPNO
23abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define HAVE_ARCH_SIGINFO_T
2538062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#if _MIPS_SZLONG == 32
262300332596f181c8b5c19b6d912c645161cf1486Duane Sand#define __ARCH_SI_PREAMBLE_SIZE (3 * sizeof(int))
27d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#elif _MIPS_SZLONG==64
2805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
299195a258ee96d6cf31b2fc7db9da16f92f5e7f65Elliott Hughes#define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int))
3038062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#else
3138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#error _MIPS_SZLONG neither 32 nor 64
329195a258ee96d6cf31b2fc7db9da16f92f5e7f65Elliott Hughes#endif
3305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
3438062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define __ARCH_SIGSYS
35abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#include <asm-generic/siginfo.h>
36abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughestypedef struct siginfo {
37d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  int si_signo;
3805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  int si_code;
40d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  int si_errno;
41d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  int __pad0[SI_MAX_SIZE / sizeof(int) - SI_PAD_SIZE - 3];
42d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  union {
4305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    int _pad[SI_PAD_SIZE];
45d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    struct {
46106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris      __kernel_pid_t _pid;
47d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      __ARCH_SI_UID_T _uid;
4805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    } _kill;
50d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    struct {
51106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris      __kernel_timer_t _tid;
52d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      int _overrun;
5305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      char _pad[sizeof(__ARCH_SI_UID_T) - sizeof(int)];
55d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      sigval_t _sigval;
56d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      int _sys_private;
57d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    } _timer;
5805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    struct {
60106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris      __kernel_pid_t _pid;
61d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      __ARCH_SI_UID_T _uid;
62d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      sigval_t _sigval;
6305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    } _rt;
65d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    struct {
66106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris      __kernel_pid_t _pid;
67d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      __ARCH_SI_UID_T _uid;
6805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      int _status;
70106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris      __kernel_clock_t _utime;
71106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris      __kernel_clock_t _stime;
72d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    } _sigchld;
7305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    struct {
75106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris      __kernel_pid_t _pid;
76106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris      __kernel_clock_t _utime;
77d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      int _status;
7805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris      __kernel_clock_t _stime;
80d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    } _irix_sigchld;
81d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    struct {
82d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      void __user * _addr;
8305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#ifdef __ARCH_SI_TRAPNO
85d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      int _trapno;
86abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#endif
87d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      short _addr_lsb;
8805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris      union {
90106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris        struct {
91106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris          void __user * _lower;
92106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris          void __user * _upper;
9305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris        } _addr_bnd;
95106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris        __u32 _pkey;
96106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris      };
97d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    } _sigfault;
98106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    struct {
100d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      __ARCH_SI_BAND_T _band;
101d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      int _fd;
102d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    } _sigpoll;
103106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    struct {
105d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      void __user * _call_addr;
106d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      int _syscall;
107d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      unsigned int _arch;
108106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    } _sigsys;
110d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  } _sifields;
111abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes} siginfo_t;
112abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#undef SI_ASYNCIO
113106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#undef SI_TIMER
115abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#undef SI_MESGQ
116d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define SI_ASYNCIO - 2
117d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define SI_TIMER __SI_CODE(__SI_TIMER, - 3)
118106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define SI_MESGQ __SI_CODE(__SI_MESGQ, - 4)
120abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#endif
121