From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyUAP-0004sx-DY for qemu-devel@nongnu.org; Sat, 21 Jun 2014 18:53:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WyUAJ-0005Vp-4p for qemu-devel@nongnu.org; Sat, 21 Jun 2014 18:53:49 -0400 Received: from mail-we0-x234.google.com ([2a00:1450:400c:c03::234]:49390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyUAI-0005Uv-Ut for qemu-devel@nongnu.org; Sat, 21 Jun 2014 18:53:43 -0400 Received: by mail-we0-f180.google.com with SMTP id x48so5227317wes.39 for ; Sat, 21 Jun 2014 15:53:42 -0700 (PDT) Sender: Paul Burton From: Paul Burton Date: Sat, 21 Jun 2014 23:52:57 +0100 Message-Id: <1403391191-18603-3-git-send-email-paul@archlinuxmips.org> In-Reply-To: <1403391191-18603-1-git-send-email-paul@archlinuxmips.org> References: <1403391191-18603-1-git-send-email-paul@archlinuxmips.org> Subject: [Qemu-devel] [PATCH v2 02/16] linux-user: support SO_ACCEPTCONN getsockopt option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Riku Voipio , Paul Burton Translate the SO_ACCEPTCONN option to the host value & execute the syscall as expected. Signed-off-by: Paul Burton --- Changes in v2: - None. --- linux-user/syscall.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 30610e7..dba5b4d 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -1650,6 +1650,9 @@ static abi_long do_getsockopt(int sockfd, int level, int optname, case TARGET_SO_RCVLOWAT: optname = SO_RCVLOWAT; goto int_case; + case TARGET_SO_ACCEPTCONN: + optname = SO_ACCEPTCONN; + goto int_case; default: goto int_case; } -- 2.0.0