1655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/****************************************************************************
2655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ****************************************************************************
3655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***
4655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   This header was automatically generated from a Linux kernel header
5655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   of the same name, to make information necessary for userspace to
6655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   call into the kernel available to libc.  It contains only constants,
7655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   structures, and macros generated from the original header, and thus,
8655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   contains no copyrightable information.
9655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***
10655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   To edit the content of this header, modify the corresponding
11655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   source file (e.g. under external/kernel-headers/original/) then
12655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   run bionic/libc/kernel/tools/update_all.py
13655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***
14655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   Any manual change here will be lost the next time this script will
15655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   be run. You've been warned!
16655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***
17655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ****************************************************************************
18655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ****************************************************************************/
19655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#ifndef _UAPI_LINUX_ELFCORE_H
20655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define _UAPI_LINUX_ELFCORE_H
21655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#include <linux/types.h>
22655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#include <linux/signal.h>
23655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#include <linux/time.h>
25655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#include <linux/ptrace.h>
26655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#include <linux/elf.h>
27655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#include <linux/fs.h>
28655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29d7db594b8d1dab36b711bd887a9dd21675c87243Tao Baostruct elf_siginfo {
30d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  int si_signo;
31d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  int si_code;
32d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  int si_errno;
33655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
35655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengtypedef elf_greg_t greg_t;
36655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengtypedef elf_gregset_t gregset_t;
37655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengtypedef elf_fpregset_t fpregset_t;
38d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengtypedef elf_fpxregset_t fpxregset_t;
40655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define NGREG ELF_NGREG
41d7db594b8d1dab36b711bd887a9dd21675c87243Tao Baostruct elf_prstatus {
42d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  struct elf_siginfo pr_info;
43655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  short pr_cursig;
45d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  unsigned long pr_sigpend;
46d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  unsigned long pr_sighold;
47d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  pid_t pr_pid;
48655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  pid_t pr_ppid;
50d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  pid_t pr_pgrp;
51d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  pid_t pr_sid;
52d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  struct timeval pr_utime;
53655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  struct timeval pr_stime;
55d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  struct timeval pr_cutime;
56d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  struct timeval pr_cstime;
57d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  elf_gregset_t pr_reg;
58655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  int pr_fpvalid;
60655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
61655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define ELF_PRARGSZ (80)
62d7db594b8d1dab36b711bd887a9dd21675c87243Tao Baostruct elf_prpsinfo {
63655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  char pr_state;
65d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  char pr_sname;
66d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  char pr_zomb;
67d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  char pr_nice;
68655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  unsigned long pr_flag;
70d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __kernel_uid_t pr_uid;
71d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __kernel_gid_t pr_gid;
72d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  pid_t pr_pid, pr_ppid, pr_pgrp, pr_sid;
73655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  char pr_fname[16];
75d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  char pr_psargs[ELF_PRARGSZ];
76655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
77655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengtypedef struct elf_prstatus prstatus_t;
78655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79d7db594b8d1dab36b711bd887a9dd21675c87243Tao Baotypedef struct elf_prpsinfo prpsinfo_t;
80655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define PRARGSZ ELF_PRARGSZ
81655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#endif
82