]> granicus.if.org Git - strace/commitdiff
Fix decoding of inotify_init1() flags
authorSebastian Pipping <sebastian@pipping.org>
Wed, 2 Mar 2011 23:50:55 +0000 (00:50 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 3 Mar 2011 17:33:25 +0000 (17:33 +0000)
* file.c (inotify_init_flags): New xlat structure.
(sys_inotify_init1): Use it instead of open_mode_flags.

file.c

diff --git a/file.c b/file.c
index 15db40f82f0ca264f8f8d22f085f085de10bf292..a0f53f9ef5bf2f1faae66845b43f4e6863aeda43 100644 (file)
--- a/file.c
+++ b/file.c
@@ -2941,6 +2941,12 @@ static const struct xlat inotify_modes[] = {
        { 0,            NULL            }
 };
 
+static const struct xlat inotify_init_flags[] = {
+       { 0x00000800,   "IN_NONBLOCK"   },
+       { 0x00080000,   "IN_CLOEXEC"    },
+       { 0,            NULL            }
+};
+
 int
 sys_inotify_add_watch(struct tcb *tcp)
 {
@@ -2966,7 +2972,7 @@ int
 sys_inotify_init1(struct tcb *tcp)
 {
        if (entering(tcp))
-               printflags(open_mode_flags, tcp->u_arg[0], "O_???");
+               printflags(inotify_init_flags, tcp->u_arg[0], "IN_???");
        return 0;
 }