From: "Steven J. Hill" Date: Thu, 22 Jun 2006 03:59:53 +0000 (-0000) Subject: Add temporary patch to remove usage of 'bcopy' until upgrading to the next snapshot... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=574096452ab7c780af0dced51a46cb59fb884225;p=buildroot.git Add temporary patch to remove usage of 'bcopy' until upgrading to the next snapshot of LTP. Patch to 'member.c' contributed by Mike Frysinger . Patch to 'echoes.c' by the person adding this patch. --- 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 0000000000..9cc6ac37fd --- /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;