This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Re: ucontext.h
- To: Marcus Harnisch <Marcus dot Harnisch at gmx dot net>
- Subject: Re: ucontext.h
- From: Andreas Jaeger <aj at suse dot de>
- Date: 31 Jul 2000 22:18:32 +0200
- Cc: Glibc mailing list <glibc-linux at ricardo dot ecn dot wfu dot edu>
- References: <14725.46055.651261.194991@typhoon.harnisch.local>
- Reply-To: glibc-linux at ricardo dot ecn dot wfu dot edu
>>>>> 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