<div dir="ltr"><div><div>Hi,<br><br></div>Please find patch below to fix mix up of recv and sendto on sh. See <a href="http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arch/sh/include/uapi/asm/unistd_32.h">http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arch/sh/include/uapi/asm/unistd_32.h</a> for reference.<br>
<br></div>// Erik<br><br><div><div><div>-- >8 --<br>Subject: [PATCH] sh: fix syscall numbering for recv and sendto<br><br>* linux/sh/syscallent.h: Correct the syscall numbers for recv and sendto as<br>they were mixed up.<br>
---<br> linux/sh/syscallent.h | 4 ++--<br> 1 file changed, 2 insertions(+), 2 deletions(-)<br><br>diff --git a/linux/sh/syscallent.h b/linux/sh/syscallent.h<br>index 75c15f7..7033af1 100644<br>--- a/linux/sh/syscallent.h<br>
+++ b/linux/sh/syscallent.h<br>@@ -379,8 +379,8 @@<br> { 3, TN, sys_getpeername, "getpeername" }, /* 346 */<br> { 4, TN, sys_socketpair, "socketpair" }, /* 347 */<br>
{ 4, TN, sys_send, "send" }, /* 348 */<br>- { 4, TN, sys_recv, "recv" }, /* 349 */<br>- { 6, TN, sys_sendto, "sendto" }, /* 350 */<br>
+ { 6, TN, sys_sendto, "sendto" }, /* 349 */<br>+ { 4, TN, sys_recv, "recv" }, /* 350 */<br> { 6, TN, sys_recvfrom, "recvfrom" }, /* 351 */<br>
{ 2, TN, sys_shutdown, "shutdown" }, /* 352 */<br> { 5, TN, sys_setsockopt, "setsockopt" }, /* 353 */<br>-- <br>Erik Johansson<br>Home Page: <a href="http://ejohansson.se/">http://ejohansson.se/</a><br>
PGP Key: <a href="http://ejohansson.se/erik.asc">http://ejohansson.se/erik.asc</a>
</div></div></div></div>