DragonFly BSD
DragonFly kernel List (threaded) for 2005-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Tue, 10 May 2005 17:20:26 +0200
Mail-followup-to: kernel@crater.dragonflybsd.org

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]