Browse Source

fix some details in ugly stuff that doesn't belong in libc

patches by sh4rm4, presumably needed to make gdb or some similar junk
happy...
Rich Felker 13 years ago
parent
commit
03860303c2
2 changed files with 8 additions and 6 deletions
  1. 6 6
      arch/arm/bits/user.h
  2. 2 0
      include/sys/procfs.h

+ 6 - 6
arch/arm/bits/user.h

@@ -1,4 +1,4 @@
-struct user_fpregs
+struct user_fpregs_struct
 {
 {
 	struct fp_reg {
 	struct fp_reg {
 		unsigned sign1:1;
 		unsigned sign1:1;
@@ -15,14 +15,14 @@ struct user_fpregs
 	unsigned int init_flag;
 	unsigned int init_flag;
 };
 };
 
 
-struct user_regs
+struct user_regs_struct
 {
 {
 	unsigned long uregs[18];
 	unsigned long uregs[18];
 };
 };
 
 
 struct user
 struct user
 {
 {
-	struct user_regs		regs;
+	struct user_regs_struct		regs;
 	int				u_fpvalid;
 	int				u_fpvalid;
 	unsigned long			u_tsize;
 	unsigned long			u_tsize;
 	unsigned long			u_dsize;
 	unsigned long			u_dsize;
@@ -31,10 +31,10 @@ struct user
 	unsigned long			start_stack;
 	unsigned long			start_stack;
 	long				signal;
 	long				signal;
 	int				reserved;
 	int				reserved;
-	struct user_regs		*u_ar0;
+	struct user_regs_struct		*u_ar0;
 	unsigned long int		magic;
 	unsigned long int		magic;
 	char				u_comm[32];
 	char				u_comm[32];
 	int				u_debugreg[8];
 	int				u_debugreg[8];
-	struct user_fpregs		u_fp;
-	struct user_fpregs		*u_fp0;
+	struct user_fpregs_struct	u_fp;
+	struct user_fpregs_struct	*u_fp0;
 };
 };

+ 2 - 0
include/sys/procfs.h

@@ -67,7 +67,9 @@ struct elf_prpsinfo
 
 
 typedef void *psaddr_t;
 typedef void *psaddr_t;
 typedef elf_gregset_t prgregset_t;
 typedef elf_gregset_t prgregset_t;
+
 typedef elf_fpregset_t prfpregset_t;
 typedef elf_fpregset_t prfpregset_t;
+typedef elf_fpregset_t fpregset_t;
 typedef pid_t lwpid_t;
 typedef pid_t lwpid_t;
 typedef struct elf_prstatus prstatus_t;
 typedef struct elf_prstatus prstatus_t;
 typedef struct elf_prpsinfo prpsinfo_t;
 typedef struct elf_prpsinfo prpsinfo_t;