glibc, linuxthreads, floating stacks

Petr Salinger Petr.Salinger at t-systems.cz
Tue Dec 13 17:59:04 UTC 2005


> > The attached pt-machine.h should go into 
> > linuxthreads/sysdeps/unix/bsd/bsd4.4/kfreebsd/i386/i486/pt-machine.h
> 
> Just a sidenote:  it seems this pt-machine.h is heavily based on another version
> of this file, although I'm not sure which one.  

It is based on linuxthreads/sysdeps/i386/i686/pt-machine.h and
linuxthreads/sysdeps/i386/useldt.h.

> Have you considered something like this to avoid repetition of code?:
> 
>   #include_next <pt-machine.h>
>   [ kfreebsd-specific stuff ]

It would be nice, but the problem is that linuxthreads doesn't expect
another OS than Linux and both above mentioned files contains Linux 
specific parts. So the right solution would be to move Linux specific 
parts into linuxthreads/sysdeps/unix/sysv/linux/i386/...
and start using #include_next for both Linux and kFreeBSD. 

Petr




More information about the Glibc-bsd-devel mailing list