From: Sebastian Pipping Date: Wed, 2 Mar 2011 23:50:55 +0000 (+0100) Subject: Fix decoding of inotify_init1() flags X-Git-Tag: v4.6~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e1405a4ac1863d5c1447ff278de4a5f522b300c;p=strace Fix decoding of inotify_init1() flags * file.c (inotify_init_flags): New xlat structure. (sys_inotify_init1): Use it instead of open_mode_flags. --- diff --git a/file.c b/file.c index 15db40f8..a0f53f9e 100644 --- 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; }