6#include <private/qcore_unix_p.h>
7#include <private/qv4compileddata_p.h>
9#include <QtCore/qscopeguard.h>
10#include <QtCore/qdatetime.h>
36 if (bytesRead !=
sizeof(
header)) {
41 if (!
header.verifyHeader(sourceTimeStamp, errorString))
46 length =
static_cast<size_t>(lseek(
fd, 0, SEEK_END));
58 void *
ptr = mmap(
nullptr,
length, PROT_READ, MAP_SHARED,
fd, 0);
68void CompilationUnitMapper::close()
71 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
Combined button and popup list for selecting options.
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)