OSDN Git Service

linux-user: add SO_LINGER to {g,s}etsockopt
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Fri, 24 Aug 2018 08:56:01 +0000 (01:56 -0700)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 25 Sep 2018 20:36:49 +0000 (22:36 +0200)
commit83eb6e509062b8907eb95a00170ef6dde8d264fd
treea915abde418d3481877f19b7085dbd70eac6e52b
parentf7e6a401fe3313e6d7dd0c56aa660e684f08e657
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 <carenas@gmail.com>
Co-Authored-By: Chen Gang <gang.chen.5i5j@gmail.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20180824085601.6259-1-carenas@gmail.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/syscall.c
linux-user/syscall_defs.h