linux-user: fix inotify
commitc4e316cfb5e3f4b58d5d6fb6cb6c2279a5c3229a
authorLaurent Vivier <laurent@vivier.eu>
Thu, 2 Mar 2017 00:54:48 +0000 (2 01:54 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Mon, 29 May 2017 11:56:07 +0000 (29 14:56 +0300)
tree2a09875c757f17450afff02fc9b5960d0eeb76e3
parent43046b5a074029a9354bb2b772ca1f91320440f5
linux-user: fix inotify

When a fd is opened using inotify_init(), a read provides
one or more inotify_event structures:

    struct inotify_event {
        int      wd;
        uint32_t mask;
        uint32_t cookie;
        uint32_t len;
        char     name[];
    };

The integer fields must be byte-swapped to the target endianness.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/syscall.c