make sys/procfs.h mostly work on most archs
[musl] / arch / arm / bits / user.h
index 1cbd94e..9df7a9a 100644 (file)
@@ -1,5 +1,4 @@
-struct user_fpregs
-{
+typedef struct user_fpregs {
        struct fp_reg {
                unsigned sign1:1;
                unsigned unused:15;
@@ -13,28 +12,24 @@ struct user_fpregs
        unsigned fpcr:32;
        unsigned char ftype[8];
        unsigned int init_flag;
-};
+} elf_fpregset_t;
 
-struct user_regs
-{
+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;
-       int                             u_fpvalid;
-       unsigned long                   u_tsize;
-       unsigned long                   u_dsize;
-       unsigned long                   u_ssize;
-       unsigned long                   start_code;
-       unsigned long                   start_stack;
-       long                            signal;
-       int                             reserved;
-       struct user_regs                *u_ar0;
-       unsigned long int               magic;
-       char                            u_comm[32];
-       int                             u_debugreg[8];
-       struct user_fpregs              u_fp;
-       struct user_fpregs              *u_fp0;
+struct user {
+       struct user_regs regs;
+       int u_fpvalid;
+       unsigned long u_tsize, u_dsize, u_ssize;
+       unsigned long start_code, start_stack;
+       long signal;
+       struct user_regs *u_ar0;
+       unsigned long magic;
+       char u_comm[32];
+       int u_debugreg[8];
+       struct user_fpregs u_fp;
+       struct user_fpregs *u_fp0;
 };