🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #49896

Re: Using errno with solaris threads

#49896
From: Casper H.S. Dik
Date: Fri, 03 Dec 1993 09:25
20 lines
1269 bytes
vijay@chpcchpc.org (Vijay Baliga) writes:

>Hi,
>I am using solaris threads and want to be able to access the thread specific
>errno. We have gcc 2.3.3 and gcc 2.5.5. Sun suggests that I declare errno as:

>#pragma unshared errno
>extern int errno;

>However, gcc does not recognize #pragma unshared. So how can I put the errno
>in thread-local storage? Thanks for any help!

Where does Sun suggest this?  I've only seen this in papers
preceding the Solaris 2.x threads implementations. Not in
the Solaris 2.2 guide to threads.

You should include <errno.h> and compile your programs with
_REENTRANT defined.

Casper
Technical Details
Message-ID: <2dn0le$5a2@mail.fwi.uva.nl>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!darwin.sura.net!howland.reston.ans.net!pipex!sunic!EU.net!sun4nl!fwi.uva.nl!casper
References: <1993Dec2.171842.1988@chpc.org>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,bbce2b16a2f8a2a
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-12-03 03:50:56 PST
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!darwin.sura.net!howland.reston.ans.net!pipex!sunic!EU.net!sun4nl!fwi.uva.nl!casper
From: casper@fwi.uva.nl (Casper H.S. Dik)
Newsgroups: gnu.gcc.help
Subject: Re: Using errno with solaris threads
Date: 3 Dec 1993 09:25:02 GMT
Organization: FWI, University of Amsterdam
Lines: 20
Distribution: world
Message-ID: <2dn0le$5a2@mail.fwi.uva.nl>
References: <1993Dec2.171842.1988@chpc.org>
NNTP-Posting-Host: adam.fwi.uva.nl