From 4b75f4ed8d08b26d4bf2ac96191b395218ad888e Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 25 Nov 2012 22:28:18 -0500 Subject: make sys/procfs.h mostly work on most archs these structures are purely for use by trace/debug tools and tools working with core files. the definition of fpregset_t, which was previously here, has been removed because it was wrong; fpregset_t should be the type used in mcontext_t, not the type used in ptrace/core stuff. --- include/sys/procfs.h | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'include/sys/procfs.h') diff --git a/include/sys/procfs.h b/include/sys/procfs.h index 91b6efd1..6a346053 100644 --- a/include/sys/procfs.h +++ b/include/sys/procfs.h @@ -8,17 +8,6 @@ extern "C" { #include #include -typedef unsigned long elf_greg_t; -#define ELF_NGREG (sizeof (struct user_regs_struct) / sizeof(elf_greg_t)) -typedef elf_greg_t elf_gregset_t[ELF_NGREG]; - -#if __WORDSIZE == 32 -typedef struct user_fpregs_struct elf_fpregset_t; -typedef struct user_fpxregs_struct elf_fpxregset_t; -#else -typedef struct user_fpregs_struct elf_fpregset_t; -#endif - struct elf_siginfo { int si_signo; int si_code; @@ -42,7 +31,6 @@ struct elf_prstatus { int pr_fpvalid; }; - #define ELF_PRARGSZ 80 struct elf_prpsinfo @@ -64,19 +52,13 @@ struct elf_prpsinfo char pr_psargs[ELF_PRARGSZ]; }; - typedef void *psaddr_t; typedef elf_gregset_t prgregset_t; - typedef elf_fpregset_t prfpregset_t; -typedef elf_fpregset_t fpregset_t; typedef pid_t lwpid_t; typedef struct elf_prstatus prstatus_t; typedef struct elf_prpsinfo prpsinfo_t; - - - #ifdef __cplusplus } #endif -- cgit v1.2.1