[PATCH] SPARC headers

Mark Kettenis kettenis@wins.uva.nl
Tue Mar 21 05:44:00 GMT 2000


   Date: Tue, 21 Mar 2000 12:37:17 +0100
   From: Jakub Jelinek <jakub@redhat.com>

Hi Jakub,

   This patch should clean up SPARC headers a little bit, set struct sigcontext
   to the structure which is really passed to signal handlers and avoid
   including asm/elf.h which in turn usually includes asm/ptrace.h and messes
   many things up.

Is it really necessary to add <sys/elf.h>?  I don't see the point in
having it, since its only purpose is being included by <sys/procfs.h>.
Moreover, Solaris has a <sys/elf.h> that has a almost completely
different purpose.

I also think that you need

   typedef elf_gregset_t prgregset_t;
   typedef elf_fpregset_t prfpregset_t;

in <sys/procfs.h> instead of

   typedef gregset_t prgregset_t;
   typedef fpregset_t prfpregset_t;

(although it doesn't really matter if the types are equivalent).  That
way you can remove <sys/ucontext.h> from the includes.

Mark


More information about the Libc-hacker mailing list