getpwnam + getpwnam_r + LinuxThreads port = deadlock

leafy at leafy.idv.tw leafy at leafy.idv.tw
Sat Jul 12 12:54:43 PDT 2003


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.

Jiawei

"Without the userland, the kernel is useless."
               --inspired by The Tao of Programming



More information about the freebsd-hackers mailing list