]> granicus.if.org Git - strace/blobdiff - inotify.c
mips n32: fix preadv/pwritev offset decoding
[strace] / inotify.c
index 03689b50c28493d633030fd79957c4888cdcc9f6..81c8c5d832b3e59bb90265f9d34bec85e6a2dc23 100644 (file)
--- a/inotify.c
+++ b/inotify.c
@@ -1,39 +1,8 @@
 #include "defs.h"
 #include <fcntl.h>
-#include <linux/inotify.h>
 
-static const struct xlat inotify_flags[] = {
-       XLAT(IN_ACCESS),
-       XLAT(IN_MODIFY),
-       XLAT(IN_ATTRIB),
-       XLAT(IN_CLOSE),
-       XLAT(IN_CLOSE_WRITE),
-       XLAT(IN_CLOSE_NOWRITE),
-       XLAT(IN_OPEN),
-       XLAT(IN_MOVE),
-       XLAT(IN_MOVED_FROM),
-       XLAT(IN_MOVED_TO),
-       XLAT(IN_CREATE),
-       XLAT(IN_DELETE),
-       XLAT(IN_DELETE_SELF),
-       XLAT(IN_MOVE_SELF),
-       XLAT(IN_UNMOUNT),
-       XLAT(IN_Q_OVERFLOW),
-       XLAT(IN_IGNORED),
-       XLAT(IN_ONLYDIR),
-       XLAT(IN_DONT_FOLLOW),
-       XLAT(IN_EXCL_UNLINK),
-       XLAT(IN_MASK_ADD),
-       XLAT(IN_ISDIR),
-       XLAT(IN_ONESHOT),
-       XLAT_END
-};
-
-static const struct xlat inotify_init_flags[] = {
-       XLAT(O_NONBLOCK),
-       XLAT(O_CLOEXEC),
-       XLAT_END
-};
+#include "xlat/inotify_flags.h"
+#include "xlat/inotify_init_flags.h"
 
 int
 sys_inotify_add_watch(struct tcb *tcp)