Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <002501c0d4a9$552bcfb0$26823bd5@dima> From: "Dmitry Timoshkov" To: "Robinow, David" Cc: References: <80575AFA5F0DD31197CE00805F650D7602CF03 AT wilber DOT adroit DOT com> Subject: Re: oldhand cygwinner needed: RE: __errno_location() like functionality in Cygwin Date: Fri, 4 May 2001 22:47:58 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-MDRcpt-To: cygwin AT cygwin DOT com X-MDRemoteIP: 213.59.130.38 X-Return-Path: dmitry AT sloboda DOT ru X-MDaemon-Deliver-To: cygwin AT cygwin DOT com "Robinow, David" wrote: > > Thanks for the pointer, but did you see my original question? > > How can I have > > *only* thread local errno variable? Under Linux that > > #include What then? As far as I understand, it will work *only* if I have global reent struct for each thread, and then I must switch _impure_ptr pointer in each thead *manually*. > > functionality is provided > > by overriding __errno_location() function. Under Cygwin > > definition of my own > > __errno() function doesn't help. > Why do you want your own __errno function? Probably I wasn't clear enough in my previous postings, sorry. It's not me, it's an application that I want to port to Cygwin. Is it so unusual to have *an application provided* errno variable (for every distinct thread)? As I already mentioned, that approach works fine in Linux. As far as I know, similar mechanisms are provided by FreeBSD (__error()), Solaris (___errno()), UnixWare (__thr_errno()). Is it true that Cygwin has no analogous functionality? Anyway thanks for your help. -- Dmitry. -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple