OSDN Git Service

linux-user: Fix inotify_init1 support
authorLena Djokic <Lena.Djokic@rt-rk.com>
Thu, 24 Nov 2016 16:08:53 +0000 (17:08 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 14 Feb 2017 16:18:03 +0000 (17:18 +0100)
commitfea243e90a3647d8616317a5834497fa30a63700
treeee8ff4bf75a3454bed63d782dc093a052a656653
parent6cde51769e75d41cade0a5b3755da0c20a96309a
linux-user: Fix inotify_init1 support

This commit adds necessary conversion of argument passed to inotify_init1.
inotify_init1 flags can be IN_NONBLOCK and IN_CLOEXEC which rely on O_NONBLOCK
and O_CLOEXEC and those can have different values on different platforms.

Signed-off-by: Lena Djokic <Lena.Djokic@rt-rk.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/syscall.c