qt5base-lts/src/corelib
Thiago Macieira 4b6784b49c Stop using readdir_r: glibc deprecated it and it's not a good idea
POSIX does not require that readdir() be reentrant even for operations
on different dirent objects, but all implementations (according to the
glibc documentation) already do that. Moreover, it's not a good idea to
use readdir_r since the buffer space is limited by the caller, so
certain file names may be too long (ENAMETOOLONG) -- we had a workaround
for QNX, but for no other OS. According to the glibc documentation, it
is expected that POSIX will mark readdir_r obsolete and instead require
some form of reentrancy for readdir.

This commit makes everyone use readdir instead. The macros in
qplatformdefs.h are left behind in case someone else is using them.

With glibc 2.24, we started getting:

 qplatformdefs.h:150:35: warning: ‘int readdir_r(DIR*, dirent*, dirent**)’ is deprecated [-Wdeprecated-declarations]
 qfilesystemiterator_unix.cpp:112:17: note: in expansion of macro ‘QT_READDIR_R’

Task-number: QTBUG-56088
Change-Id: I33dc971f005a4848bb8ffffd14749b4082f62e69
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: James McDonnell <jmcdonnell@blackberry.com>
2016-11-03 15:31:33 +00:00
..
animation Fix QVariantAnimation documentation 2016-06-08 04:32:45 +00:00
arch Make public headers compile with -Wzero-as-null-pointer-constant 2016-02-19 16:37:33 +00:00
codecs QWindowsLocalCodec::convertFromUnicode(): preclude stack overflow. 2016-04-15 11:20:32 +00:00
doc Fix some typos in docs and apidocs 2016-10-21 09:06:13 +00:00
global Document that qFuzzyCompare does not work on NaN or infinity 2016-10-26 08:39:46 +00:00
io Stop using readdir_r: glibc deprecated it and it's not a good idea 2016-11-03 15:31:33 +00:00
itemmodels QAbstractProxyModel: fix sentence structure in apidoc 2016-09-19 11:17:58 +00:00
json QJsonDocument: fix repetition of 'document' in doc 2016-10-19 07:34:56 +00:00
kernel Fix some typos in docs and apidocs 2016-10-21 09:06:13 +00:00
mimetypes QMimeXMLProvider: add missing out-of-line destructor 2016-10-13 16:54:30 +00:00
plugin Stop unloading plugins in QPluginLoader and QFactoryLoader 2016-11-02 17:58:48 +00:00
statemachine Allow QFinalStatePrivate to be subclassed. 2016-01-28 16:24:46 +00:00
thread QOrderedMutexLocker: unlock in reverse order of locking 2016-10-19 13:25:01 +00:00
tools Include intrin.h header when using MSVC 2016-11-02 09:49:54 +00:00
xml QtCore: Fix QXmlStreamReader for invalid characters in XML 1.0 2016-07-17 14:54:36 +00:00
corelib.pro Add OpenBSD to list of targets that can't use --no-undefined in qtcore 2016-06-22 16:25:22 +00:00
eval.pri
Qt5Config.cmake.in
Qt5CoreConfigExtras.cmake.in CMake: Add -fPIC to CXX flags only where necessary 2015-12-28 22:39:58 +00:00
Qt5CoreConfigExtrasMkspecDir.cmake.in
Qt5CoreConfigExtrasMkspecDirForInstall.cmake.in
Qt5CoreMacros.cmake CMake: Fix qt5_use_modules macro for CMake 2.8.11 2016-01-11 09:53:32 +00:00
Qt5CTestMacros.cmake Enable cmake auto tests for -no-gui 2016-03-30 07:16:50 +00:00
QtCore.dynlist
qtzlib.pro make a proper header-only module for QtZlib 2015-11-17 20:22:17 +00:00