This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/5532] Not clear behaviour of function strerror_r
- From: "ylalym at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 2 Jan 2008 18:35:32 -0000
- Subject: [Bug libc/5532] Not clear behaviour of function strerror_r
- References: <20080102144419.5532.ylalym@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From ylalym at gmail dot com 2008-01-02 18:35 -------
Why in gcc the buffer is used, and in g++ is not used. In man strerror there are
no such instructions.
See also Qt4 in qglobal.cpp
QString qt_error_string(int errorCode)
{
.........
#elif !defined(QT_NO_THREAD) && defined(_POSIX_THREAD_SAFE_FUNCTIONS) &&
_POSIX_VERSION >= 200112L && !defined(Q_OS_INTEGRITY) // applicable to linux
QByteArray buf(1024, '\0');
strerror_r(errorCode, buf.data(), buf.size());
ret = QString::fromLocal8Bit(buf.constData());
#else
.........
}
There are also others which do not know about it.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=5532
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.