From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,8e9b885446835ab4 X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1994-11-08 09:30:15 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!convex!news.duke.edu!godot.cc.duq.edu!hudson.lm.com!fs7.ece.cmu.edu!cantaloupe.srv.cs.cmu.edu!abh From: Andrew Hastings Newsgroups: comp.unix.osf.misc Subject: Re: errno and DCE and threads Date: 8 Nov 1994 15:42:28 GMT Organization: Transarc Corp., Pittsburgh Message-ID: <39o694$6a0@cantaloupe.srv.cs.cmu.edu> References: <39lsjk$lrf@clam.hi.com> NNTP-Posting-Host: m.gp.cs.cmu.edu Originator: abh@M.GP.CS.CMU.EDU In article <39lsjk$lrf@clam.hi.com> wright@clam.hi.com (David Wright) writes: >The single biggest problem is errno handling. Errno is a single, >global variable in standard Unix. (Granted, this was a really bad >design decision, but we're stuck with it.) Since DCE applications are >multi-threaded, they need to be able to keep errno on a per-thread >basis (so they don't trip over each other's values). Since you're productizing DCE, you can change the DCE thread implementation. Record errno along with the hardware registers in your thread context. When you switch threads, switch errno values. If you have kernel threads, your kernel should arrange to map errno separately for each thread. -Andrew Hastings Encina Development Transarc