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.
This commit is contained in:
Rich Felker 2012-11-25 22:28:18 -05:00
commit 4b75f4ed8d
6 changed files with 30 additions and 26 deletions

View file

@ -8,17 +8,6 @@ extern "C" {
#include <sys/types.h>
#include <sys/user.h>
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