diff options
author | Anthony Liguori <aliguori@amazon.com> | 2014-01-10 10:47:30 -0800 |
---|---|---|
committer | Anthony Liguori <aliguori@amazon.com> | 2014-01-10 10:47:30 -0800 |
commit | 205b6b617519d53f17ef2158ff18cb0fe50f5d6c (patch) | |
tree | 14b89b37faf6aa3ef1b37fb4f6dbdf126d76c799 /linux-user/syscall.c | |
parent | 1d327fb4c72b898f7500989f3e624b7349581159 (diff) | |
parent | f0116c5458dc3be398ee7ef8daeaa02ba738bdc1 (diff) | |
download | hqemu-205b6b617519d53f17ef2158ff18cb0fe50f5d6c.zip hqemu-205b6b617519d53f17ef2158ff18cb0fe50f5d6c.tar.gz |
Merge remote-tracking branch 'riku/linux-user-for-upstream' into staging
* riku/linux-user-for-upstream:
linux-user: Remove regs parameter of load_elf_binary and load_flt_binary
linux-user: Support the accept4 socketcall
Message-id: 1389364137-23287-1-git-send-email-riku.voipio@linaro.org
Signed-off-by: Anthony Liguori <aliguori@amazon.com>
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r-- | linux-user/syscall.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index efd1453..0ac05b8 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -2245,6 +2245,22 @@ static abi_long do_socketcall(int num, abi_ulong vptr) ret = do_accept4(sockfd, target_addr, target_addrlen, 0); } break; + case SOCKOP_accept4: + { + abi_ulong sockfd; + abi_ulong target_addr, target_addrlen; + abi_ulong flags; + + if (get_user_ual(sockfd, vptr) + || get_user_ual(target_addr, vptr + n) + || get_user_ual(target_addrlen, vptr + 2 * n) + || get_user_ual(flags, vptr + 3 * n)) { + return -TARGET_EFAULT; + } + + ret = do_accept4(sockfd, target_addr, target_addrlen, flags); + } + break; case SOCKOP_getsockname: { abi_ulong sockfd; |