123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- #ifndef _SYS_PROCFS_H
- #define _SYS_PROCFS_H 1
- #include <features.h>
- #include <signal.h>
- #include <sys/time.h>
- #include <sys/types.h>
- #include <sys/ucontext.h>
- #include <sys/user.h>
- #include <bits/wordsize.h>
- __BEGIN_DECLS
- #define ELF_NGREG 38
- typedef struct
- {
- union
- {
- unsigned long pr_regs[32];
- double pr_dregs[16];
- } pr_fr;
- unsigned long __unused;
- unsigned long pr_fsr;
- unsigned char pr_qcnt;
- unsigned char pr_q_entrysize;
- unsigned char pr_en;
- unsigned int pr_q[64];
- } elf_fpregset_t;
- typedef unsigned long elf_greg_t;
- typedef elf_greg_t elf_gregset_t[ELF_NGREG];
- struct elf_siginfo
- {
- int si_signo;
- int si_code;
- int si_errno;
- };
- struct elf_prstatus
- {
- struct elf_siginfo pr_info;
- short int pr_cursig;
- unsigned long int pr_sigpend;
- unsigned long int pr_sighold;
- __pid_t pr_pid;
- __pid_t pr_ppid;
- __pid_t pr_pgrp;
- __pid_t pr_sid;
- struct timeval pr_utime;
- struct timeval pr_stime;
- struct timeval pr_cutime;
- struct timeval pr_cstime;
- elf_gregset_t pr_reg;
- int pr_fpvalid;
- };
- #define ELF_PRARGSZ (80)
- struct elf_prpsinfo
- {
- char pr_state;
- char pr_sname;
- char pr_zomb;
- char pr_nice;
- unsigned long int pr_flag;
- unsigned short int pr_uid;
- unsigned short int pr_gid;
- int pr_pid, pr_ppid, pr_pgrp, pr_sid;
-
- char pr_fname[16];
- char pr_psargs[ELF_PRARGSZ];
- };
- typedef void *psaddr_t;
- typedef elf_gregset_t prgregset_t;
- typedef elf_fpregset_t prfpregset_t;
- typedef __pid_t lwpid_t;
- typedef struct elf_prstatus prstatus_t;
- typedef struct elf_prpsinfo prpsinfo_t;
- __END_DECLS
- #endif
|