Home | History | Annotate | Download | only in linux
      1 /****************************************************************************
      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_LINUX_ELFCORE_H
     20 #define _UAPI_LINUX_ELFCORE_H
     21 #include <linux/types.h>
     22 #include <linux/signal.h>
     23 #include <linux/time.h>
     24 #include <linux/ptrace.h>
     25 #include <linux/elf.h>
     26 #include <linux/fs.h>
     27 struct elf_siginfo {
     28   int si_signo;
     29   int si_code;
     30   int si_errno;
     31 };
     32 typedef elf_greg_t greg_t;
     33 typedef elf_gregset_t gregset_t;
     34 typedef elf_fpregset_t fpregset_t;
     35 typedef elf_fpxregset_t fpxregset_t;
     36 #define NGREG ELF_NGREG
     37 struct elf_prstatus {
     38   struct elf_siginfo pr_info;
     39   short pr_cursig;
     40   unsigned long pr_sigpend;
     41   unsigned long pr_sighold;
     42   pid_t pr_pid;
     43   pid_t pr_ppid;
     44   pid_t pr_pgrp;
     45   pid_t pr_sid;
     46   struct timeval pr_utime;
     47   struct timeval pr_stime;
     48   struct timeval pr_cutime;
     49   struct timeval pr_cstime;
     50   elf_gregset_t pr_reg;
     51   int pr_fpvalid;
     52 };
     53 #define ELF_PRARGSZ (80)
     54 struct elf_prpsinfo {
     55   char pr_state;
     56   char pr_sname;
     57   char pr_zomb;
     58   char pr_nice;
     59   unsigned long pr_flag;
     60   __kernel_uid_t pr_uid;
     61   __kernel_gid_t pr_gid;
     62   pid_t pr_pid, pr_ppid, pr_pgrp, pr_sid;
     63   char pr_fname[16];
     64   char pr_psargs[ELF_PRARGSZ];
     65 };
     66 typedef struct elf_prstatus prstatus_t;
     67 typedef struct elf_prpsinfo prpsinfo_t;
     68 #define PRARGSZ ELF_PRARGSZ
     69 #endif
     70