From patchwork Sun Jun 29 12:14:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 32668 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9F6C223C2C for ; Sun, 29 Jun 2014 12:18:02 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id j17sf44869898oag.0 for ; Sun, 29 Jun 2014 05:18:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=pb2EMIVoaSMfHJe8cVlNlOvi2goJgqhWWcmhnZ5Ukq8=; b=My41Ier46XTtCUXNIeNxQZ0czlm90E/MqjTUsua4m/G1kHQO9GZgAEbIDZoF6c4E9U ju2Uj7ezthCxyLC0rbgpVzs/T97gl04aTLUCEoSDMXhyvbPT97zIVzK77BiooCKlj4Az 6YTUs5AML81Fzb5jSgqZ0MgpoQIg80J/ij7KGqRAj8FG8QgGM2/qLB3uUGowVciaxtgE Ze8cTqhFPL+M+V/xAJDGZSIquyAkOcafMUx+5cYRF+d/Ti8tkA8ImUxGsJdG1ILeizI1 tMPG7rgWFdJHFYM47sfcSTjml8U5HclaRhKCNBhtC5ivbqePJsPO1HGbgd0X1W7wjZq7 cLOw== X-Gm-Message-State: ALoCoQkoAnBjdmcvB0hMFn03TQ3OxG22kJUVQzqKGAMbtdG1vAMpjqH0g5Fo8mfI2Q43Ul3UnqP0 X-Received: by 10.182.22.65 with SMTP id b1mr18158873obf.10.1404044282130; Sun, 29 Jun 2014 05:18:02 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.86.163 with SMTP id p32ls1137325qgd.42.gmail; Sun, 29 Jun 2014 05:18:02 -0700 (PDT) X-Received: by 10.220.53.72 with SMTP id l8mr32182385vcg.16.1404044282013; Sun, 29 Jun 2014 05:18:02 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id iq6si8814503vcb.100.2014.06.29.05.18.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 29 Jun 2014 05:18:01 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id id10so6517086vcb.2 for ; Sun, 29 Jun 2014 05:18:01 -0700 (PDT) X-Received: by 10.220.203.134 with SMTP id fi6mr22058977vcb.18.1404044281921; Sun, 29 Jun 2014 05:18:01 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp72437vcb; Sun, 29 Jun 2014 05:18:01 -0700 (PDT) X-Received: by 10.140.51.37 with SMTP id t34mr47524727qga.50.1404044280933; Sun, 29 Jun 2014 05:18:00 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id w97si4011962qge.36.2014.06.29.05.18.00 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 29 Jun 2014 05:18:00 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:57512 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1E3U-0000MU-FM for patch@linaro.org; Sun, 29 Jun 2014 08:18:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1E0d-00043p-6V for qemu-devel@nongnu.org; Sun, 29 Jun 2014 08:15:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1E0X-0000b2-5K for qemu-devel@nongnu.org; Sun, 29 Jun 2014 08:15:03 -0400 Received: from afflict.kos.to ([92.243.29.197]:54963) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1E0W-0000aj-VE for qemu-devel@nongnu.org; Sun, 29 Jun 2014 08:14:57 -0400 Received: from afflict.kos.to (afflict [92.243.29.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by afflict.kos.to (Postfix) with ESMTPSA id A90F72654D; Sun, 29 Jun 2014 14:14:55 +0200 (CEST) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Sun, 29 Jun 2014 15:14:44 +0300 Message-Id: X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 92.243.29.197 Cc: Peter Maydell , Anthony Liguori , Paul Burton Subject: [Qemu-devel] [PULL v2 04/13] linux-user: support SO_ACCEPTCONN getsockopt option X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: riku.voipio@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Paul Burton Translate the SO_ACCEPTCONN option to the host value & execute the syscall as expected. Signed-off-by: Paul Burton Signed-off-by: Riku Voipio --- linux-user/syscall.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 8d13781..b1e57df 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; }