123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- #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>
- __BEGIN_DECLS
- #define ELF_NGREG 33
- #define ELF_NFPREG 32
- typedef unsigned long elf_greg_t;
- typedef elf_greg_t elf_gregset_t[ELF_NGREG];
- typedef double elf_fpreg_t;
- typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
- struct elf_siginfo
- {
- int si_signo;
- int si_code;
- int si_errno;
- };
- struct elf_prstatus
- {
- #if 0
- long int pr_flags;
- short int pr_why;
- short int pr_what;
- #endif
- struct elf_siginfo pr_info;
- short int pr_cursig;
- unsigned long int pr_sigpend;
- unsigned long int pr_sighold;
- #if 0
- struct sigaltstack pr_altstack;
- struct sigaction pr_action;
- #endif
- __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;
- #if 0
- long int pr_instr;
- #endif
- 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 int pr_uid;
- unsigned 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 gregset_t prgregset_t;
- typedef fpregset_t prfpregset_t;
- typedef __pid_t lwpid_t;
- typedef struct elf_prstatus prstatus_t;
- typedef struct elf_prpsinfo prpsinfo_t;
- __END_DECLS
- #endif
|