TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
inotify-nosys.h File Reference
#include <stdint.h>
#include <sys/syscall.h>
#include <unistd.h>
+ Include dependency graph for inotify-nosys.h:

Go to the source code of this file.

Classes

struct  inotify_event
 

Macros

#define IN_ACCESS   0x00000001 /* File was accessed */
 
#define IN_MODIFY   0x00000002 /* File was modified */
 
#define IN_ATTRIB   0x00000004 /* Metadata changed */
 
#define IN_CLOSE_WRITE   0x00000008 /* Writtable file was closed */
 
#define IN_CLOSE_NOWRITE   0x00000010 /* Unwrittable file closed */
 
#define IN_OPEN   0x00000020 /* File was opened */
 
#define IN_MOVED_FROM   0x00000040 /* File was moved from X */
 
#define IN_MOVED_TO   0x00000080 /* File was moved to Y */
 
#define IN_CREATE   0x00000100 /* Subfile was created */
 
#define IN_DELETE   0x00000200 /* Subfile was deleted */
 
#define IN_DELETE_SELF   0x00000400 /* Self was deleted */
 
#define IN_MOVE_SELF   0x00000800 /* Self was moved */
 
#define IN_UNMOUNT   0x00002000 /* Backing fs was unmounted */
 
#define IN_Q_OVERFLOW   0x00004000 /* Event queued overflowed */
 
#define IN_IGNORED   0x00008000 /* File was ignored */
 
#define IN_CLOSE   (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE) /* close */
 
#define IN_MOVE   (IN_MOVED_FROM | IN_MOVED_TO) /* moves */
 
#define IN_ONLYDIR   0x01000000 /* only watch the path if it is a directory */
 
#define IN_DONT_FOLLOW   0x02000000 /* don't follow a sym link */
 
#define IN_MASK_ADD   0x20000000 /* add to the mask of an already existing watch */
 
#define IN_ISDIR   0x40000000 /* event occurred against dir */
 
#define IN_ONESHOT   0x80000000 /* only send event once */
 
#define IN_ALL_EVENTS
 

Functions

static int inotify_init (void)
 
static int inotify_add_watch (int fd, const char *name, uint32_t mask)
 
static int inotify_rm_watch (int fd, uint32_t wd)
 

Macro Definition Documentation

#define IN_ACCESS   0x00000001 /* File was accessed */
#define IN_ALL_EVENTS
Value:
#define IN_CLOSE_NOWRITE
Definition: inotify-nosys.h:27
#define IN_MODIFY
Definition: inotify-nosys.h:24
#define IN_CLOSE_WRITE
Definition: inotify-nosys.h:26
#define IN_CREATE
Definition: inotify-nosys.h:31
#define IN_MOVED_TO
Definition: inotify-nosys.h:30
#define IN_MOVE_SELF
Definition: inotify-nosys.h:34
#define IN_ACCESS
Definition: inotify-nosys.h:23
#define IN_DELETE_SELF
Definition: inotify-nosys.h:33
#define IN_OPEN
Definition: inotify-nosys.h:28
#define IN_MOVED_FROM
Definition: inotify-nosys.h:29
#define IN_ATTRIB
Definition: inotify-nosys.h:25
#define IN_DELETE
Definition: inotify-nosys.h:32
#define IN_ATTRIB   0x00000004 /* Metadata changed */
#define IN_CLOSE   (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE) /* close */
#define IN_CLOSE_NOWRITE   0x00000010 /* Unwrittable file closed */
#define IN_CLOSE_WRITE   0x00000008 /* Writtable file was closed */
#define IN_CREATE   0x00000100 /* Subfile was created */
#define IN_DELETE   0x00000200 /* Subfile was deleted */
#define IN_DELETE_SELF   0x00000400 /* Self was deleted */
#define IN_DONT_FOLLOW   0x02000000 /* don't follow a sym link */
#define IN_IGNORED   0x00008000 /* File was ignored */
#define IN_ISDIR   0x40000000 /* event occurred against dir */
#define IN_MASK_ADD   0x20000000 /* add to the mask of an already existing watch */
#define IN_MODIFY   0x00000002 /* File was modified */
#define IN_MOVE   (IN_MOVED_FROM | IN_MOVED_TO) /* moves */
#define IN_MOVE_SELF   0x00000800 /* Self was moved */
#define IN_MOVED_FROM   0x00000040 /* File was moved from X */
#define IN_MOVED_TO   0x00000080 /* File was moved to Y */
#define IN_ONESHOT   0x80000000 /* only send event once */
#define IN_ONLYDIR   0x01000000 /* only watch the path if it is a directory */
#define IN_OPEN   0x00000020 /* File was opened */
#define IN_Q_OVERFLOW   0x00004000 /* Event queued overflowed */
#define IN_UNMOUNT   0x00002000 /* Backing fs was unmounted */

Function Documentation

static int inotify_add_watch ( int  fd,
const char *  name,
uint32_t  mask 
)
inlinestatic
149 {
150  return syscall (__NR_inotify_add_watch, fd, name, mask);
151 }
static int inotify_init ( void  )
inlinestatic
144 {
145  return syscall (__NR_inotify_init);
146 }
static int inotify_rm_watch ( int  fd,
uint32_t  wd 
)
inlinestatic
154 {
155  return syscall (__NR_inotify_rm_watch, fd, wd);
156 }