OSDN Git Service

linux-user: support SO_ACCEPTCONN getsockopt option
authorPaul Burton <paul@archlinuxmips.org>
Sun, 22 Jun 2014 10:25:34 +0000 (11:25 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Sun, 29 Jun 2014 11:19:58 +0000 (14:19 +0300)
Translate the SO_ACCEPTCONN option to the host value & execute the
syscall as expected.

Signed-off-by: Paul Burton <paul@archlinuxmips.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/syscall.c

index 8d13781..b1e57df 100644 (file)
@@ -1652,6 +1652,9 @@ static abi_long do_getsockopt(int sockfd, int level, int optname,
         case TARGET_SO_RCVLOWAT:
             optname = SO_RCVLOWAT;
             goto int_case;
+        case TARGET_SO_ACCEPTCONN:
+            optname = SO_ACCEPTCONN;
+            goto int_case;
         default:
             goto int_case;
         }