This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/447] No useful thread safe error to string function
- From: "jakub at redhat dot com" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 14 Oct 2004 14:50:04 -0000
- Subject: [Bug libc/447] No useful thread safe error to string function
- References: <20041014144302.447.olaf@cbk.poznan.pl>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- Additional Comments From jakub at redhat dot com 2004-10-14 14:50 -------
1) what makes you think char *strerror_r(int errnum, char *buf, size_t n);
is obsolete?
2) it never allocates a new string, but may return a .rodata string or
can fill the user supplied buffer, but in either case it is completely
thread-safe (no thread can overwrite the .rodata strings)
3) with -D_XOPEN_SOURCE=600 (but without -D_GNU_SOURCE) you get
the XPG6 int strerror_r (int errnum, char *buf, size_t n); that always
fills in the user supplied buffer
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://sources.redhat.com/bugzilla/show_bug.cgi?id=447
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.