aboutsummaryrefslogtreecommitdiffstats
path: root/inotify.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2014-04-25 23:30:54 +0000
committerDmitry V. Levin <ldv@altlinux.org>2014-05-30 21:40:03 +0000
commit0ed617bd66624cec6138102545d73b2e2346f1f6 (patch)
tree84a94dad39acc0f8b8283eaf86fd7bdfcef0b5d2 /inotify.c
parent297b59401c998a2154b2fd1af7b234e2fa3a9305 (diff)
downloadandroid_external_strace-0ed617bd66624cec6138102545d73b2e2346f1f6.tar.gz
android_external_strace-0ed617bd66624cec6138102545d73b2e2346f1f6.tar.bz2
android_external_strace-0ed617bd66624cec6138102545d73b2e2346f1f6.zip
Generate xlat/*.in files
Automatically convert xlat structures from *.c files to xlat/*.in files using "./generate_xlat_in.sh *.c" command.
Diffstat (limited to 'inotify.c')
-rw-r--r--inotify.c33
1 files changed, 2 insertions, 31 deletions
diff --git a/inotify.c b/inotify.c
index 03689b50..0c451eae 100644
--- a/inotify.c
+++ b/inotify.c
@@ -2,38 +2,9 @@
#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
-};
+#include "xlat/inotify_flags.h"
-static const struct xlat inotify_init_flags[] = {
- XLAT(O_NONBLOCK),
- XLAT(O_CLOEXEC),
- XLAT_END
-};
+#include "xlat/inotify_init_flags.h"
int
sys_inotify_add_watch(struct tcb *tcp)