From: Arjan van de Ven <arjan@infradead.org>
To: linux-os@analogic.com
Cc: Linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: System call v.s. errno
Date: Wed, 04 May 2005 10:22:02 -0400 [thread overview]
Message-ID: <1115216522.6053.4.camel@localhost.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.61.0505040849150.8743@chaos.analogic.com>
On Wed, 2005-05-04 at 09:22 -0400, Richard B. Johnson wrote:
> Does anybody know for sure if global 'errno' is supposed to
errno is a glibc level thing really, and in recent glibc tehre is no
global errno anymore, only a per thread errno.
> The answer is not obvious because the 'C' runtime library
> doesn't really give access to 'errno' instead it is dereferenced
> off some pointer returned from a function called __errno_location().
yeah to make sure you get the per thread errno instead. Any reasonable
sane code (and all standards conforming code) just deals with that fine.
The case that is known to break is if your app has it's own
extern int errno;
in it, instead of using the proper header to get it.
prev parent reply other threads:[~2005-05-05 0:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-04 13:22 System call v.s. errno Richard B. Johnson
2005-05-04 13:30 ` Måns Rullgård
2005-05-04 13:41 ` Wichert Akkerman
2005-05-04 13:42 ` Jakub Jelinek
2005-05-04 13:49 ` Richard B. Johnson
2005-05-04 16:03 ` Stephen Hemminger
2005-05-04 13:55 ` Martin Waitz
2005-05-04 14:22 ` Arjan van de Ven [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1115216522.6053.4.camel@localhost.localdomain \
--to=arjan@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-os@analogic.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox