* desc.c (epollflags): Define.
(sys_epoll_create1): Use epollflags to printflags. Change "O" to "EPOLL".
Reported-by: Марк Коренберг <socketpair@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
return 0;
}
+static const struct xlat epollflags[] = {
+#ifdef EPOLL_CLOEXEC
+ { EPOLL_CLOEXEC, "EPOLL_CLOEXEC" },
+#endif
+#ifdef EPOLL_NONBLOCK
+ { EPOLL_NONBLOCK, "EPOLL_NONBLOCK" },
+#endif
+ { 0, NULL }
+};
+
int
sys_epoll_create1(struct tcb *tcp)
{
if (entering(tcp))
- printflags(open_mode_flags, tcp->u_arg[0], "O_???");
+ printflags(epollflags, tcp->u_arg[0], "EPOLL_???");
return 0;
}