patch #2 to add pointer to errno in TCB (Re: The time has come for a kernel interfacing library layer)

Joerg Sonnenberger joerg at britannica.bec.de
Tue May 10 08:22:33 PDT 2005


On Tue, May 10, 2005 at 07:58:26AM -0700, Jeffrey Hsu wrote:
> 
> >>Why not move __offsetof() from machine/stdint.h to sys/cdefs.h and
> >>resurrect `#if 0' code in tls.h
> 
> Does the gcc extension, __builtin_offsetof, work any better in this
> context?

There's no such builtin before GCC 3.4, for GCC 3.4 and GCC 4.0 it is
called differently (and C++-only I think). I don't know if it works better.

Joerg





More information about the Kernel mailing list