This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH] SPARC headers


   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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]