#include "qplatformdefs.h"
#include <QtCore/private/qglobal_p.h>
#include "qatomic.h"
#include "qbytearray.h"
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/select.h>
#include <sys/time.h>
#include <sys/wait.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/ipc.h>
#include <poll.h>
Go to the source code of this file.
|
QT_BEGIN_NAMESPACE | Q_DECLARE_TYPEINFO (pollfd, Q_PRIMITIVE_TYPE) |
|
constexpr timespec & | normalizedTimespec (timespec &t) |
|
constexpr bool | operator< (const timespec &t1, const timespec &t2) |
|
constexpr bool | operator== (const timespec &t1, const timespec &t2) |
|
constexpr bool | operator!= (const timespec &t1, const timespec &t2) |
|
constexpr timespec & | operator+= (timespec &t1, const timespec &t2) |
|
constexpr timespec | operator+ (const timespec &t1, const timespec &t2) |
|
constexpr timespec | operator- (const timespec &t1, const timespec &t2) |
|
constexpr timespec | operator* (const timespec &t1, int mul) |
|
timeval | timespecToTimeval (const timespec &ts) |
|
void | qt_ignore_sigpipe () |
|
timespec | qt_gettime () noexcept |
|
void | qt_nanosleep (timespec amount) |
|
QByteArray | qt_readlink (const char *path) |
|
bool | qt_haveLinuxProcfs () |
|
Q_CORE_EXPORT int | qt_safe_poll (struct pollfd *fds, nfds_t nfds, const struct timespec *timeout_ts) |
|
◆ _POSIX_MONOTONIC_CLOCK
#define _POSIX_MONOTONIC_CLOCK -1 |
◆ EINTR_LOOP
#define EINTR_LOOP |
( |
|
var, |
|
|
|
cmd |
|
) |
| |
Value: do { \
var = cmd; \
}
while (
var == -1 && errno == EINTR)
Definition at line 98 of file qcore_unix_p.h.
◆ QT_CLOSE
#define QT_CLOSE qt_safe_close |
◆ QT_OPEN
#define QT_OPEN qt_safe_open |
◆ QT_READ
#define QT_READ qt_safe_read |
◆ QT_WRITE
#define QT_WRITE qt_safe_write |
◆ normalizedTimespec()
constexpr timespec& normalizedTimespec |
( |
timespec & |
t | ) |
|
|
inlineconstexpr |
◆ operator!=()
◆ operator*()
constexpr timespec operator* |
( |
const timespec & |
t1, |
|
|
int |
mul |
|
) |
| |
|
inlineconstexpr |
◆ operator+()
constexpr timespec operator+ |
( |
const timespec & |
t1, |
|
|
const timespec & |
t2 |
|
) |
| |
|
inlineconstexpr |
◆ operator+=()
constexpr timespec& operator+= |
( |
timespec & |
t1, |
|
|
const timespec & |
t2 |
|
) |
| |
|
inlineconstexpr |
◆ operator-()
constexpr timespec operator- |
( |
const timespec & |
t1, |
|
|
const timespec & |
t2 |
|
) |
| |
|
inlineconstexpr |
◆ operator<()
constexpr bool operator< |
( |
const timespec & |
t1, |
|
|
const timespec & |
t2 |
|
) |
| |
|
inlineconstexpr |
◆ operator==()
constexpr bool operator== |
( |
const timespec & |
t1, |
|
|
const timespec & |
t2 |
|
) |
| |
|
inlineconstexpr |
◆ Q_DECLARE_TYPEINFO()
◆ qt_gettime()
◆ qt_haveLinuxProcfs()
bool qt_haveLinuxProcfs |
( |
| ) |
|
|
inline |
◆ qt_ignore_sigpipe()
void qt_ignore_sigpipe |
( |
| ) |
|
|
inline |
◆ qt_nanosleep()
void qt_nanosleep |
( |
timespec |
amount | ) |
|
◆ qt_readlink()
◆ qt_safe_poll()
Q_CORE_EXPORT int qt_safe_poll |
( |
struct pollfd * |
fds, |
|
|
nfds_t |
nfds, |
|
|
const struct timespec * |
timeout_ts |
|
) |
| |
◆ timespecToTimeval()
timeval timespecToTimeval |
( |
const timespec & |
ts | ) |
|
|
inline |