#include <stdint.h>
#include <sys/syscall.h>
#include <unistd.h>
Go to the source code of this file.
#define IN_ACCESS 0x00000001 /* File was accessed */ |
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_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_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 */ |
static int inotify_add_watch |
( |
int |
fd, |
|
|
const char * |
name, |
|
|
uint32_t |
mask |
|
) |
| |
|
inlinestatic |
150 return syscall (__NR_inotify_add_watch, fd, name, mask);
static int inotify_init |
( |
void |
| ) |
|
|
inlinestatic |
145 return syscall (__NR_inotify_init);
static int inotify_rm_watch |
( |
int |
fd, |
|
|
uint32_t |
wd |
|
) |
| |
|
inlinestatic |
155 return syscall (__NR_inotify_rm_watch, fd, wd);