Qt 4.8
|
#include "qplatformdefs.h"
#include "qatomic.h"
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/wait.h>
#include <errno.h>
#include <fcntl.h>
Go to the source code of this file.
Classes | |
union | qt_semun |
Macros | |
#define | _POSIX_MONOTONIC_CLOCK -1 |
#define | EINTR_LOOP(var, cmd) |
#define | QT_CLOSE qt_safe_close |
#define | QT_OPEN qt_safe_open |
#define | QT_READ qt_safe_read |
#define | QT_UNIX_SUPPORTS_THREADSAFE_CLOEXEC 0 |
#define | QT_WRITE qt_safe_write |
Functions | |
timeval & | normalizedTimeval (timeval &t) |
timeval | operator* (const timeval &t1, int mul) |
timeval | operator+ (const timeval &t1, const timeval &t2) |
timeval & | operator+= (timeval &t1, const timeval &t2) |
timeval | operator- (const timeval &t1, const timeval &t2) |
bool | operator< (const timeval &t1, const timeval &t2) |
bool | operator== (const timeval &t1, const timeval &t2) |
timeval | qt_gettime () |
void | qt_ignore_sigpipe () |
static int | qt_safe_close (int fd) |
static int | qt_safe_dup (int oldfd, int atleast=0, int flags=FD_CLOEXEC) |
static int | qt_safe_dup2 (int oldfd, int newfd, int flags=FD_CLOEXEC) |
static int | qt_safe_execv (const char *path, char *const argv[]) |
static int | qt_safe_execve (const char *filename, char *const argv[], char *const envp[]) |
static int | qt_safe_execvp (const char *file, char *const argv[]) |
static int | qt_safe_open (const char *pathname, int flags, mode_t mode=0777) |
static int | qt_safe_pipe (int pipefd[2], int flags=0) |
static qint64 | qt_safe_read (int fd, void *data, qint64 maxlen) |
Q_CORE_EXPORT int | qt_safe_select (int nfds, fd_set *fdread, fd_set *fdwrite, fd_set *fdexcept, const struct timeval *tv) |
static pid_t | qt_safe_waitpid (pid_t pid, int *status, int options) |
static qint64 | qt_safe_write (int fd, const void *data, qint64 len) |
static qint64 | qt_safe_write_nosignal (int fd, const void *data, qint64 len) |
#define _POSIX_MONOTONIC_CLOCK -1 |
Definition at line 343 of file qcore_unix_p.h.
#define EINTR_LOOP | ( | var, | |
cmd | |||
) |
Definition at line 96 of file qcore_unix_p.h.
Referenced by QWSSharedMemory::attach(), QSharedMemoryPrivate::attach(), QWSSharedMemory::create(), QSharedMemoryPrivate::create(), QWSLock::down(), QLock::lock(), QSystemSemaphorePrivate::modifySemaphore(), QProcessPrivate::processStarted(), qt_safe_close(), qt_safe_connect(), qt_safe_dup2(), qt_safe_execv(), qt_safe_execve(), qt_safe_execvp(), qt_safe_open(), qt_safe_read(), qt_safe_select(), qt_safe_sendto(), qt_safe_waitpid(), qt_safe_write(), QKqueueFileSystemWatcherEngine::run(), QLock::unlock(), and QWSLock::up().
#define QT_CLOSE qt_safe_close |
Definition at line 304 of file qcore_unix_p.h.
Referenced by QFontDatabasePrivate::addQPF2File(), QTransportAuth::authorizeRequest(), QFontEngineQPF::cleanUpAfterClientCrash(), closeAllOpenFds(), QFSFileEnginePrivate::closeFdFh(), QWSPcMouseSubHandler::closeIfNot(), QLinuxFbIntegrationPrivate::closeTty(), QLinuxFbScreenPrivate::closeTty(), QUnixSocket::connect(), QUnixSocketPrivate::flushAncillary(), QFSFileEnginePrivate::nativeOpen(), QFontEngineQPF1::QFontEngineQPF1(), qt_safe_close(), QFSFileEngine::~QFSFileEngine(), QLinuxInputKeyboardHandler::~QLinuxInputKeyboardHandler(), QLinuxInputMouseHandler::~QLinuxInputMouseHandler(), QLock::~QLock(), QQnxMouseHandler::~QQnxMouseHandler(), QUnixSocketRightsPrivate::~QUnixSocketRightsPrivate(), QVFbKeyboardHandler::~QVFbKeyboardHandler(), QVFbMouseHandler::~QVFbMouseHandler(), QVFbScreenKeyboardHandler::~QVFbScreenKeyboardHandler(), QVFbScreenMouseHandler::~QVFbScreenMouseHandler(), QWSLinuxInputKbPrivate::~QWSLinuxInputKbPrivate(), QWSLinuxInputMousePrivate::~QWSLinuxInputMousePrivate(), QWSLinuxTPMouseHandlerPrivate::~QWSLinuxTPMouseHandlerPrivate(), QWSQnxKeyboardHandler::~QWSQnxKeyboardHandler(), QWSTtyKbPrivate::~QWSTtyKbPrivate(), and QWSUmKeyboardHandlerPrivate::~QWSUmKeyboardHandlerPrivate().
#define QT_OPEN qt_safe_open |
Definition at line 186 of file qcore_unix_p.h.
Referenced by QFontDatabasePrivate::addQPF2File(), QTransportAuth::authorizeRequest(), QFontEngineQPF::cleanUpAfterClientCrash(), QLinuxFbScreen::connect(), QLinuxFbIntegration::connect(), createFileFromTemplate(), QTranslatorPrivate::do_load(), QLinuxFbScreen::initDevice(), QLinuxFbIntegration::initDevice(), QFSFileEnginePrivate::nativeOpen(), QWSSoundServerPrivate::openDevice(), QWSPcMouseHandlerPrivate::openDevices(), QWSSoundServerPrivate::openFile(), QLinuxFbIntegrationPrivate::openTty(), QLinuxFbScreenPrivate::openTty(), QFontEngineQPF::QFontEngineQPF(), QFontEngineQPF1::QFontEngineQPF1(), QLinuxInputKeyboardHandler::QLinuxInputKeyboardHandler(), QLinuxInputMouseHandler::QLinuxInputMouseHandler(), QLock::QLock(), QQnxMouseHandler::QQnxMouseHandler(), qt_safe_open(), QVFbKeyboardHandler::QVFbKeyboardHandler(), QVFbMouseHandler::QVFbMouseHandler(), QVFbScreenKeyboardHandler::QVFbScreenKeyboardHandler(), QVFbScreenMouseHandler::QVFbScreenMouseHandler(), QWSLinuxInputKbPrivate::QWSLinuxInputKbPrivate(), QWSLinuxInputMousePrivate::QWSLinuxInputMousePrivate(), QWSLinuxTPMouseHandlerPrivate::QWSLinuxTPMouseHandlerPrivate(), QWSQnxKeyboardHandler::QWSQnxKeyboardHandler(), QWSTtyKbPrivate::QWSTtyKbPrivate(), QWSUmKeyboardHandlerPrivate::QWSUmKeyboardHandlerPrivate(), and QDynamicFileResourceRoot::registerSelf().
#define QT_READ qt_safe_read |
Definition at line 280 of file qcore_unix_p.h.
Referenced by QTransportAuth::authorizeRequest(), QWSPcMouseSubHandler_intellimouse::init(), QWSPcMouseSubHandler_mouseman::init(), QFontEngineQPF1::QFontEngineQPF1(), qt_safe_read(), QVFbKeyboardHandler::QVFbKeyboardHandler(), QVFbMouseHandler::QVFbMouseHandler(), QVFbScreenKeyboardHandler::QVFbScreenKeyboardHandler(), QVFbScreenMouseHandler::QVFbScreenMouseHandler(), QWSUmKeyboardHandlerPrivate::QWSUmKeyboardHandlerPrivate(), QFSFileEnginePrivate::readFdFh(), QVFbKeyboardHandler::readKeyboardData(), QWSUmKeyboardHandlerPrivate::readKeyboardData(), QVFbScreenKeyboardHandler::readKeyboardData(), QWSLinuxInputKbPrivate::readKeycode(), QWSTtyKbPrivate::readKeycode(), QLinuxInputKeyboardHandler::readKeycode(), QLinuxInputMouseHandler::readMouseData(), QWSLinuxInputMousePrivate::readMouseData(), QVFbMouseHandler::readMouseData(), QWSLinuxTPMouseHandlerPrivate::readMouseData(), QVFbScreenMouseHandler::readMouseData(), QWSQnxKeyboardHandler::socketActivated(), and QQnxMouseHandler::socketActivated().
#define QT_UNIX_SUPPORTS_THREADSAFE_CLOEXEC 0 |
Definition at line 93 of file qcore_unix_p.h.
#define QT_WRITE qt_safe_write |
Definition at line 289 of file qcore_unix_p.h.
Referenced by QLinuxFbIntegrationPrivate::closeTty(), QLinuxFbScreenPrivate::closeTty(), QWSPcMouseSubHandler_intellimouse::init(), QWSPcMouseSubHandler_mouseman::init(), QWSPcMouseSubHandler_mousesystems::init(), QWSPcMouseSubHandler_ms::init(), QWSPcMouseSubHandler_serial::initSerial(), QFontEngineQPF::loadGlyph(), QLinuxFbIntegrationPrivate::openTty(), QLinuxFbScreenPrivate::openTty(), QFontEngineQPF::QFontEngineQPF(), qt_safe_write(), QWSLinuxInputKbPrivate::switchLed(), QLinuxInputKeyboardHandler::switchLed(), and QFSFileEnginePrivate::writeFdFh().
|
inline |
Definition at line 104 of file qcore_unix_p.h.
Referenced by operator*(), operator+(), operator+=(), operator-(), and QTimerInfoList::updateCurrentTime().
|
inline |
|
inline |
Definition at line 126 of file qcore_unix_p.h.
Referenced by QVector< QPoint >::constData(), qargb8565::ialpha(), qargb8555::ialpha(), qargb6666::ialpha(), qrgb666::ialpha(), qrgb888::ialpha(), qrgb555::operator quint16(), operator%(), QLinkedList< T >::iterator::operator-(), QLinkedList< T >::const_iterator::operator-(), QMap< Key, T >::iterator::operator-(), QMap< Key, T >::const_iterator::operator-(), QHash< Key, T >::iterator::operator-(), QHash< Key, T >::const_iterator::operator-(), qargb4444::qargb4444(), qrgb444::qrgb444(), qrgb565::qrgb565(), QPainterPath::swap(), QLinkedList< JSC::Identifier >::toStdList(), and QRegion::xored().
|
inline |
Definition at line 120 of file qcore_unix_p.h.
Referenced by QVector< QPoint >::back(), QScriptLine::base(), QVector< QPoint >::constData(), QByteArray::isSharedWith(), QString::isSimpleText(), QItemSelection::merge(), QMatrix4x4::QMatrix4x4(), QTransform::QTransform(), QPainterPath::swap(), QLinkedList< JSC::Identifier >::toStdList(), and QRegion::xored().
|
inline |
Definition at line 133 of file qcore_unix_p.h.
Referenced by QVector< QPoint >::constData(), QPainterPath::swap(), and QRegion::xored().
|
inline |
Definition at line 116 of file qcore_unix_p.h.
|
inline |
Definition at line 118 of file qcore_unix_p.h.
timeval qt_gettime | ( | ) |
Definition at line 74 of file qelapsedtimer_mac.cpp.
Referenced by qt_safe_select(), QTimerInfoList::QTimerInfoList(), QEventDispatcherBlackberry::select(), time_update(), and QTimerInfoList::updateCurrentTime().
|
inline |
Definition at line 148 of file qcore_unix_p.h.
Referenced by qt_safe_sendto(), and qt_safe_write_nosignal().
|
inlinestatic |
Definition at line 297 of file qcore_unix_p.h.
Referenced by QSharedMemoryPrivate::cleanHandle(), QBBButtonEventNotifier::close(), QSharedMemoryPrivate::create(), QSharedMemoryPrivate::createUnixKeyFile(), QProcessPrivate::destroyPipe(), QWSSharedMemory::detach(), detectProcessorFeatures(), QProcessPrivate::execChild(), QDBusUnixFileDescriptor::giveFileDescriptor(), QNativeSocketEnginePrivate::nativeClose(), QProcessPrivate::processStarted(), qt_create_pipe(), QDnotifyFileSystemWatcherEngine::refresh(), QDnotifyFileSystemWatcherEngine::removePaths(), QProcessPrivate::startDetached(), QProcessPrivate::startProcess(), QBBNavigatorEventNotifier::~QBBNavigatorEventNotifier(), QBBSystemLocaleData::~QBBSystemLocaleData(), QDBusUnixFileDescriptorPrivate::~QDBusUnixFileDescriptorPrivate(), QDnotifyFileSystemWatcherEngine::~QDnotifyFileSystemWatcherEngine(), and QProcessManager::~QProcessManager().
|
inlinestatic |
Definition at line 227 of file qcore_unix_p.h.
Referenced by QDnotifyFileSystemWatcherEngine::addPaths(), QUnixSocketRights::dupFd(), QUnixSocketRights::QUnixSocketRights(), and QDBusUnixFileDescriptor::setFileDescriptor().
|
inlinestatic |
Definition at line 251 of file qcore_unix_p.h.
Referenced by QProcessPrivate::execChild().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 171 of file qcore_unix_p.h.
Referenced by QKqueueFileSystemWatcherEngine::addPaths(), QProcessPrivate::createChannel(), QSharedMemoryPrivate::createUnixKeyFile(), detectProcessorFeatures(), QBBSystemLocaleData::QBBSystemLocaleData(), QBBNavigatorEventNotifier::start(), and QBBButtonEventNotifier::start().
|
inlinestatic |
Definition at line 191 of file qcore_unix_p.h.
Referenced by QPdfBaseEnginePrivate::openPrintDevice(), QDnotifySignalThread::QDnotifySignalThread(), QEventDispatcherUNIXPrivate::QEventDispatcherUNIXPrivate(), QProcessManager::QProcessManager(), qt_create_pipe(), and QProcessPrivate::startDetached().
Definition at line 273 of file qcore_unix_p.h.
Referenced by detectProcessorFeatures(), QNativeSocketEnginePrivate::nativeRead(), QBBVirtualKeyboardPps::ppsDataReady(), QProcessPrivate::processStarted(), QBBNavigatorEventNotifier::readData(), QDnotifySignalThread::readFromDnotify(), QProcessPrivate::readFromStderr(), QProcessPrivate::readFromStdout(), QBBSystemLocaleData::readPpsValue(), QProcessManager::run(), QProcessPrivate::startDetached(), QBBButtonEventNotifier::updateButtonStates(), and QProcessPrivate::waitForDeadChild().
Q_CORE_EXPORT int qt_safe_select | ( | int | nfds, |
fd_set * | fdread, | ||
fd_set * | fdwrite, | ||
fd_set * | fdexcept, | ||
const struct timeval * | tv | ||
) |
Definition at line 73 of file qcore_unix.cpp.
Referenced by QNativeSocketEnginePrivate::nativeSelect(), SelectWorker::run(), QEventDispatcherUNIX::select(), and select_msecs().
|
inlinestatic |
Definition at line 333 of file qcore_unix_p.h.
Referenced by QProcessPrivate::startDetached(), and QProcessPrivate::waitForDeadChild().
Definition at line 282 of file qcore_unix_p.h.
Referenced by QProcessManager::catchDeadChildren(), QProcessPrivate::execChild(), QProcessPrivate::processStarted(), qfswd_sigio_monitor(), qt_sa_sigchld_sigaction(), qt_safe_write_nosignal(), QProcessPrivate::startDetached(), QEventDispatcherUNIX::wakeUp(), and QProcessManager::~QProcessManager().
Definition at line 291 of file qcore_unix_p.h.
Referenced by QNativeSocketEnginePrivate::nativeWrite(), and QProcessPrivate::writeToStdin().