projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3800af9
)
Correct errno return for getsockopt(), by Thayne Harbaugh.
author
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 18 Dec 2007 02:39:59 +0000
(
02:39
+0000)
committer
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 18 Dec 2007 02:39:59 +0000
(
02:39
+0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3838
c046a42c
-6fe2-441c-8c8c-
71466251a162
linux-user/syscall.c
patch
|
blob
|
history
diff --git
a/linux-user/syscall.c
b/linux-user/syscall.c
index
4ebc8bb
..
5159685
100644
(file)
--- 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_E
NOSYS
;
+ ret = -TARGET_E
OPNOTSUPP
;
break;
}
return ret;