From 83eb6e509062b8907eb95a00170ef6dde8d264fd Mon Sep 17 00:00:00 2001 From: Carlo Marcelo Arenas Belón Date: Fri, 24 Aug 2018 01:56:01 -0700 Subject: linux-user: add SO_LINGER to {g,s}etsockopt Original implementation for setsockopt by Chen Gang[1]; all bugs mine, including removing assignment for optname which hopefully makes the logic easier to follow and moving some variables to make the code more selfcontained. [1] http://patchwork.ozlabs.org/patch/565659/ Signed-off-by: Carlo Marcelo Arenas Belón Co-Authored-By: Chen Gang Reviewed-by: Laurent Vivier Message-Id: <20180824085601.6259-1-carenas@gmail.com> Signed-off-by: Laurent Vivier --- linux-user/syscall_defs.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'linux-user/syscall_defs.h') diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 40bb60ef4c..18d434d6dc 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -203,6 +203,11 @@ struct target_ip_mreq_source { uint32_t imr_sourceaddr; }; +struct target_linger { + abi_int l_onoff; /* Linger active */ + abi_int l_linger; /* How long to linger for */ +}; + struct target_timeval { abi_long tv_sec; abi_long tv_usec; -- cgit v1.2.3-55-g7522