From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyUAQ-0004sy-HZ for qemu-devel@nongnu.org; Sat, 21 Jun 2014 18:53:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WyUAK-0005Wq-Rj for qemu-devel@nongnu.org; Sat, 21 Jun 2014 18:53:50 -0400 Received: from mail-wg0-x22d.google.com ([2a00:1450:400c:c00::22d]:60935) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyUAK-0005WP-KP for qemu-devel@nongnu.org; Sat, 21 Jun 2014 18:53:44 -0400 Received: by mail-wg0-f45.google.com with SMTP id l18so5256238wgh.16 for ; Sat, 21 Jun 2014 15:53:43 -0700 (PDT) Sender: Paul Burton From: Paul Burton Date: Sat, 21 Jun 2014 23:52:58 +0100 Message-Id: <1403391191-18603-4-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 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 --- Changes in v2: - None. --- linux-user/syscall.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index dba5b4d..ce1ea1f 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