From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1931a7946547d095 X-Google-Attributes: gid103376,public From: Simon Wright Subject: Re: Sockets in Apex Date: 2000/02/12 Message-ID: #1/1 X-Deja-AN: 584880724 X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 References: <87s92v$lke$1@nnrp1.deja.com> X-Trace: news.demon.co.uk 950341111 nnrp-03:15593 NO-IDENT pogner.demon.co.uk:158.152.70.98 Organization: At Home Newsgroups: comp.lang.ada X-Complaints-To: abuse@demon.net Date: 2000-02-12T00:00:00+00:00 List-Id: reason67@my-deja.com writes: > I wrote a socket binding to Ada 95. I am creating an executable in Apex > 3.2.0b on Solaris 2.6. > > When I connect a non-blocking client socket in a task in the threaded > model, errno does not seem to be set by the underlying C. When I run in > the non-threaded model, or I connect the client without any tasks (just > the main), or I make the socket block, everything works fine. I take it the "underlying C" is yours? have you compiled it with -D_REENTRANT ? (I _think_ that's the Solaris way of saying the compiler should pick up the thread-aware version of errno and others). >From the Linux , #if defined(_POSIX_THREAD_SAFE_FUNCTIONS) || defined(_REENTRANT) extern int* __errno_location __P((void)); #define errno (*__errno_location ()) #else extern int errno; #endif