Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Feb 2005 09:27:13 +0300
From:      Dmitry Agaphonov <rzhe@agava.com>
To:        freebsd-hackers@freebsd.org
Subject:   Kernel threads & libc
Message-ID:  <20050222092713.43ed42c3.rzhe@agava.com>

next in thread | raw e-mail | index | archive | help
Hello all,


I'm forced to implement kernel threads in application not via LinuxThreads
library (because it doesn't compile on FreeBSD 4.10 with gcc-3.4.4, too
much errors while processing /usr/src code), but using rfork_thread(3).
And the main question I currently stuck on is which libc functions I need
to wrap to make them thread-safe and reentrant on multiprocessor systems,
since rfork_thread(3)s are created with RFMEM flag and libc_r is not used.

Could somebody please give ideas or point me to the appropriate reading?

Thanks!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050222092713.43ed42c3.rzhe>