Correct errno return for setsockopt(), by Thayne Harbaugh.
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 18 Dec 2007 02:41:04 +0000 (02:41 +0000)
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 18 Dec 2007 02:41:04 +0000 (02:41 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3839 c046a42c-6fe2-441c-8c8c-71466251a162

linux-user/syscall.c

index 5159685..d099e97 100644 (file)
@@ -906,7 +906,7 @@ static abi_long do_setsockopt(int sockfd, int level, int optname,
     default:
     unimplemented:
         gemu_log("Unsupported setsockopt level=%d optname=%d \n", level, optname);
-        ret = -TARGET_ENOSYS;
+        ret = -TARGET_ENOPROTOOPT;
     }
     return ret;
 }