[PATCH] add pthread_getattr_np() and pthread_attr_getstack()

Will Newton will.newton at gmail.com
Thu Sep 25 10:24:16 UTC 2008


On Thu, Sep 25, 2008 at 10:46 AM, Bernhard Reutner-Fischer
<rep.dot.nop at gmail.com> wrote:
> Hi,
>
> Attached 72_all_uClibc-0.9.29-linuxthreads.patch is from gentoo as in
> http://bugs.busybox.net/view.php?id=5134
> Can somebody who is involved with threads take a look?

The patch is against linuxthreads.old. It adds an implementation of
pthread_attr_getstack that is identical to the one from the newer
linuxthreads. It also adds a definition of pthread_getattr_np lifted
from NPTL that looks a bit dubious. It doesn't seem to fill in as many
of the attr fields as the version in the newer linuxthreads and I am
assuming the STACK_GROWS_UP support is broken. It probably works well
enough for some purpose (JDK, guile?) but I would suggest that it
would be better to use the newer linuxthreads instead.



More information about the uClibc mailing list