This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Porting NPTL to GNU/kFreeBSD?


On Sat, Nov 12, 2005 at 01:38:38AM +0000, Brian M. Carlson wrote:
> Are there any portability traps of which I need to be aware (other than the 
> obvious)?

Like that the library is fundamentally designed around Linux process
assumption, ELF TLS, and the futex system?

A fully POSIX thread library for your port is a good idea, which LinuxThreads
isn't.  However, I am skeptical about how much mileage you'll be able
to get from NPTL without duplicating some of its interfaces in FreeBSD.

> FreeBSD's libpthread/libkse is M:N, while libthr is 1:1.  I am unsure whether 
> libthr's kernel support works on i386, so I'd like to get NPTL to 
> conditionally support M:N if possible.  Is this a silly idea?

Yes, this is a silly idea.  NPTL is built on the assumption that kernel
processes are extremely lightweight.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]