Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!news.kei.com!newsfeed.internetmci.com!howland.reston.ans.net!Germany.EU.net!news.dfn.de!news.uni-jena.de!news.HRZ.HAB-Weimar.DE!News.HTWM.De!news.tu-chemnitz.de!uni-erlangen.de!lrz-muenchen.de!news From: andi@frob.mlm.extern.lrz-muenchen.de (Andi Kleen) Newsgroups: comp.unix.bsd.netbsd.misc Subject: Re: Thread safe errno-clone? Date: 03 Dec 1995 19:21:06 +0100 Organization: MLM Lines: 14 Sender: andi@frob.mlm.extern.lrz-muenchen.de Distribution: world Message-ID: <m2ivjyypnx.fsf@frob.mlm.extern.lrz-muenchen.de> References: <49bqi3$4du@taco.cc.ncsu.edu> NNTP-Posting-Host: frob.mlm.extern.lrz-muenchen.de In-reply-to: kpneal@eos.ncsu.edu's message of 27 Nov 1995 07:49:23 GMT X-Newsreader: Gnus v5.1 In article <49bqi3$4du@taco.cc.ncsu.edu> kpneal@eos.ncsu.edu (Kevin P. Neal) writes: From: kpneal@eos.ncsu.edu (Kevin P. Neal) I want the library to be thread-safe. This would seem to rule out a global variable for this purpose, because at least one light-weight thread library uses the same global data section for all of it's threads (isn't that what a lwt is?). So how can I make some sort of rcs_set_global_error() that is thread proof? Later version of Linux libc (5.2.x) have a thread safe errno. Look at the source for an example. -Andi