From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwD8z-00050f-Ka for qemu-devel@nongnu.org; Sun, 15 Jun 2014 12:19:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WwD8s-00064J-Lp for qemu-devel@nongnu.org; Sun, 15 Jun 2014 12:18:57 -0400 Received: from mail-we0-x233.google.com ([2a00:1450:400c:c03::233]:52089) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwD8s-000645-Ea for qemu-devel@nongnu.org; Sun, 15 Jun 2014 12:18:50 -0400 Received: by mail-we0-f179.google.com with SMTP id w62so4634818wes.38 for ; Sun, 15 Jun 2014 09:18:49 -0700 (PDT) Sender: Paul Burton From: Paul Burton Date: Sun, 15 Jun 2014 17:18:19 +0100 Message-Id: <1402849113-11402-3-git-send-email-paul@archlinuxmips.org> In-Reply-To: <1402849113-11402-1-git-send-email-paul@archlinuxmips.org> References: <1402849113-11402-1-git-send-email-paul@archlinuxmips.org> Subject: [Qemu-devel] [PATCH 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 --- linux-user/syscall.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 3921cff..e6afd30 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -1652,6 +1652,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