[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/3] linux-user: add SO_LINGER to setsockopt
From: |
Laurent Vivier |
Subject: |
Re: [Qemu-devel] [PATCH 2/3] linux-user: add SO_LINGER to setsockopt |
Date: |
Wed, 20 Sep 2017 10:39:47 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 |
Le 20/09/2017 à 01:06, Carlo Marcelo Arenas Belón a écrit :
> Original implementation by Chen Gang; all bugs mine
>
> Signed-off-by: Chen Gang <address@hidden>
> Signed-off-by: Carlo Marcelo Arenas Belón <address@hidden>
> ---
> linux-user/syscall.c | 15 +++++++++++++++
> linux-user/syscall_defs.h | 5 +++++
> 2 files changed, 20 insertions(+)
>
> diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> index 9b6364a266..ad689dad50 100644
> --- a/linux-user/syscall.c
> +++ b/linux-user/syscall.c
> @@ -3071,6 +3071,21 @@ set_timeout:
> unlock_user (dev_ifname, optval_addr, 0);
> return ret;
> }
> + case TARGET_SO_LINGER:
> + {
> + struct linger lg;
> + struct target_linger *tlg;
> +
Why did you remove "optname = SO_LINGER" and "if (optlen !=
sizeof(struct target_linger))"?
Thanks,
Laurent