getpwnam + getpwnam_r + LinuxThreads port = deadlock
Daniel Eischen
eischen at vigrid.com
Sat Jul 12 22:37:33 PDT 2003
On Sun, 13 Jul 2003 leafy at leafy.idv.tw wrote:
> On Sat, 12 Jul 2003 15:06:30 -0400 (EDT), Daniel Eischen wrote
> > Umm, what are you talking about? Both libkse and libthr
> > implement POSIX threads interfaces. Your code doesn't
> > have to change; you just link to libkse (-lkse) or
> > libthr (-lthr). When you compile on Linux, you link
> > to linuxthreads (-lwhatever). You are not running
> > a FreeBSD binary on Linux, nor running a Linux binary
> > on FreeBSD, right?
> Or even better, use libmap.conf and the app can be tested with different
> libraries in just one snap.
You probably won't be able to do that to switch between
linuxthreads and libthr/libkse/libc_r. Linuxthreads
and the FreeBSD thread libraries are most likely not
binary compatable.
--
Dan Eischen
More information about the freebsd-hackers
mailing list