summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2006-06-22 03:59:53 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2006-06-22 03:59:53 +0000
commit574096452ab7c780af0dced51a46cb59fb884225 (patch)
tree7f18166d9b02738509e6e23f795c097527ac82f7
parent0c1e709edbc2bed43a020e95f07b0be28437b55b (diff)
downloadbuildroot-novena-574096452ab7c780af0dced51a46cb59fb884225.tar.gz
buildroot-novena-574096452ab7c780af0dced51a46cb59fb884225.zip
Add temporary patch to remove usage of 'bcopy' until upgrading to the next snapshot of LTP. Patch to 'member.c' contributed by Mike Frysinger <vapier@gentoo.org>. Patch to 'echoes.c' by the person adding this patch.
-rw-r--r--package/ltp-testsuite/ltp-testsuite-remove-bcopy.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/ltp-testsuite/ltp-testsuite-remove-bcopy.patch b/package/ltp-testsuite/ltp-testsuite-remove-bcopy.patch
new file mode 100644
index 000000000..9cc6ac37f
--- /dev/null
+++ b/package/ltp-testsuite/ltp-testsuite-remove-bcopy.patch
@@ -0,0 +1,24 @@
+diff -ur ltp-full-20050804/testcases/network/multicast/mc_member/member.c ltp-full-20050804-patched/testcases/network/multicast/mc_member/member.c
+--- ltp-full-20050804/testcases/network/multicast/mc_member/member.c 2005-08-04 15:33:05.000000000 -0500
++++ ltp-full-20050804-patched/testcases/network/multicast/mc_member/member.c 2006-06-21 22:56:15.746866000 -0500
+@@ -74,7 +74,7 @@
+ }
+
+ if(hp = gethostbyname(interface)) {
+- bcopy(hp->h_addr, &imr.imr_interface.s_addr, hp->h_length);
++ memcpy(&imr.imr_interface.s_addr, hp->h_addr, hp->h_length);
+ } else
+ if((n = sscanf(interface, "%u.%u.%u.%u", &i1, &i2, &i3, &i4)) != 4) {
+ fprintf(stderr, "bad group address\n" );
+diff -ur ltp-full-20050804/testcases/network/tcp_cmds/echo/echoes.c ltp-full-20050804-patched/testcases/network/tcp_cmds/echo/echoes.c
+--- ltp-full-20050804/testcases/network/tcp_cmds/echo/echoes.c 2005-08-04 15:33:05.000000000 -0500
++++ ltp-full-20050804-patched/testcases/network/tcp_cmds/echo/echoes.c 2006-06-21 22:55:13.000000000 -0500
+@@ -121,7 +121,7 @@
+ exit(1);
+ }
+ port=sp->s_port;
+- bcopy(hp->h_addr_list[0],&hostaddr,sizeof(struct in_addr));
++ memcpy(&hostaddr,hp->h_addr_list[0],sizeof(struct in_addr));
+ bzero((char *)&sa,sizeof (sa));
+ sa.sin_port=port;
+ sa.sin_family=AF_INET;