[M3devel] targeting kernel instead of libc/pthreads?

Mike Frysinger vapier at gentoo.org
Thu Aug 13 05:29:19 CEST 2009


On Tuesday 11 August 2009 20:14:35 Jay K wrote:
> > There is exactly one pthreads implementation in use, NPTL.
> > That is really thin layer providing pthreads API.
>
> Is it thin?
> Is it really the same and binary compatible among the various C libraries
> -- glibc, uclibc, newlib? Same struct sizes and initializers? (I'd hope the
> initializers are all NULL and the structs all just the size of a pointer,
> but that isn't always the case.)

you can never expect binary compatibility across C libraries.  uClibc does use 
the NPTL source tree from glibc, but that doesnt mean it's binary compatible 
at either the libc or libpthread level.  newlib doesnt do shared libraries, so 
binary compatibility is irrelevant.

but i too think it's absolutely crazy to attempt to write your own threading 
layer on top of clone().
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20090812/baad7e43/attachment-0002.sig>


More information about the M3devel mailing list