Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
inotify.h File Reference
#include <linux/fcntl.h>
#include <linux/types.h>

Go to the source code of this file.

Data Structures

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_EXCL_UNLINK   0x04000000 /* exclude events on unlinked objects */
 
#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
 
#define IN_CLOEXEC   O_CLOEXEC
 
#define IN_NONBLOCK   O_NONBLOCK
 

Macro Definition Documentation

#define IN_ACCESS   0x00000001 /* File was accessed */

Definition at line 29 of file inotify.h.

#define IN_ALL_EVENTS
Value:
IN_CLOSE_NOWRITE | IN_OPEN | IN_MOVED_FROM | \
IN_MOVED_TO | IN_DELETE | IN_CREATE | IN_DELETE_SELF | \
IN_MOVE_SELF)

Definition at line 64 of file inotify.h.

#define IN_ATTRIB   0x00000004 /* Metadata changed */

Definition at line 31 of file inotify.h.

#define IN_CLOEXEC   O_CLOEXEC

Definition at line 70 of file inotify.h.

#define IN_CLOSE   (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE) /* close */

Definition at line 48 of file inotify.h.

#define IN_CLOSE_NOWRITE   0x00000010 /* Unwrittable file closed */

Definition at line 33 of file inotify.h.

#define IN_CLOSE_WRITE   0x00000008 /* Writtable file was closed */

Definition at line 32 of file inotify.h.

#define IN_CREATE   0x00000100 /* Subfile was created */

Definition at line 37 of file inotify.h.

#define IN_DELETE   0x00000200 /* Subfile was deleted */

Definition at line 38 of file inotify.h.

#define IN_DELETE_SELF   0x00000400 /* Self was deleted */

Definition at line 39 of file inotify.h.

#define IN_DONT_FOLLOW   0x02000000 /* don't follow a sym link */

Definition at line 53 of file inotify.h.

#define IN_EXCL_UNLINK   0x04000000 /* exclude events on unlinked objects */

Definition at line 54 of file inotify.h.

#define IN_IGNORED   0x00008000 /* File was ignored */

Definition at line 45 of file inotify.h.

#define IN_ISDIR   0x40000000 /* event occurred against dir */

Definition at line 56 of file inotify.h.

#define IN_MASK_ADD   0x20000000 /* add to the mask of an already existing watch */

Definition at line 55 of file inotify.h.

#define IN_MODIFY   0x00000002 /* File was modified */

Definition at line 30 of file inotify.h.

#define IN_MOVE   (IN_MOVED_FROM | IN_MOVED_TO) /* moves */

Definition at line 49 of file inotify.h.

#define IN_MOVE_SELF   0x00000800 /* Self was moved */

Definition at line 40 of file inotify.h.

#define IN_MOVED_FROM   0x00000040 /* File was moved from X */

Definition at line 35 of file inotify.h.

#define IN_MOVED_TO   0x00000080 /* File was moved to Y */

Definition at line 36 of file inotify.h.

#define IN_NONBLOCK   O_NONBLOCK

Definition at line 71 of file inotify.h.

#define IN_ONESHOT   0x80000000 /* only send event once */

Definition at line 57 of file inotify.h.

#define IN_ONLYDIR   0x01000000 /* only watch the path if it is a directory */

Definition at line 52 of file inotify.h.

#define IN_OPEN   0x00000020 /* File was opened */

Definition at line 34 of file inotify.h.

#define IN_Q_OVERFLOW   0x00004000 /* Event queued overflowed */

Definition at line 44 of file inotify.h.

#define IN_UNMOUNT   0x00002000 /* Backing fs was unmounted */

Definition at line 43 of file inotify.h.