Qt 4.8
Classes | Functions | Variables
qfilesystemwatcher_dnotify.cpp File Reference
#include "qplatformdefs.h"
#include "qfilesystemwatcher.h"
#include "qfilesystemwatcher_dnotify_p.h"
#include <qsocketnotifier.h>
#include <qcoreapplication.h>
#include <qfileinfo.h>
#include <qtimer.h>
#include <qwaitcondition.h>
#include <qmutex.h>
#include <dirent.h>
#include <qdir.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <signal.h>
#include <unistd.h>
#include <fcntl.h>
#include <time.h>
#include "private/qcore_unix_p.h"
#include "qfilesystemwatcher_dnotify.moc"

Go to the source code of this file.

Classes

class  QDnotifySignalThread
 

Functions

static void qfswd_sigio_monitor (int signum, siginfo_t *i, void *v)
 

Variables

static int qfswd_fileChanged_pipe [2]
 
static void(* qfswd_old_sigio_action )(int, siginfo_t *, void *)=0
 
static void(* qfswd_old_sigio_handler )(int)=0
 

Function Documentation

◆ qfswd_sigio_monitor()

static void qfswd_sigio_monitor ( int  signum,
siginfo_t *  i,
void *  v 
)
static

Definition at line 84 of file qfilesystemwatcher_dnotify.cpp.

Referenced by QDnotifySignalThread::QDnotifySignalThread().

85 {
86  qt_safe_write(qfswd_fileChanged_pipe[1], reinterpret_cast<char*>(&i->si_fd), sizeof(int));
87 
91  qfswd_old_sigio_action(signum, i, v);
92 }
static void(* qfswd_old_sigio_handler)(int)=0
static void(* qfswd_old_sigio_action)(int, siginfo_t *, void *)=0
static int qfswd_fileChanged_pipe[2]
static qint64 qt_safe_write(int fd, const void *data, qint64 len)
Definition: qcore_unix_p.h:282

Variable Documentation

◆ qfswd_fileChanged_pipe

int qfswd_fileChanged_pipe[2]
static

◆ qfswd_old_sigio_action

void(* qfswd_old_sigio_action) (int, siginfo_t *, void *)=0
static

◆ qfswd_old_sigio_handler

void(* qfswd_old_sigio_handler) (int)=0
static