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-15 03:49:37 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!news.sprintlink.net!EU.net!sun4nl!fwi.uva.nl!not-for-mail From: casper@fwi.uva.nl (Casper H.S. Dik) Newsgroups: comp.unix.osf.misc Subject: Re: errno and DCE and threads Date: 15 Nov 1994 11:14:48 +0100 Organization: FWI, University of Amsterdam Distribution: world Message-ID: <3aa1mo$6b8@mail.fwi.uva.nl> References: <39lsjk$lrf@clam.hi.com> <39qin9$9g6@paperboy.osf.org> NNTP-Posting-Host: mail.fwi.uva.nl rsalz@osf.org (Rich Salz) writes: >In practice, however, it's probably easier to just store errno in the internal >per-thread state block and copy it in/out as part of your thread task >context switch. >For kernel threads, the kernel should just be doing the right thing. How can a the kernel do this? If errno is a statica variable, the kernel cannot move it about in a transparent way. Multpiple threads on multiple processors will want to read the variable so without #define errno (*(___errno())) I don't see a way of doing it. Casper