This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu mailing list for the glibc project.


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

Re: ucontext.h


>>>>> Marcus Harnisch writes:

 > Hi Experts,
 > I've got a question concerning the header file `sys/ucontext.h'. My
 > glibc-2.1.3 was compiled and installed from the source package.

 > The said header file conditionally defines (_GNU_SOURCE) a constant
 > `ERR' which clashes with ncurses when I compile `hexedit'. After
 > sending a report to the author, he replied that he didn't have this
 > problem and sent me his `ucontext.h' (unknown distribution, but I
 > could ask). All respective constants in his file are prefixed with
 > `REG_'.
That's the version that will be in glibc 2.2:

2000-03-14  Ulrich Drepper  <drepper@redhat.com>

        * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
        values and macros for register names.

 > Browsing through the source archive I found yet another ucontext.h in
 >   sysdeps/unix/sysv/linux/<arch>/sys/ucontext.h

 > And here are the great questions:

 > 1. Which file is The Right Version(tm)?
Depends ;-).  I would say the one with REG_ in front will be the right
version for glibc 2.2.

 > 2. The file in sysdeps/unix/sysv/linux/<arch>/sys/ucontext.h doesn't
 >    seem to get installed anywhere. What is the reason for two files?
That's the one that gets installed by make magic.  ucontext.h is
system dependend.

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj

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