From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwD90-00050l-0x 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 1WwD8u-00064Z-6J for qemu-devel@nongnu.org; Sun, 15 Jun 2014 12:18:57 -0400 Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]:53613) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwD8t-00064U-Ve for qemu-devel@nongnu.org; Sun, 15 Jun 2014 12:18:52 -0400 Received: by mail-wi0-f170.google.com with SMTP id cc10so4223495wib.3 for ; Sun, 15 Jun 2014 09:18:51 -0700 (PDT) Sender: Paul Burton From: Paul Burton Date: Sun, 15 Jun 2014 17:18:20 +0100 Message-Id: <1402849113-11402-4-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 03/16] linux-user: support SO_{SND, RCV}BUFFORCE setsockopt options 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_SNDBUFFORCE & SO_RCVBUFFORCE options to setsockopt to the host values & perform the syscall as expected, allowing use of those options by target programs. Signed-off-by: Paul Burton --- linux-user/syscall.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index e6afd30..679d165 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -1500,9 +1500,15 @@ set_timeout: case TARGET_SO_SNDBUF: optname = SO_SNDBUF; break; + case TARGET_SO_SNDBUFFORCE: + optname = SO_SNDBUFFORCE; + break; case TARGET_SO_RCVBUF: optname = SO_RCVBUF; break; + case TARGET_SO_RCVBUFFORCE: + optname = SO_RCVBUFFORCE; + break; case TARGET_SO_KEEPALIVE: optname = SO_KEEPALIVE; break; -- 2.0.0