From: ths Date: Tue, 18 Dec 2007 02:39:59 +0000 (+0000) Subject: Correct errno return for getsockopt(), by Thayne Harbaugh. X-Git-Tag: TizenStudio_2.0_p2.3~12383 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c02f499e109916f60e99ef568ac2508ab4c20d82;p=sdk%2Femulator%2Fqemu.git Correct errno return for getsockopt(), by Thayne Harbaugh. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3838 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 4ebc8bb..5159685 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -996,14 +996,15 @@ static abi_long do_getsockopt(int sockfd, int level, int optname, } break; default: - goto unimplemented; + ret = -TARGET_ENOPROTOOPT; + break; } break; default: unimplemented: gemu_log("getsockopt level=%d optname=%d not yet supported\n", level, optname); - ret = -TARGET_ENOSYS; + ret = -TARGET_EOPNOTSUPP; break; } return ret;