From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: [PATCH] replace strerror() usage with threadsafe "%m" format
Date: Mon, 29 Sep 2008 15:08:23 +0000 [thread overview]
Message-ID: <1222700903.2334.0.camel@lgn.site> (raw)
In-Reply-To: <48E0EDCC.5050609@tuffmail.co.uk>
On Mon, 2008-09-29 at 16:01 +0100, Alan Jenkins wrote:
> strerror() is not threadsafe. It uses a buffer to build messages of the form
> "Unknown error 387689".
>
> syslog() provides a %m format which is equivalent to strerror(errno).
> As a GNU extension, this is also accepted by printf and friends.
> At least in the current implementation, it is correctly threadsafe.
Great! Applied. Thanks,
Kay
prev parent reply other threads:[~2008-09-29 15:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-29 15:01 [PATCH] replace strerror() usage with threadsafe "%m" format string Alan Jenkins
2008-09-29 15:08 ` Kay Sievers [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=1222700903.2334.0.camel@lgn.site \
--to=kay.sievers@vrfy.org \
--cc=linux-hotplug@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).