This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: errno handling in nonreentrant syscalls (fwd)
- To: "Joachim Falk" <joachim dot falk at gmx dot de>
- Subject: Re: errno handling in nonreentrant syscalls (fwd)
- From: "Dmitry Timoshkov" <dmitry at baikal dot ru>
- Date: Fri, 25 May 2001 14:40:29 +0800
- Cc: <newlib at sources dot redhat dot com>
- References: <Pine.LNX.4.21.0105250637040.4089-100000@beta.jfalk.easynet.de>
"Joachim Falk" <jfalk@netxpress.de> wrote:
> there seam to be 3 cases for syscall dispatching in newlib
[big snip]
I'm sorry to not answer your question. I asked a similar question
on the Cygwin mailing list, but unfortunately it seemed that my
question was leaved unanswered. You can inspect the whole thread
of questions/answers in the archives of cygwin@cygwin.com mailing
list (subjects: "__errno_location() like functionality in Cygwin" and
"oldhand cygwinner needed: RE: __errno_location() like functionality in Cygwin".
Basically I need to define my own function that will return a pointer
to my own errno variable. That approach works fine under other Unix OSes,
but doesn't work with newlib (Cygwin's libc).
Linux uses for that functionality __errno_location(), FreeBSD - __error(),
Solaris - ___errno(), UnixWare - __thr_errno().
Perhaps jointly we could work out a way to bypass that limitation of newlib?
--
Dmitry.