Archived
1
0
Fork 0

inotify-backend: remove defines related to adding watches from the interface

defines that are used when adding watches (such as IN_DONT_FOLLOW etc)
are not important to the caller.
This commit is contained in:
Henrik Hautakoski 2011-03-17 18:25:46 +02:00
parent 8eda7e7a42
commit b5d9cf6c30
2 changed files with 2 additions and 13 deletions

View file

@ -20,6 +20,8 @@
#include "inotify-syscalls.h"
#include "log.h"
#define IN_ONLYDIR 0x01000000
#define WATCH_MASK (IN_MOVE | IN_CREATE | IN_DELETE | IN_ONLYDIR)
#define PROCFS_PATH "/proc/sys/fs/inotify/"

View file

@ -50,20 +50,7 @@ struct inotify_event {
#define IN_CLOSE (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE) /* Close. */
#define IN_MOVE (IN_MOVED_FROM | IN_MOVED_TO) /* Moves. */
/* Special flags. */
#define IN_ONLYDIR 0x01000000 /* Only watch the path if it is a
directory. */
#define IN_DONT_FOLLOW 0x02000000 /* Do not 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. */
/* All events which a program can wait on. */
#define IN_ALL_EVENTS (IN_ACCESS | IN_MODIFY | IN_ATTRIB | IN_CLOSE_WRITE \
| IN_CLOSE_NOWRITE | IN_OPEN | IN_MOVED_FROM \
| IN_MOVED_TO | IN_CREATE | IN_DELETE \
| IN_DELETE_SELF | IN_MOVE_SELF)
int inotify_backend_init(void);