This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/1890] strerror() unnecessarily non thread-safe
- From: "stefan dot puiu at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 23 Nov 2005 09:25:59 -0000
- Subject: [Bug libc/1890] strerror() unnecessarily non thread-safe
- References: <20051119151517.1890.stefan.puiu@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From stefan dot puiu at gmail dot com 2005-11-23 09:25 -------
Oh, and about "picking the stupid definition", I specifically pointed you to a
post on the autoconf mailing list. Here's a quote:
"You would be best served by using configure to learn how the default strerror_r
behaves and adapting your code to suit.
You don't want to force -D_XOPEN_SOURCE=600 on all systems because behavior when
the system does not support this level is undefined. In my experience, headers
on some systems fail miserably if you specify an _XOPEN_SOURCE value greater
than what they were designed to expect. Using -D_XOPEN_SOURCE=500 is reasonably
safe on most (but not all) systems.
Trying to force the headers to behave a particular way seems to be a lost cause.
After trying this approach for a number of months, I finally realized that
relying on default behavior worked best."
--
http://sourceware.org/bugzilla/show_bug.cgi?id=1890
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.