summaryrefslogtreecommitdiffstats
path: root/linux-user/socket.h
Commit message (Collapse)AuthorAgeFilesLines
* linux-user: improve target_to_host_sock_type conversionPetar Jovanovic2013-07-051-131/+250
| | | | | | | | | | | | | | | | 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>
* linux-user: Add Alpha socket constantsDillon Amburgey2013-03-111-0/+69
| | | | | | | | Without these, some networking programs will not work Signed-off-by: Dillon Amburgey <dillona@dillona.com> Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
* Various linux-user structures and definitions fixes for PowerPC targets.j_mayer2007-12-101-0/+9
| | | | git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3800 c046a42c-6fe2-441c-8c8c-71466251a162
* mips socket calls (initial patch by Raphael Rigo)bellard2006-06-241-0/+138
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2006 c046a42c-6fe2-441c-8c8c-71466251a162