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

@ -1,4 +1,4 @@
struct user_fpregs {
typedef struct user_fpregs {
struct fp_reg {
unsigned sign1:1;
unsigned unused:15;
@ -12,11 +12,13 @@ struct user_fpregs {
unsigned fpcr:32;
unsigned char ftype[8];
unsigned int init_flag;
};
} elf_fpregset_t;
struct user_regs {
unsigned long uregs[18];
};
#define ELF_NGREG 18
typedef unsigned long elf_greg_t, elf_gregset_t[ELF_NGREG];
struct user {
struct user_regs regs;