summaryrefslogtreecommitdiff
path: root/libopie2/opiecore/linux_inotify.h
Unidiff
Diffstat (limited to 'libopie2/opiecore/linux_inotify.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/linux_inotify.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opiecore/linux_inotify.h b/libopie2/opiecore/linux_inotify.h
index 7e19bb4..70e3be8 100644
--- a/libopie2/opiecore/linux_inotify.h
+++ b/libopie2/opiecore/linux_inotify.h
@@ -23,49 +23,49 @@ struct inotify_event {
23 __u32 cookie; /* cookie to synchronize two events */ 23 __u32 cookie; /* cookie to synchronize two events */
24 __u32 len; /* length (including nulls) of name */ 24 __u32 len; /* length (including nulls) of name */
25 char name[0];/* stub for possible name */ 25 char name[0];/* stub for possible name */
26}; 26};
27 27
28/* 28/*
29 * struct inotify_watch_request - represents a watch request 29 * struct inotify_watch_request - represents a watch request
30 * 30 *
31 * Pass to the inotify device via the INOTIFY_WATCH ioctl 31 * Pass to the inotify device via the INOTIFY_WATCH ioctl
32 */ 32 */
33struct inotify_watch_request { 33struct inotify_watch_request {
34 char *name; /* filename name */ 34 char *name; /* filename name */
35 __u32 mask; /* event mask */ 35 __u32 mask; /* event mask */
36}; 36};
37 37
38/* the following are legal, implemented events */ 38/* the following are legal, implemented events */
39 #define IN_ACCESS 0x00000001/* File was accessed */ 39 #define IN_ACCESS 0x00000001/* File was accessed */
40 #define IN_MODIFY 0x00000002/* File was modified */ 40 #define IN_MODIFY 0x00000002/* File was modified */
41 #define IN_ATTRIB 0x00000004/* File changed attributes */ 41 #define IN_ATTRIB 0x00000004/* File changed attributes */
42 #define IN_CLOSE_WRITE 0x00000008/* Writtable file was closed */ 42 #define IN_CLOSE_WRITE 0x00000008/* Writtable file was closed */
43 #define IN_CLOSE_NOWRITE 0x00000010/* Unwrittable file closed */ 43 #define IN_CLOSE_NOWRITE 0x00000010/* Unwrittable file closed */
44 #define IN_OPEN 0x00000020/* File was opened */ 44 #define IN_OPEN 0x00000020/* File was opened */
45 #define IN_MOVED_FROM 0x00000040/* File was moved from X */ 45 #define IN_MOVED_FROM 0x00000040/* File was moved from X */
46 #define IN_MOVED_TO 0x00000080/* File was moved to Y */ 46 #define IN_MOVED_TO 0x00000080/* File was moved to Y */
47 #define IN_DELETE_SUBDIR 0x00000100/* Subdir was deleted */ 47 #define IN_DELETE_SUBDIR 0x00000100/* Subdir was deleted */
48 #define IN_DELETE_FILE 0x00000200/* Subfile was deleted */ 48 #define IN_DELETE_FILE 0x00000200/* Subfile was deleted */
49 #define IN_CREATE_SUBDIR 0x00000400/* Subdir was created */ 49 #define IN_CREATE_SUBDIR 0x00000400/* Subdir was created */
50 #define IN_CREATE_FILE 0x00000800/* Subfile was created */ 50 #define IN_CREATE_FILE 0x00000800/* Subfile was created */
51 #define IN_DELETE_SELF 0x00001000/* Self was deleted */ 51 #define IN_DELETE_SELF 0x00001000/* Self was deleted */
52 #define IN_UNMOUNT 0x00002000/* Backing fs was unmounted */ 52 #define IN_UNMOUNT 0x00002000/* Backing fs was unmounted */
53 #define IN_Q_OVERFLOW 0x00004000/* Event queued overflowed */ 53 #define IN_Q_OVERFLOW 0x00004000/* Event queued overflowed */
54 #define IN_IGNORED 0x00008000/* File was ignored */ 54 #define IN_IGNORED 0x00008000/* File was ignored */
55 55
56/* special flags */ 56/* special flags */
57 #define IN_ALL_EVENTS 0xffffffff/* All the events */ 57 #define IN_ALL_EVENTS 0xffffffff/* All the events */
58 #define IN_CLOSE (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE) 58 #define IN_CLOSE (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE)
59 59
60 #define INOTIFY_IOCTL_MAGIC'Q' 60 #define INOTIFY_IOCTL_MAGIC'Q'
61 #define INOTIFY_IOCTL_MAXNR2 61 #define INOTIFY_IOCTL_MAXNR2
62 62
63 #define INOTIFY_WATCH _IOR(INOTIFY_IOCTL_MAGIC, 1, struct inotify_watch_request) 63 #define INOTIFY_WATCH _IOR(INOTIFY_IOCTL_MAGIC, 1, struct inotify_watch_request)
64 #define INOTIFY_IGNORE _IOR(INOTIFY_IOCTL_MAGIC, 2, int) 64 #define INOTIFY_IGNORE _IOR(INOTIFY_IOCTL_MAGIC, 2, int)
65 65
66#ifdef __KERNEL__ 66#ifdef __KERNEL__
67 67
68#include <linux/dcache.h> 68#include <linux/dcache.h>
69#include <linux/fs.h> 69#include <linux/fs.h>
70#include <linux/config.h> 70#include <linux/config.h>
71#include <asm/atomic.h> 71#include <asm/atomic.h>