Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qlockfile_unix.cpp File Reference

(7191b8fe38788ac57e15e4124955c3cd8333d858)

#include "private/qlockfile_p.h"
#include "QtCore/qtemporaryfile.h"
#include "QtCore/qfileinfo.h"
#include "QtCore/qdebug.h"
#include "QtCore/qdatetime.h"
#include "QtCore/qcache.h"
#include "QtCore/qglobalstatic.h"
#include "QtCore/qmutex.h"
#include "private/qcore_unix_p.h"
#include "private/qabstractfileengine_p.h"
#include "private/qfilesystementry_p.h"
#include "private/qtemporaryfile_p.h"
#include <sys/file.h>
#include <sys/types.h>
#include <signal.h>
#include <unistd.h>
+ Include dependency graph for qlockfile_unix.cpp:

Go to the source code of this file.

Functions

static QT_BEGIN_NAMESPACE qint64 qt_write_loop (int fd, const char *data, qint64 len)
 
static bool setNativeLocks (int fd)
 

Function Documentation

◆ qt_write_loop()

static QT_BEGIN_NAMESPACE qint64 qt_write_loop ( int fd,
const char * data,
qint64 len )
static

Definition at line 55 of file qlockfile_unix.cpp.

References pos, qt_safe_write(), and ret.

Referenced by QLockFilePrivate::tryLock_sys().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setNativeLocks()

static bool setNativeLocks ( int fd)
static

Definition at line 107 of file qlockfile_unix.cpp.

References Q_UNUSED.

Referenced by QLockFilePrivate::removeStaleLock(), and QLockFilePrivate::tryLock_sys().

+ Here is the caller graph for this function: