8#include <private/qcore_unix_p.h>
35 if (bytesRead !=
sizeof(
header)) {
45 length =
static_cast<size_t>(lseek(
fd, 0, SEEK_END));
47 void *
ptr = mmap(
nullptr,
length, PROT_READ, MAP_SHARED,
fd, 0);
57void CompilationUnitMapper::close()
60 if (dataPtr !=
nullptr) {
\inmodule QtCore\reentrant
static QByteArray encodeName(const QString &fileName)
Converts fileName to an 8-bit encoding that you can use in native APIs.
\macro QT_RESTRICTED_CAST_FROM_ASCII
static bool verifyHeader(const CompiledData::Unit *unit, QDateTime expectedSourceTimeStamp, QString *errorString)
Combined button and popup list for selecting options.
\qmltype Particle \inqmlmodule QtQuick.Particles
static int qt_safe_open(const char *pathname, int flags, mode_t mode=0777)
static qint64 qt_safe_read(int fd, void *data, qint64 maxlen)
static int qt_safe_close(int fd)
static QString header(const QString &name)
Q_DECL_COLD_FUNCTION Q_CORE_EXPORT QString qt_error_string(int errorCode=-1)
static ControlElement< T > * ptr(QWidget *widget)
GLenum GLuint GLenum GLsizei length
QScopeGuard< typename std::decay< F >::type > qScopeGuard(F &&f)
[qScopeGuard]
#define QStringLiteral(str)