This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/5532] Not clear behaviour of function strerror_r


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]