I see some changes to -current as of Jan 2001, that attempt to make libc
threadsafe without -pthread and _THREAD_SAFE.

http://groups.google.com/groups?q=Daniel+Eischen&hl=en&lr=&safe=off&scoring=d&as_drrb=b&as_mind=1&as_minm=1&as_miny=2001&as_maxd=20&;
as_maxm=1&as_maxy=2001&rnum=4&ic=1&selm=94amg1%242fnu%241%40FreeBSD.csie.NCTU.edu.tw

I'm attempting to port IBM's NGPT to freebsd and most of the things
seem to be working fine. The following is the C file needed to make
it work, apart from some minor work arounds for Makefiles.

http://sharmas.dhs.org/~adsharma/pth_native_freebsd.c

I'm trying to hunt down a stack corruption that I'm seeing after
a sigsetjmp and siglongjmp. It could be due to a bug in NGPT or
it could be due to the fact that I'm linking -lc and not -lc_r
and -lc is not completely thread safe. The stack in question was
malloc'ed and passed as an argument to rfork_thread.

My question is, do I need to do anything else (apart from incrementing
__isthreaded and providing strong references to locking routines)
to get -lc to work in a MT environment ?

        -Arun


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to