| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| 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" <dmitry AT sloboda DOT ru> |
| To: | "Robinow, David" <drobinow AT dayton DOT adroit DOT com> |
| Cc: | <cygwin AT cygwin DOT com> |
| 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 |
| 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" <drobinow AT dayton DOT adroit DOT com> 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 <errno.h> 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |