![]() |
Qt 6.x
The Qt SDK
|
#include <QtCore/private/qglobal_p.h>#include "qcore_unix_p.h"#include "qelapsedtimer.h"#include <stdlib.h>
Include dependency graph for qcore_unix.cpp:Go to the source code of this file.
Macros | |
| #define | PATH_MAX 1024*1024 |
Functions | |
| QT_BEGIN_NAMESPACE QByteArray | qt_readlink (const char *path) |
| static void | do_gettime (qint64 *sec, qint64 *frac) |
| struct timespec | qt_gettime () noexcept |
| static bool | time_update (struct timespec *tv, const struct timespec &start, const struct timespec &timeout) |
| int | qt_poll (struct pollfd *fds, nfds_t nfds, const struct timespec *timeout_ts) |
| static int | qt_ppoll (struct pollfd *fds, nfds_t nfds, const struct timespec *timeout_ts) |
| int | qt_safe_poll (struct pollfd *fds, nfds_t nfds, const struct timespec *timeout_ts) |
| #define PATH_MAX 1024*1024 |
Definition at line 68 of file qcore_unix.cpp.
Referenced by qt_gettime().
Here is the caller graph for this function:
|
noexcept |
Definition at line 84 of file qcore_unix.cpp.
References do_gettime().
Referenced by qt_safe_poll(), and time_update().
Here is the call graph for this function:
Here is the caller graph for this function:| int qt_poll | ( | struct pollfd * | fds, |
| nfds_t | nfds, | ||
| const struct timespec * | timeout_ts | ||
| ) |
Definition at line 136 of file qpoll.cpp.
References forever, i, QT_POLL_EVENTS_MASK, qt_poll_is_bad_fd(), qt_poll_mark_bad_fds(), qt_poll_prepare(), qt_poll_sweep(), ret, select(), and timespecToTimeval().
Referenced by qt_ppoll().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 121 of file qcore_unix.cpp.
References qt_poll().
Referenced by qt_safe_poll().
Here is the call graph for this function:
Here is the caller graph for this function:| QT_BEGIN_NAMESPACE QByteArray qt_readlink | ( | const char * | path | ) |
Definition at line 23 of file qcore_unix.cpp.
References PATH_MAX, and Qt::Uninitialized.
Referenced by QFileSystemEngine::getLinkTarget(), QFileSystemEngine::getRawLinkPath(), QLockFilePrivate::processNameByPid(), and qAppFileName().
Here is the caller graph for this function:| int qt_safe_poll | ( | struct pollfd * | fds, |
| nfds_t | nfds, | ||
| const struct timespec * | timeout_ts | ||
| ) |
Behaves as close to POSIX poll(2) as practical but may be implemented using select(2) where necessary. In that case, returns -1 and sets errno to EINVAL if passed any descriptor greater than or equal to FD_SETSIZE.
Definition at line 142 of file qcore_unix.cpp.
References EINTR_LOOP, forever, qt_gettime(), qt_ppoll(), ret, and time_update().
Referenced by QEventDispatcherUNIX::processEvents(), and qt_poll_msecs().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 100 of file qcore_unix.cpp.
References now, and qt_gettime().
Referenced by qt_safe_poll().
Here is the call graph for this function:
Here is the caller graph for this function: