linux-user: Fix sched_get/setaffinity conversion
commit2e0a8713bd6804ce49044915ba9cd5bd7148de77
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 9 Jan 2018 20:16:43 +0000 (9 21:16 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 23 Jan 2018 13:20:52 +0000 (23 14:20 +0100)
treefa9f232f2cd1017d520518e52ed318cc3de8ceb0
parent95e6d4305affbbf5258c6a533be9bfd24599da90
linux-user: Fix sched_get/setaffinity conversion

sched_get/setaffinity linux-user syscalls were missing conversions for
little/big endian, which is hairy since longs may not be the same size
either.

For simplicity, this just introduces loops to convert bit by bit like is
done for select.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20180109201643.1479-1-samuel.thibault@ens-lyon.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/syscall.c