From patchwork Mon Jun 23 13:26:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 32370 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f199.google.com (mail-ie0-f199.google.com [209.85.223.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 91308203AC for ; Mon, 23 Jun 2014 14:40:23 +0000 (UTC) Received: by mail-ie0-f199.google.com with SMTP id rd18sf44100156iec.2 for ; Mon, 23 Jun 2014 07:40:23 -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=d+zTqX1hu2ozd9/HHeA2EzD//weu647YJAsUcVl9zvA=; b=cXlMp7adQO4jC6itLCaf4uPyXMdn+FZlxlhSeSWACR1zsrlJO4aOVgkKnvB2sE3JZP fyb6L9VmWpXejDhzSk0pX+H4nBtPA7CVCvah4PDAHSoNLk1y47UI7AzrlXG2sgpcbIgW NzDryDccmcwmO9dKZ3rG1dRmJXK7bIhNYROKFa5QmHlY/HnfQ0o+iF91nCLpfOCP4Jx9 ci7FJ50dXK34slAPZEcvzym47CP9ScL8ZYUQSKbdu+hL4eqXoHyFm6Le7NVRTPEg9JrQ 8HIkNqjsUJqpcIOl/Yhus0MiTPR40dlWHn80Kqjp8IGEh+eBJ/pv7C/AhfPbbr4/s19G mgsQ== X-Gm-Message-State: ALoCoQkiyoxfLmog42HQUcKwjsaQbcxvPAybS+V0ZJkB5oqyCpp5o1nvL4gPGoY4faxZYZqT900X X-Received: by 10.42.41.1 with SMTP id n1mr8468109ice.6.1403534423037; Mon, 23 Jun 2014 07:40:23 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.81.240 with SMTP id f103ls1464135qgd.95.gmail; Mon, 23 Jun 2014 07:40:22 -0700 (PDT) X-Received: by 10.58.67.198 with SMTP id p6mr878057vet.65.1403534422932; Mon, 23 Jun 2014 07:40:22 -0700 (PDT) Received: from mail-ve0-f179.google.com (mail-ve0-f179.google.com [209.85.128.179]) by mx.google.com with ESMTPS id fx5si438280vec.14.2014.06.23.07.40.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 23 Jun 2014 07:40:22 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.179 as permitted sender) client-ip=209.85.128.179; Received: by mail-ve0-f179.google.com with SMTP id sa20so6224123veb.38 for ; Mon, 23 Jun 2014 07:40:22 -0700 (PDT) X-Received: by 10.52.244.35 with SMTP id xd3mr739419vdc.71.1403534422865; Mon, 23 Jun 2014 07:40:22 -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 tc5csp135621vcb; Mon, 23 Jun 2014 07:40:22 -0700 (PDT) X-Received: by 10.140.34.55 with SMTP id k52mr30612236qgk.13.1403534422425; Mon, 23 Jun 2014 07:40:22 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id w2si17806550qag.33.2014.06.23.07.40.22 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 23 Jun 2014 07:40:22 -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]:53549 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wz4N2-0003vP-8P for patch@linaro.org; Mon, 23 Jun 2014 09:33:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wz4Gn-0003iR-IU for qemu-devel@nongnu.org; Mon, 23 Jun 2014 09:26:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wz4Gd-0001BT-Kn for qemu-devel@nongnu.org; Mon, 23 Jun 2014 09:26:49 -0400 Received: from afflict.kos.to ([92.243.29.197]:50454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wz4Gd-0001AY-Cw for qemu-devel@nongnu.org; Mon, 23 Jun 2014 09:26:39 -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 1C23C26552; Mon, 23 Jun 2014 15:26:36 +0200 (CEST) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Mon, 23 Jun 2014 16:26:20 +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: Paul Burton Subject: [Qemu-devel] [PULL 05/19] 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.128.179 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; }