summaryrefslogtreecommitdiff
path: root/linux-user/mmap.c
diff options
context:
space:
mode:
authorPetar Jovanovic <petar.jovanovic@imgtec.com>2013-07-01 02:44:14 +0200
committerRiku Voipio <riku.voipio@linaro.org>2013-07-05 15:45:40 +0300
commitf651e6ae55b047a8ac4b6b5891fe69ba4c66c57c (patch)
tree6a5d726a907176a6fcf7725becbe72ea6f1d4336 /linux-user/mmap.c
parent023b0ae33be6ce2e60d75d2b54a3d2cea6b6020e (diff)
downloadqemu-f651e6ae55b047a8ac4b6b5891fe69ba4c66c57c.tar.gz
linux-user: improve target_to_host_sock_type conversion
Previous implementation has failed to take into account different value of SOCK_NONBLOCK on target and host, and existence of SOCK_CLOEXEC. The same conversion has to be applied both for do_socket and do_socketpair, so the code has been isolated in a static inline function. enum sock_type in linux-user/socket.h has been extended to include TARGET_SOCK_CLOEXEC and TARGET_SOCK_NONBLOCK, similar to definition in libc. The patch also includes necessary code style changes (tab to spaces) in the header file since most of the file has been touched by this change. Signed-off-by: Petar Jovanovic <petar.jovanovic@imgtec.com> Message-id: 1372639454-7560-1-git-send-email-petar.jovanovic@rt-rk.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'linux-user/mmap.c')
0 files changed, 0 insertions, 0 deletions