qt5base-lts/tests/auto/corelib/io
Mate Barany fd70555b33 Deprecate usage of qt_ntfs_permission_lookup
With the introduction of a new atomic variable the users should use the
class QNtfsPermissionCheckGuard or the helper functions
- qEnableNtfsPermissionChecks()
- qDisableNtfsPermissionChecks()
- qAreNtfsPermissionChecksEnabled()
to enable/disable permission checks instead of manually managing the
variable qt_ntfs_permission_lookup (which is a non-atomic variable and
as such prone to data races).

Also moved the variable qt_ntfs_permission_lookup to qfile.h to make it
clash with the user-side declarations the documentation suggested to
use (and it is probably also a better fit thematically anyway).

[ChangeLog][QtCore][Deprecation Notice] Deprecated the variable
qt_ntfs_permission_lookup to avoid race conditions while enabling or
disabling permission checks. It can be replaced by the RAII class
QNtfsPermissionCheckGuard or with the functions
qEnableNtfsPermissionChecks(), qDisableNtfsPermissionChecks() and
qAreNtfsPermissionChecksEnabled().

Fixes: QTBUG-105804
Change-Id: I93a563864ffb3f9945551c34004d8ca393603b25
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
2023-02-14 13:23:19 +01:00
..
largefile Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qabstractfileengine Add QFileInfo::readSymLink() to read the raw link path 2022-12-23 06:26:44 +01:00
qbuffer QBuffer: test and document open() behavior 2022-12-14 19:07:19 +01:00
qdataurl Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qdebug Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qdir QDir: use QCollator when doing locale-aware sorting 2023-02-10 01:19:21 +02:00
qdiriterator Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qfile Deprecate usage of qt_ntfs_permission_lookup 2023-02-14 13:23:19 +01:00
qfileinfo Avoid potential data races caused by qt_ntfs_permission_lookup 2023-02-08 12:59:19 +01:00
qfileselector Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qfilesystementry Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qfilesystemmetadata Adapt corelib to use QTimeZone in place of Qt::TimeSpec 2022-12-09 16:16:48 +01:00
qfilesystemwatcher Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qiodevice Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qipaddress Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qlockfile Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qloggingcategory QMessageLogger: make qFatal categorized and streamable 2022-12-05 04:15:39 +01:00
qloggingregistry Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qnodebug Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qprocess Skip QProcess tests when run under ASan 2022-12-16 19:21:56 +02:00
qprocess-noapplication Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qprocessenvironment Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qresourceengine CMake: Allow contents of resources to be replaced by empty files 2022-12-17 20:43:51 +01:00
qsavefile Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qsettings Adapt corelib to use QTimeZone in place of Qt::TimeSpec 2022-12-09 16:16:48 +01:00
qstandardpaths QStandardPaths/unix: ignore relative paths in all $XDG_* env vars 2023-02-01 19:46:02 +00:00
qstorageinfo Give tst_QStorageInfo a QCOMPARE_op() makeover 2023-01-13 15:08:25 +01:00
qtemporarydir Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qtemporaryfile Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qurl QUrl: restore empty-but-not-null for components that are present 2023-01-17 16:51:53 -08:00
qurlinternal Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qurlquery tst_QUrlQuery: fix Clang 15 -Wself-move 2023-01-23 10:12:35 +01:00
qurluts46 Update UCD to Revision 30 2022-10-11 14:10:59 +00:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00